fork download
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.  
  5. <meta charset="utf-8" />
  6.  
  7. <title>TraceRoutes For ALL</title>
  8. <link href='http://f...content-available-to-author-only...s.com/css?family=Geo' rel='stylesheet' type='text/css'>
  9. <link rel="stylesheet" type="text/css" href="http://f...content-available-to-author-only...s.com/css?family=Josefin+Sans">
  10. <style type="text/css">
  11.  
  12. input.fname {
  13. border-radius: 10px;
  14. border: true;
  15. font-size: 80px;
  16. font-family: Josefin Sans;
  17. border-color:#111111 #111111 #111111 #111111;
  18. }
  19. body {
  20. border-radius: 10px;
  21. border: true;
  22. font-size: 60px;
  23. font-family: Josefin Sans;
  24. border-color:#111111 #111111 #111111 #111111;
  25. }
  26. div.traced {
  27. font-size: 20px;
  28. font-family: Josefin Sans;
  29. </style>
  30.  
  31. <?php
  32. // Get Variable from form via register globals on/off
  33. //-------------------------
  34. $unix = 1; //set this to 1 if you are on a *unix system
  35. $windows = 0; //set this to 1 if you are on a windows system
  36. // -------------------------
  37. // nothing more to be done.
  38. // -------------------------
  39. //globals on or off ?
  40. $register_globals = (bool) ini_get('register_gobals');
  41. $system = ini_get('system');
  42. $unix = (bool) $unix;
  43. $win = (bool) $windows;
  44. //
  45. If ($register_globals)
  46. {
  47. $ip = getenv(REMOTE_ADDR);
  48. $self = $PHP_SELF;
  49. }
  50. else
  51. {
  52. $submit = $_GET['submit'];
  53. $host = $_GET['host'];
  54. $host1 = escapeshellarg ($host);
  55. $ip = $_SERVER['REMOTE_ADDR'];
  56. $self = $_SERVER['PHP_SELF'];
  57. };
  58. // form submitted ?
  59. If ($submit == "Traceroute!")
  60. {
  61. // replace bad chars
  62. $host1= preg_replace ("/[^A-Za-z0-9.]/","",$host1);
  63. echo '<center>';
  64. echo '<body bgcolor="#FFFFFF" text="#000000"></body>';
  65. echo("Trace Output:<br>");
  66. echo '<pre>';
  67. echo '<form name="test" action="ses.php" method="post">';
  68. echo '<textarea rows="30" cols="120" readonly name="form">';
  69. //check target IP or domain
  70. if ($unix)
  71. {
  72. system ("traceroute $host");
  73. system("killall -q traceroute");// kill all traceroute processes in case there are some stalled ones or use echo 'traceroute' to execute without shell
  74. }
  75. else
  76. {
  77. system("tracert $host");
  78. }
  79.  
  80. echo '</textarea>';
  81. echo '</pre>';
  82. echo '</form>';
  83. echo '<div class="traced">';
  84. echo '<a href="http://b...content-available-to-author-only...t.us">Need to trace again?</a></br>';
  85. echo '</br>Email this or send it</br>';
  86. echo '<a href="http://g...content-available-to-author-only...l.com" target="_blank">Gmail</a> | <a href="http://y...content-available-to-author-only...l.com" target="_blank">Yahoo</a> | <a href="http://h...content-available-to-author-only...l.com" target="_blank">Hotmail</a></br>';
  87. echo 'Traceroute complete</br><hr>';
  88. echo '<a href="http://c...content-available-to-author-only...t.org/r:mrmuffins">Chat for Bitcoins</a>';
  89. echo '</div>';
  90. }
  91. else
  92. {
  93. echo '<body bgcolor="#FFFFFF" text="#000000"></body>';
  94. echo '<center>';
  95. echo '<p><font size="30">Your IP is: </font><font size="25" color="red">'.$ip.'</font></p>';
  96. echo '<div id="form1">';
  97. echo '<form methode="post" action="'.$self.'">';
  98. echo ' Enter IP or Host </br><input type="text" class="fname" name="host" placeholder="Enter domain/IP"></input>';
  99. echo ' </br> <input type="submit" name="submit" value="Traceroute!"></input>';
  100. echo '</form>';
  101. echo '</div>';
  102. echo '<br><b>'.$system.'</b>';
  103. echo 'This may take up to 30 seconds to output. Please be patient.';
  104. echo '<center>';
  105. echo '</body></html>';
  106. }
  107. ?>
Success #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="utf-8" />

<title>TraceRoutes For ALL</title>
<link href='http://f...content-available-to-author-only...s.com/css?family=Geo' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="http://f...content-available-to-author-only...s.com/css?family=Josefin+Sans">
<style type="text/css">
 
 input.fname {
	border-radius: 10px;
	border: true;
	font-size: 80px;
	font-family: Josefin Sans;
	border-color:#111111 #111111 #111111 #111111;
 }
body {
        border-radius: 10px;
	border: true;
	font-size: 60px;
	font-family: Josefin Sans;
	border-color:#111111 #111111 #111111 #111111;
}
div.traced {
        font-size: 20px;
        font-family: Josefin Sans;
</style>

<body bgcolor="#FFFFFF" text="#000000"></body><center><p><font size="30">Your IP is: </font><font size="25" color="red"></font></p><div id="form1"><form methode="post" action="prog.php">   Enter IP or Host </br><input type="text" class="fname" name="host" placeholder="Enter domain/IP"></input>  </br> <input type="submit" name="submit" value="Traceroute!"></input></form></div><br><b></b>This may take up to 30 seconds to output.  Please be patient.<center></body></html>
stderr
PHP Notice:  Undefined index: submit in /home/QUwgoQ/prog.php on line 52
PHP Notice:  Undefined index: host in /home/QUwgoQ/prog.php on line 53
PHP Notice:  Undefined index: REMOTE_ADDR in /home/QUwgoQ/prog.php on line 55