HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //proc/self/root/usr/sbin/tcptraceroute
#!/bin/sh
#
#   Copyright (c)  2007             Dmitry Butskoy
#                                   <buc@citadel.stu.neva.ru>
#   License:  GPL v2 or any later
#
#   See COPYING for the status of this software.
#

#
#  Shell wrapper providing tcptraceroute(8) command line interface.
#
#  The original implementation of tcptraceroute(8) can be obtained
#  from http://michael.toren.net/code/tcptraceroute/
#

opts="-T -O info"
length=""
prgname=$0


usage () {
    echo "Usage: $prgname [-hvnFSAE] [-i dev] [-f furst_ttl] [-l length]
	[-q nqueries] [-t tos] [-m max_ttl] [-p src_port] [-s src_addr]
	[-w wait_time]  host  [dest_port]  [length]" >&2
}


PARSED=`getopt 'hvdnNi:l:f:Fm:p:q:w:s:t:SAE' "$@"`
[ $? != 0 ] && exit 2

eval set -- "$PARSED"

while [ $# -gt 0 ]
do
    case "$1" in
	-[dnF])  opts="$opts $1"; shift ;;
	-N)  shift ;;
	-[ifmqwst])  opts="$opts $1 $2"; shift 2 ;;
	-l)  length=$2; shift 2 ;;
	-p)  opts="$opts --sport=$2"; shift 2 ;;
	-S)  opts="$opts -O syn"; shift ;;
	-A)  opts="$opts -O ack"; shift ;;
	-E)  opts="$opts -O ecn"; shift ;;
	-h)  usage ; exit 0 ;;
	-v)  echo "\"tcptraceroute\"-compatible wrapper for new Linux Traceroute" >&2;
	     exit 0 ;;
	--)  shift; break ;;
	*)  echo "$prgname: Internal parsing error" >&2; exit 2 ;;
    esac
done

[ $# -eq 0 ] && {
    usage
    exit 2
}

host=$1
shift

[ $# -gt 0 ] && {
    opts="$opts -p $1"
    shift
}

[ $# -gt 0 ] && {
    length=$1
    shift
}


#  Say to the people it is actually another program...
echo "Running:
	traceroute $opts $host $length" >&2


exec /usr/bin/traceroute.db $opts $host $length