Lukket

Java and Php Page To Get Remote Mac Address

I need to add java script to the attached php script to be able to obtain someones router mac address when they come to my webpage.

<?php

$data = '';

$sendmail = true;

$keyword = '';

$destination = '';

$temp = file_get_contents('data/[url removed, login to view]');

$dests = explode("\n",$temp);

foreach ($dests as $dest)

{

$parts = explode('|', $dest);

if (count($parts) == 2)

{

//echo 'Checking '.$parts[0].'...';

$pos = strpos($_SERVER['REQUEST_URI'], $parts[0]);

if ($pos === false)

{

//echo ' Nope <br />';

}else{

//echo ' Yep <br />';

$keyword = $parts[0];

$destination = $parts[1];

}

}

}

$emkeyword = '';

$em = '';

$temp = file_get_contents('data/[url removed, login to view]');

$peeps = explode("\n",$temp);

foreach ($peeps as $peep)

{

$parts = explode('|', $peep);

if (count($parts) == 2)

{

//echo 'Checking '.$parts[0].'...';

$pos = strpos($_SERVER['REQUEST_URI'], $parts[0]);

if ($pos === false)

{

//echo ' Nope <br />';

}else{

//echo ' Yep <br />';

$emkeyword = $parts[0];

$em = $parts[1];

}

}

}

if ($sendmail)

{

$data .= "UTC Time:\n".gmdate("F j, Y, g:i a",time())."\n\n";

if (strlen($destination) > 0)

{

$data .= "Keyword Detected:\n".$keyword."\n";

$data .= "Redirected To:\n".$destination."\n\n";

}

if (strlen($em) > 0)

{

$data .= "Email Identifying Keyword Detected:\n".$emkeyword."\n";

$data .= "Response is from email sent to:\n".$em."\n\n";

}

$goodvars = 'UNIQUE_ID HTTP_USER_AGENT HTTP_ACCEPT HTTP_ACCEPT_LANGUAGE HTTP_ACCEPT_ENCODING HTTP_ACCEPT_CHARSET REMOTE_ADDR REMOTE_PORT SERVER_PROTOCOL REQUEST_METHOD QUERY_STRING REQUEST_URI PATH_INFO PHP_SELF HTTP_REFERER';

foreach($_SERVER as $name=>$value)

{

$pos = strpos($goodvars, $name);

if ($pos === false)

{

//echo ' Nope <br />';

}else{

$data .= $name.":\n".$value."\n\n";

}

}

mail('youremailaddressgoeshere','Tripwire Alert',$data);

}

//echo $_SERVER['QUERY_STRING']."<br/>\n";

//if query has fake folder info, discard all fake folders from google search redirect

$query = '';

$elements = explode("/",$_SERVER['REQUEST_URI']);

$elementcount = sizeof($elements);

if ($elementcount > 1)

{

$query = $elements[$elementcount-1];

}

if (strlen($_SERVER['QUERY_STRING']) > 0)

{

$query = $_SERVER['QUERY_STRING'];

}

if (strlen($destination) > 0)

{

header('Location: '.$destination);

}else{

header('Location: [url removed, login to view]'.$query);

}

exit();

?>

Færdigheder: Java, PHP

Se mere: obtain remote mac java, php remote mac address, java remote mac, remote mac address java, java remote mac address, java remote mac address http, java php mac address, remote mac address php, java mac address, php router mac address, php script remote mac address, mac address destination java, tripwire, q email, java obtain, get people, blogspot search, someones mac java, echo parts, get java, webpage php, pos java, php pos, java php, java mail

Om arbejdsgiveren:
( 3 bedømmelser ) Valrico, United States

Projekt-ID: #968125

6 freelancere byder i gennemsnit $202 for dette job

it2051229

Hi, kindly check your inbox for my inquiries. Thanks.

$50 USD in 0 dage
(186 bedømmelser)
6.2
YashpalSingh123

php/java experience

$250 USD in 3 dage
(10 bedømmelser)
4.6
javaguru75

Please check PMB.

$250 USD in 5 dage
(9 bedømmelser)
4.2
au12mi43gh67

Please check PM

$225 USD på 1 dag
(3 bedømmelser)
2.2
btneelam1

Java, J2EE , Struts, Spring, Hibernate Expert

$245 USD in 3 dage
(0 bedømmelser)
0.0
aniwebdesigns

Hi This is Bhagwant here. We are AniWeb Designs Pvt Ltd was established in 2009. Thanks for the opportunity to bid on your project. We have experienced developer in our team. We are quite confident to make you Mere

$190 USD in 7 dage
(0 bedømmelser)
0.0