Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD]Traceroute
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-08-12 13:00:09
Taken from TBDev, posted by cazzole. So credits of original mod goes to TBDev.

Edited by me.

traceroute.php:

<?php

require_once("backend/functions.php");

dbconn();

stdhead();



if (!$CURUSER || $CURUSER["class"]<"7"){

show_error_msg("Error","Sorry you do not have the rights to access this page!");

}

$unix = 1; //set this to 1 if you are on a *unix system

$windows = 0; //set this to 1 if you are on a windows system



$register_globals = (bool) ini_get('register_globals');

$system = ini_get('system');

$unix = (bool) $unix;

$win = (bool) $windows;

//

If ($register_globals)

{

$ip = getenv(REMOTE_ADDR);

$self = $PHP_SELF;

}

else

{

$submit = $_GET['submit'];

$host = $_GET['host'];

$ip = $_SERVER['REMOTE_ADDR'];

$self = $_SERVER['PHP_SELF'];

};

// form submitted ?

If ($submit == "Traceroute!")

{

// replace bad chars

$host= preg_replace ("/[^A-Za-z0-9.]/","",$host);

echo '<body bgcolor="#FFFFFF" text="#000000"></body>';

echo("Trace Output:<br>");

echo '<pre>';

//check target IP or domain

if ($unix)

{

system ("traceroute -w 2 -q 1 -m 20 $host");

system("killall -q traceroute");// kill all traceroute processes in case there are some stalled ones or use echo 'traceroute' to execute without shell

}

else

{

system("tracert $host");

}

echo '</pre>';

echo 'done ...';

}

else

{

echo '<body bgcolor="#FFFFFF" text="#000000"></body>';

echo '<p><font size="2">Your IP is: '.$ip.'</font></p>';

echo '<form methode="post" action="'.$self.'">';

echo ' Enter IP or Host <input type="text" name="host" value="'.$ip.'"></input>';

echo ' <input type="submit" name="submit" value="Traceroute!"></input>';

echo '</form>';

echo '<br><b>'.$system.'</b>';

echo '</body></html>';

}



stdfoot();

?>


Works fine for me  :) .
Unknown User
2009-08-15 10:29:12
thanks. altered mine a touch as no frames where added but works ok. thank you.
Unknown User
2009-08-15 10:55:41
updated, added frame:

<?php

require_once("backend/functions.php");

dbconn();

stdhead();



begin_frame("Traceroute");



if (!$CURUSER || $CURUSER["class"]<"7"){

show_error_msg("Error","Sorry you do not have the rights to access this page!");

}

$unix = 1; //set this to 1 if you are on a *unix system

$windows = 0; //set this to 1 if you are on a windows system



$register_globals = (bool) ini_get('register_globals');

$system = ini_get('system');

$unix = (bool) $unix;

$win = (bool) $windows;

//

If ($register_globals)

{

$ip = getenv(REMOTE_ADDR);

$self = $PHP_SELF;

}

else

{

$submit = $_GET['submit'];

$host = $_GET['host'];

$ip = $_SERVER['REMOTE_ADDR'];

$self = $_SERVER['PHP_SELF'];

};

// form submitted ?

If ($submit == "Traceroute!")

{

// replace bad chars

$host= preg_replace ("/[^A-Za-z0-9.]/","",$host);

echo '<body bgcolor="#FFFFFF" text="#000000"></body>';

echo("Trace Output:<br>");

echo '<pre>';

//check target IP or domain

if ($unix)

{

system ("traceroute -w 2 -q 1 -m 20 $host");

system("killall -q traceroute");// kill all traceroute processes in case there are some stalled ones or use echo 'traceroute' to execute without shell

}

else

{

system("tracert $host");

}

echo '</pre>';

echo 'done ...';

}

else

{

echo '<body bgcolor="#FFFFFF" text="#000000"></body>';

echo '<p><font size="2">Your IP is: '.$ip.'</font></p>';

echo '<form methode="post" action="'.$self.'">';

echo ' Enter IP or Host <input type="text" name="host" value="'.$ip.'"></input>';

echo ' <input type="submit" name="submit" value="Traceroute!"></input>';

echo '</form>';

echo '<br><b>'.$system.'</b>';

echo '</body></html>';

}

end_frame();

stdfoot();

?>
Unknown User
2009-09-12 16:40:50
Hello to know any information known at what level we will file m
Unknown User
2009-11-17 23:56:34
Thanks you so much is work for me  .... ;)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728