=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== thc-ipv6-3.6/6to4test.sh-8- thc-ipv6-3.6/6to4test.sh:9:HEX=`address6 $2 | head -n 2 | tail -n 1 | sed 's/.*:://'` thc-ipv6-3.6/6to4test.sh-10-test -z "$HEX" && { echo Error: could not generate ipv6 address from ipv4 address $1 ; exit 1 ; } ############################################## thc-ipv6-3.6/alive2map.sh-8-echo Extracting one target from every network ... thc-ipv6-3.6/alive2map.sh:9:for i in `extract_networks6.sh "$2".pingable | sort -u | sed 's/:$//'`; do thc-ipv6-3.6/alive2map.sh-10- grep "^$i" "$2".pingable | head -n 1 ############################################## thc-ipv6-3.6/alive2map.sh-13-echo Tracerouting targets ... thc-ipv6-3.6/alive2map.sh:14:for i in `cat "$2".traceable`; do thc-ipv6-3.6/alive2map.sh-15- trace6 $1 $i > $i.trace ############################################## thc-ipv6-3.6/alive6.c-525- if (resolve) thc-ipv6-3.6/alive6.c:526: he = gethostbyaddr(ptr + 8, 16, AF_INET6); thc-ipv6-3.6/alive6.c-527- p2 = thc_ipv62notation(ptr + 8); ############################################## thc-ipv6-3.6/alive6.c-545- if (resolve) thc-ipv6-3.6/alive6.c:546: he = gethostbyaddr(ptr + 8, 16, AF_INET6); thc-ipv6-3.6/alive6.c-547- p2 = thc_ipv62notation(ptr + 8); ############################################## thc-ipv6-3.6/alive6.c-733- if ((ptr = index(optarg, '/')) == NULL) { thc-ipv6-3.6/alive6.c:734: if ((addr4 = inet_addr(optarg)) == 0xffffffff) { thc-ipv6-3.6/alive6.c-735- fprintf(stderr, "Error: option is not a valid IPv4 address: %s\n", optarg); ############################################## thc-ipv6-3.6/alive6.c-753- } thc-ipv6-3.6/alive6.c:754: if ((addr4 = htonl(inet_addr(ptr2))) == 0xffffffff) { thc-ipv6-3.6/alive6.c-755- fprintf(stderr, "Error: option is not a valid IPv4 address: %s\n", ptr2); ############################################## thc-ipv6-3.6/alive6.c-1674- if (resolve) thc-ipv6-3.6/alive6.c:1675: he = gethostbyaddr(cur_dst, 16, AF_INET6); thc-ipv6-3.6/alive6.c-1676- p2 = thc_ipv62notation(cur_dst); ############################################## thc-ipv6-3.6/axfr-reverse.sh-8-test -n "$2" && PLEN=$2 thc-ipv6-3.6/axfr-reverse.sh:9:echo -- $1 | grep -q / && FOO=`echo $1 | sed 's/\/.*//'` thc-ipv6-3.6/axfr-reverse.sh-10-dig 1.0.0.1.0.0.0.0.3.0.0.2.ip6.arpa. ns | grep -q '^1\.0.*SOA' || DNS="@8.8.8.8" thc-ipv6-3.6/axfr-reverse.sh:11:DOMAIN=`dig -x $FOO soa | grep -w SOA | awk '{print$1}' | grep -v ';'` thc-ipv6-3.6/axfr-reverse.sh:12:test -z "$DOMAIN" && DOMAIN=`dig @8.8.8.8 -x $FOO ns | grep -w SOA | awk '{print$1}' | grep -v ';'` thc-ipv6-3.6/axfr-reverse.sh-13-test -z "$DOMAIN" && { echo Error: could not get SOA entry for $FOO ; exit 1 ; } thc-ipv6-3.6/axfr-reverse.sh-14-test -z "$DOMAIN" -a -n "$PLEN" && { thc-ipv6-3.6/axfr-reverse.sh:15: CHARS=`expr '(' 132 - $PLEN ')' / 2` thc-ipv6-3.6/axfr-reverse.sh:16: DOMAIN=`dig -x $FOO soa | grep -w SOA | awk '{print$1}' | egrep '^;' | awk '{print$1}' | cut -b ${CHARS}- ` thc-ipv6-3.6/axfr-reverse.sh-17-} thc-ipv6-3.6/axfr-reverse.sh-18- thc-ipv6-3.6/axfr-reverse.sh:19:X=`echo $FOO | sed 's/\.$//' | tr : _` thc-ipv6-3.6/axfr-reverse.sh-20- thc-ipv6-3.6/axfr-reverse.sh:21:for j in `dig $DOMAIN ns | grep -w NS | grep -w IN | grep -v '^;' | awk '{print$5}'`; do thc-ipv6-3.6/axfr-reverse.sh-22- echo Trying reverse zone transfer of $DOMAIN on $j ... thc-ipv6-3.6/axfr-reverse.sh:23: Y=`echo $j | sed 's/\.$//'` thc-ipv6-3.6/axfr-reverse.sh-24- dig @$j $DOMAIN axfr > $X-$Y.zone ############################################## thc-ipv6-3.6/axfr.sh-8-DOMAIN=$1 thc-ipv6-3.6/axfr.sh:9:X=`echo $1 | sed 's/\.$//'` thc-ipv6-3.6/axfr.sh-10-echo $1 | grep -q '\.$' || DOMAIN=$DOMAIN. thc-ipv6-3.6/axfr.sh-11- thc-ipv6-3.6/axfr.sh:12:for j in `dig $DNS $DOMAIN ns | grep -w NS | grep -w IN | grep -v '^;' | awk '{print$5}'`; do thc-ipv6-3.6/axfr.sh-13- echo Trying zone transfer of $DOMAIN on $j ... thc-ipv6-3.6/axfr.sh:14: Y=`echo $j | sed 's/\.$//'` thc-ipv6-3.6/axfr.sh-15- dig @$j $DOMAIN axfr > $X-$Y.zone ############################################## thc-ipv6-3.6/connsplit6.sh-38-test -z "$FROM" && { thc-ipv6-3.6/connsplit6.sh:39: FROM=`echo $NET | sed 's/:[0-9A-Fa-f]*$/:ff/'` thc-ipv6-3.6/connsplit6.sh:40: TO=`echo $NET | sed 's/:[0-9A-Fa-f]*$/:ee/'` thc-ipv6-3.6/connsplit6.sh-41-} ############################################## thc-ipv6-3.6/create_network_map.sh-23- } thc-ipv6-3.6/create_network_map.sh:24: CNT=`expr $CNT + 1` thc-ipv6-3.6/create_network_map.sh-25- FIRST="$l" ############################################## thc-ipv6-3.6/dnsrevenum6.sh-20-echo $PREFIX | grep -q / && { thc-ipv6-3.6/dnsrevenum6.sh:21: PREFIX=`echo $1 | sed 's/\/.*//'` thc-ipv6-3.6/dnsrevenum6.sh-22- #test -z "$PLEN" && thc-ipv6-3.6/dnsrevenum6.sh:23: PLEN=`echo $1 | sed 's/.*\///'` thc-ipv6-3.6/dnsrevenum6.sh-24-} ############################################## thc-ipv6-3.6/dnsrevenum6.sh-29- thc-ipv6-3.6/dnsrevenum6.sh:30:DOMAIN=`dig -x $PREFIX soa | grep SOA | grep -v '^;' | tr '\t' ' ' | sed 's/.*SOA *//' | sed 's/ .*//'` thc-ipv6-3.6/dnsrevenum6.sh:31:test -z "$DOMAIN" && DOMAIN=`dig @8.8.8.8 -x $PREFIX soa | grep SOA | grep -v '^;' | tr '\t' ' ' | sed 's/.*SOA *//' | sed 's/ .*//'` thc-ipv6-3.6/dnsrevenum6.sh:32:test -z "$DOMAIN" -a -n "$EXTRA" && DOMAIN=`dig $EXTRA ns | egrep -v '^;' | egrep -w NS | egrep -w IN | awk '{print$5}'` thc-ipv6-3.6/dnsrevenum6.sh-33-test -z "$DOMAIN" && { echo Error: no SOA entry found for domain ; exit 1 ; } thc-ipv6-3.6/dnsrevenum6.sh-34- thc-ipv6-3.6/dnsrevenum6.sh:35:X=`echo ${PREFIX}-$PLEN| sed 's/\.$//' | tr : _` thc-ipv6-3.6/dnsrevenum6.sh-36- ############################################## thc-ipv6-3.6/dnsrevenum6.sh-38- echo Enumerating $PREFIX/$PLEN on server $i ... thc-ipv6-3.6/dnsrevenum6.sh:39: Y=`echo $i | sed 's/\.$//'` thc-ipv6-3.6/dnsrevenum6.sh-40- dnsrevenum6 $i $PREFIX/$PLEN > $X-$Y.revenum ############################################## thc-ipv6-3.6/dnssecwalk.sh-11-echo $1 | grep -q '\.$' || DOMAIN=$1. thc-ipv6-3.6/dnssecwalk.sh:12:FILE=`echo $DOMAIN|sed 's/\.$//'` thc-ipv6-3.6/dnssecwalk.sh-13-OK="" thc-ipv6-3.6/dnssecwalk.sh-14- thc-ipv6-3.6/dnssecwalk.sh:15:for j in `dig $DNS $DOMAIN ns | grep -w NS | grep -w IN | grep -v ';' | awk '{print$5}'`; do thc-ipv6-3.6/dnssecwalk.sh:16: SERVER=`echo $j|sed 's/\.$//'` thc-ipv6-3.6/dnssecwalk.sh-17- test -z "$OK" && { ############################################## thc-ipv6-3.6/local_discovery6.sh-18-FILE=${INT}-`date +%Y%m%d%H%M%S`.log thc-ipv6-3.6/local_discovery6.sh:19:trap ' kill -TERM `cat .$FILE.pid` ; rm -f .$FILE.pid ; exit 0 ' 1 2 3 13 15 thc-ipv6-3.6/local_discovery6.sh-20-{ ############################################## thc-ipv6-3.6/local_discovery6.sh-38-trap '' 0 1 2 3 13 15 thc-ipv6-3.6/local_discovery6.sh:39:kill -TERM `cat .$FILE.pid` thc-ipv6-3.6/local_discovery6.sh-40-rm -f .$FILE.pid ############################################## thc-ipv6-3.6/six2four.sh-16-test "$1" = "-s" && { shift ; SRC4=$1 ; shift ; } thc-ipv6-3.6/six2four.sh:17:test -z "$4" && SRC4=`ifconfig $1 | grep "inet addr:" | awk -F: '{print$2}' | sed 's/ .*//'` thc-ipv6-3.6/six2four.sh-18- thc-ipv6-3.6/six2four.sh:19:MAC4=`ifconfig $1 | grep "^$1" | sed 's/.*HWaddr //i' | tr -d ' \t'` thc-ipv6-3.6/six2four.sh-20- thc-ipv6-3.6/six2four.sh-21-DST4=$2 thc-ipv6-3.6/six2four.sh:22:ROUTER4=`ip -4 route show | grep $1 | grep via | grep default | awk '{print$3}'` thc-ipv6-3.6/six2four.sh:23:MAD4=`arp -a -v -n | grep "($ROUTER4)" | awk '{print$4}'` thc-ipv6-3.6/six2four.sh-24- ############################################## thc-ipv6-3.6/thc-ipv6-lib.c-508- if (dl->sdl_nlen > 0 && strncmp(interface, dl->sdl_data, dl->sdl_nlen) == 0) { thc-ipv6-3.6/thc-ipv6-lib.c:509: memcpy(mac, LLADDR(dl), 6); thc-ipv6-3.6/thc-ipv6-lib.c-510- break; ############################################## thc-ipv6-3.6/trace6.c-565-//printf("foo %p\n", position[i]); thc-ipv6-3.6/trace6.c:566: he = gethostbyaddr(thc_resolve6(position[i]), 16, AF_INET6); thc-ipv6-3.6/trace6.c-567- printf(" %2d: %s (%s)%s%s\n", i, position[i], he != NULL ? he->h_name : "", remark[i], text); ############################################## thc-ipv6-3.6/trace62list.sh-20- test -z "$SKIP" || { thc-ipv6-3.6/trace62list.sh:21: LINES=`egrep '^ *[0-9]+: ' "$FILE" | wc -l` thc-ipv6-3.6/trace62list.sh:22: DUMP=`expr $LINES - $SKIP` thc-ipv6-3.6/trace62list.sh-23- test "$DUMP" -gt 0 && egrep '^ *[0-9]+: ' "$FILE" | tail -n $DUMP