=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== arptables-0.0.5/include/arptables.h-128- arptables-0.0.5/include/arptables.h:129:extern struct in_addr *dotted_to_addr(const char *dotted); arptables-0.0.5/include/arptables.h-130-extern char *addr_to_dotted(const struct in_addr *addrp); ############################################## arptables-0.0.5/arptables.c-379-struct in_addr * arptables-0.0.5/arptables.c:380:dotted_to_addr(const char *dotted) arptables-0.0.5/arptables.c-381-{ ############################################## arptables-0.0.5/arptables.c-415-static struct in_addr * arptables-0.0.5/arptables.c:416:network_to_addr(const char *name) arptables-0.0.5/arptables.c-417-{ ############################################## arptables-0.0.5/arptables.c-664-static struct in_addr * arptables-0.0.5/arptables.c:665:host_to_addr(const char *name, unsigned int *naddr) arptables-0.0.5/arptables.c-666-{ ############################################## arptables-0.0.5/arptables.c-693- arptables-0.0.5/arptables.c:694: if ((host = gethostbyaddr((char *) addr, arptables-0.0.5/arptables.c-695- sizeof(struct in_addr), AF_INET)) != NULL) ############################################## arptables-0.0.5/arptables.c-714- arptables-0.0.5/arptables.c:715: if ((addrptmp = dotted_to_addr(name)) != NULL || arptables-0.0.5/arptables.c:716: (addrptmp = network_to_addr(name)) != NULL) { arptables-0.0.5/arptables.c-717- addrp = fw_malloc(sizeof(struct in_addr)); ############################################## arptables-0.0.5/arptables.c-721- } arptables-0.0.5/arptables.c:722: if ((addrp = host_to_addr(name, naddrs)) != NULL) arptables-0.0.5/arptables.c-723- return addrp; ############################################## arptables-0.0.5/arptables.c-739- } arptables-0.0.5/arptables.c:740: if ((addrp = dotted_to_addr(mask)) != NULL) arptables-0.0.5/arptables.c-741- /* dotted_to_addr already returns a network byte order addr */ ############################################## arptables-0.0.5/arptables.c-894- arptables-0.0.5/arptables.c:895: if ((net = getnetbyaddr((long) ntohl(addr->s_addr), AF_INET)) != NULL) arptables-0.0.5/arptables.c-896- return (char *) net->n_name; ############################################## arptables-0.0.5/arptables-save-46-unless (-x "$tool") { print "ERROR: Tool $tool isn't executable"; exit -1; }; arptables-0.0.5/arptables-save:47:$table =`$tool -t filter -L -n`; arptables-0.0.5/arptables-save-48-unless ($? == 0) { print $table; exit -1 }; ############################################## arptables-0.0.5/arptables-restore-16-sub clear_arptables { arptables-0.0.5/arptables-restore:17: $rc = `$tool -P INPUT ACCEPT`; arptables-0.0.5/arptables-restore-18- unless($? == 0) { print "ERROR: $rc\n"; exit -1 }; arptables-0.0.5/arptables-restore:19: $rc = `$tool -P FORWARD ACCEPT`; arptables-0.0.5/arptables-restore-20- unless($? == 0) { print "ERROR: $rc\n"; exit -1 }; arptables-0.0.5/arptables-restore:21: $rc = `$tool -P OUTPUT ACCEPT`; arptables-0.0.5/arptables-restore-22- unless($? == 0) { print "ERROR: $rc\n"; exit -1 }; arptables-0.0.5/arptables-restore-23- arptables-0.0.5/arptables-restore:24: $rc = `$tool -F`; arptables-0.0.5/arptables-restore-25- unless($? == 0) { print "ERROR: $rc\n"; exit -1 }; arptables-0.0.5/arptables-restore-26- arptables-0.0.5/arptables-restore:27: $rc = `$tool -L`; arptables-0.0.5/arptables-restore-28- unless($? == 0) { print "ERROR: $rc\n"; exit -1 }; ############################################## arptables-0.0.5/arptables-restore-31- unless ($line =~ m/Chain\s(.*?)\s\(.*references\)/) { next; } arptables-0.0.5/arptables-restore:32: $rc = `$tool -X $1`; arptables-0.0.5/arptables-restore-33- unless($? == 0) { print "ERROR: $rc\n"; exit -1 }; ############################################## arptables-0.0.5/arptables-restore-56- if ("$2" eq "-") { arptables-0.0.5/arptables-restore:57: $rc = `$tool -t $table -N $1`; arptables-0.0.5/arptables-restore-58- unless($? == 0) {print "ERROR(line $line): $rc\n"; exit -1}; ############################################## arptables-0.0.5/arptables-restore-60- } arptables-0.0.5/arptables-restore:61: $rc = `$tool -t $table -P $1 $2`; arptables-0.0.5/arptables-restore-62- unless($? == 0) {print "ERROR(line $line): $rc\n"; exit -1}; ############################################## arptables-0.0.5/arptables-restore-64- } arptables-0.0.5/arptables-restore:65: $rc = `$tool -t $table $_`; arptables-0.0.5/arptables-restore-66- unless($? == 0) {print "ERROR(line $line): $rc\n"; exit -1};