=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== netcat-openbsd-1.217/debian/examples/alta-11-# convert multiple args netcat-openbsd-1.217/debian/examples/alta:12:PLUSARG="`echo $* | sed 's/ /+/g'`" netcat-openbsd-1.217/debian/examples/alta-13- ############################################## netcat-openbsd-1.217/debian/examples/contrib/ncmeter-14-# determine the programme's name netcat-openbsd-1.217/debian/examples/contrib/ncmeter:15:me=`echo $0 | sed 's+.*/++'` netcat-openbsd-1.217/debian/examples/contrib/ncmeter-16- ############################################## netcat-openbsd-1.217/debian/examples/contrib/ncmeter-43- # wait for data and count bytes netcat-openbsd-1.217/debian/examples/contrib/ncmeter:44: AMOUNT=`nc -v -w 120 -l -p $NCPORT | wc -c | awk '{print $1}'` netcat-openbsd-1.217/debian/examples/contrib/ncmeter-45- ############################################## netcat-openbsd-1.217/debian/examples/contrib/ncmeter-59-# calculate the amount of data to be sent netcat-openbsd-1.217/debian/examples/contrib/ncmeter:60:AMOUNT=`echo $2|sed s/[mM]/\*1048576/g | sed s/[kK]/\*1024/g | bc` netcat-openbsd-1.217/debian/examples/contrib/ncmeter-61- ############################################## netcat-openbsd-1.217/debian/examples/contrib/ncmeter-66-# read the time needed netcat-openbsd-1.217/debian/examples/contrib/ncmeter:67:REAL=`grep "^real" "$TEMP" | awk '{print $2}'` netcat-openbsd-1.217/debian/examples/contrib/ncmeter-68-rm "$TEMP" ############################################## netcat-openbsd-1.217/debian/examples/contrib/ncmeter-70-DOUBLEWAIT=$(($WAIT * 2)) netcat-openbsd-1.217/debian/examples/contrib/ncmeter:71:NEEDED=`echo $REAL - $DOUBLEWAIT|bc` netcat-openbsd-1.217/debian/examples/contrib/ncmeter-72- netcat-openbsd-1.217/debian/examples/contrib/ncmeter-73-# calculate and print speed netcat-openbsd-1.217/debian/examples/contrib/ncmeter:74:BPS=`echo "scale=3;$AMOUNT / $NEEDED"|bc` netcat-openbsd-1.217/debian/examples/contrib/ncmeter:75:KBPS=`echo "scale=3;$AMOUNT / $NEEDED / 1024"|bc` netcat-openbsd-1.217/debian/examples/contrib/ncmeter:76:MBPS=`echo "scale=3;$AMOUNT / $NEEDED / 1048576"|bc` netcat-openbsd-1.217/debian/examples/contrib/ncmeter-77- ############################################## netcat-openbsd-1.217/debian/examples/iscan-18-# generate a randomish base port netcat-openbsd-1.217/debian/examples/iscan:19:RP=`expr $$ % 999 + 31337` netcat-openbsd-1.217/debian/examples/iscan-20- ############################################## netcat-openbsd-1.217/debian/examples/iscan-31- kill -HUP $PROC netcat-openbsd-1.217/debian/examples/iscan:32: RP=`expr ${RP} + 1` netcat-openbsd-1.217/debian/examples/iscan-33- shift ############################################## netcat-openbsd-1.217/debian/examples/ncp-15-test ! "$1" && echo "no args?" && exit 1 netcat-openbsd-1.217/debian/examples/ncp:16:me=`echo $0 | sed 's+.*/++'` netcat-openbsd-1.217/debian/examples/ncp-17-test "$me" = "nzp" && echo '[compressed mode]' ############################################## netcat-openbsd-1.217/debian/examples/web-84- /*) netcat-openbsd-1.217/debian/examples/web:85: specF=`echo "${spec}" | sed 's|.*/||'` netcat-openbsd-1.217/debian/examples/web:86: specD=`echo "${spec}" | sed 's|\(.*/\).*|\1|'` netcat-openbsd-1.217/debian/examples/web-87- spec="${specD}${specF}" ############################################## netcat-openbsd-1.217/debian/examples/web-90- */*) netcat-openbsd-1.217/debian/examples/web:91: specF=`echo "${spec}" | sed 's|.*/||'` netcat-openbsd-1.217/debian/examples/web:92: specD=`echo "${specD}${spec}" | sed 's|\(.*/\).*|\1|'` netcat-openbsd-1.217/debian/examples/web-93- ;; ############################################## netcat-openbsd-1.217/debian/examples/web-95- ..) netcat-openbsd-1.217/debian/examples/web:96: specD=`echo "${specD}" | sed 's|\(.*/\)..*/|\1|'` netcat-openbsd-1.217/debian/examples/web-97- continue ############################################## netcat-openbsd-1.217/debian/examples/webproxy-87-# ping client machine and get its bare IP address netcat-openbsd-1.217/debian/examples/webproxy:88: CLIENT=`nc -z -v -w 8 "$1" 22000 2>&1 | sed 's/.*\[\(..*\)\].*/\1/'` netcat-openbsd-1.217/debian/examples/webproxy-89- test ! "$CLIENT" && echo "Can't find address of $1" && exit 1 ############################################## netcat-openbsd-1.217/debian/examples/webproxy-111-# nuke questionable characters and split up the request netcat-openbsd-1.217/debian/examples/webproxy:112:hurl=`echo "$x2" | sed -e "s+.*//++" -e 's+[\`'\''|$;<>{}\\!*()"]++g'` netcat-openbsd-1.217/debian/examples/webproxy-113-# echo massaged hurl: $hurl >> $LFILE netcat-openbsd-1.217/debian/examples/webproxy:114:hh=`echo "$hurl" | sed -e "s+/.*++" -e "s+:.*++"` netcat-openbsd-1.217/debian/examples/webproxy:115:hp=`echo "$hurl" | sed -e "s+.*:++" -e "s+/.*++"` netcat-openbsd-1.217/debian/examples/webproxy-116-test "$hp" = "$hh" && hp=80 netcat-openbsd-1.217/debian/examples/webproxy:117:hf=`echo "$hurl" | sed -e "s+[^/]*++"` netcat-openbsd-1.217/debian/examples/webproxy-118-# echo total split: $hh : $hp : $hf >> $LFILE ############################################## netcat-openbsd-1.217/debian/examples/webproxy-131-# no, you can *not* phone home, you miserable piece of shit netcat-openbsd-1.217/debian/examples/webproxy:132:test "`echo $hh | fgrep -i netscap`" && \ netcat-openbsd-1.217/debian/examples/webproxy-133- echo "access to Netscam's servers <b>DENIED.</b>" && exit 0 ############################################## netcat-openbsd-1.217/debian/examples/websearch-11-test "${1}" = "" && echo 'Needs argument[s] to search for!' && exit 1 netcat-openbsd-1.217/debian/examples/websearch:12:PLUSARG="`echo $* | sed 's/ /+/g'`" netcat-openbsd-1.217/debian/examples/websearch:13:PIPEARG="`echo ${PLUSARG} | sed 's/+/|/g'`" netcat-openbsd-1.217/debian/examples/websearch-14-IFILE=/tmp/.webq.$$ ############################################## netcat-openbsd-1.217/debian/patches/misc-failures-and-features.patch-18-+PKG_CONFIG ?= pkg-config netcat-openbsd-1.217/debian/patches/misc-failures-and-features.patch:19:+LIBS= `$(PKG_CONFIG) --libs libbsd` -lresolv netcat-openbsd-1.217/debian/patches/misc-failures-and-features.patch-20- OBJS= $(SRCS:.c=.o) ############################################## netcat-openbsd-1.217/Makefile-6-PKG_CONFIG ?= pkg-config netcat-openbsd-1.217/Makefile:7:LIBS= `$(PKG_CONFIG) --libs libbsd` -lresolv netcat-openbsd-1.217/Makefile-8-OBJS= $(SRCS:.c=.o)