Welcome, Guest. Please login or register.

Author Topic: Toolbox  (Read 1473 times)


  • Jr. Member
  • **
  • Posts: 53
    • View Profile
« on: July 18, 2014, 06:32:16 AM »
In Nodes-Toolbox I use a different set of tools:
- fping (a better ping)
- mtr (a better traceroute)
- tracepath (provides info on mtu)
- httping (check websites)

fping seems not to work with system and only way I could make it work was as below.

To add the tools: sudo apt-get install sudo apt-get install fping mtr iputils-tracepath httping

Code: [Select]
if($do == "Ping"){
        echo "<h2>$ping_count Ping(s) with $ping_size bytes to $dest</h2><div class=\"textpad code txta\">";
        if(preg_match("/OpenBSD|Linux/",PHP_OS) ){
                echo "Using fping...\n";
                $fpingoutput = shell_exec("fping -c $ping_count -b $ping_size $dest 2>&1");
                echo "$fpingoutput";
        }elseif(preg_match("/^win/",PHP_OS) ){
                system("ping -n $ping_count -l $ping_size $dest");
}elseif($do == "mtr"){
        echo "<h2>mtr $dest</h2><div class=\"textpad code txtb\">";
        system("mtr -r -c $ping_count $dest");
}elseif($do == "TracePath"){
        echo "<h2>TracePath $dest</h2><div class=\"textpad code txtb\">";
        system("tracepath -n $dest");
}elseif($do == "Ping Range"){
        echo "<h2>Nmap Ping Range of $dest</h2><div class=\"textpad code txtb\">";
        system("nmap -sP $dest");
}elseif($do == "HTTP ping"){
        echo "<h2>httping $dest</h2><div class=\"textpad code txtb\">";
        system("httping -c $ping_count $dest");


  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Toolbox
« Reply #1 on: July 18, 2014, 09:13:09 AM »
you also have to add a couple lines above to get the buttons

Code: [Select]
<input type="submit" class="button" value="Scan" name="Do"/>
<input type="submit" class="button" value="mtr" name="Do"/>
<input type="submit" class="button" value="TracePath" name="Do"/>
<input type="submit" class="button" value="HTTP ping" name="Do"/>