Re: A really fast traceroute script

From Gracious Iguana, 6 Years ago, written in Bash, viewed 778 times. This paste is a reply to A really fast traceroute script from NAT - go back
URL https://code.nat.moe/view/880f862e/diff Embed
Viewing differences between A really fast traceroute script and Re: A really fast traceroute script
#!/bin/bash

echo "[ * ] Traceing to $1... "

MAX=$(echo "64-$(ping -c1 $1 | tr " " "\n" | grep ttl | awk -F= '{print $2}')" | bc)
STEP=0
TEMP=.nrttmp
echo "[ $(echo $MAX+1|bc) ] $1"> $TEMP
echo "[ * ] Total $MAX Hopes, start trace..."

function lowttl_ping {
        echo [ $2 ] $(ping -m$2 -t1 $1 | grep exceeded | awk -F" " '{print $4,$5}' | sed -e "s/://g" | sed -e "s/Time//g") #>> $TEMP
}

while [[ $STEP != $MAX ]]
do
        STEP=$(echo $STEP+1|bc)
        lowttl_ping $1 $STEP &
done

sleep 2
cat $TEMP | sort -n -k2

Replies to Re: A really fast traceroute script rss

Title Name Language When
Re: Re: A really fast traceroute script Cute Earthworm bash 2 Years ago.

Reply to "Re: A really fast traceroute script"

Here you can reply to the paste above

captcha