=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== zmap-2.1.1/examples/forge-socket/forge-socket.c-361- st->conf = conf; zmap-2.1.1/examples/forge-socket/forge-socket.c:362: st->src_ip = inet_addr(srcip); zmap-2.1.1/examples/forge-socket/forge-socket.c:363: st->dst_ip = inet_addr(dstip); zmap-2.1.1/examples/forge-socket/forge-socket.c-364- st->sport = sport; ############################################## zmap-2.1.1/lib/blacklist.c-96- struct in_addr addr; zmap-2.1.1/lib/blacklist.c:97: addr.s_addr = inet_addr(ip); zmap-2.1.1/lib/blacklist.c-98- _add_constraint(addr, prefix_len, ADDR_DISALLOWED); ############################################## zmap-2.1.1/lib/blacklist.c-104- struct in_addr addr; zmap-2.1.1/lib/blacklist.c:105: addr.s_addr = inet_addr(ip); zmap-2.1.1/lib/blacklist.c-106- _add_constraint(addr, prefix_len, ADDR_ALLOWED); ############################################## zmap-2.1.1/lib/constraint.c-357- constraint_t *con = constraint_init(0); zmap-2.1.1/lib/constraint.c:358: constraint_set(con, ntohl(inet_addr("128.128.0.0")), 1, 22); zmap-2.1.1/lib/constraint.c:359: constraint_set(con, ntohl(inet_addr("128.128.0.0")), 1, 1); zmap-2.1.1/lib/constraint.c:360: constraint_set(con, ntohl(inet_addr("128.0.0.0")), 1, 1); zmap-2.1.1/lib/constraint.c:361: constraint_set(con, ntohl(inet_addr("10.0.0.0")), 24, 1); zmap-2.1.1/lib/constraint.c:362: constraint_set(con, ntohl(inet_addr("10.0.0.0")), 24, 0); zmap-2.1.1/lib/constraint.c:363: constraint_set(con, ntohl(inet_addr("10.11.12.0")), 24, 1); zmap-2.1.1/lib/constraint.c:364: constraint_set(con, ntohl(inet_addr("141.212.0.0")), 16, 0); zmap-2.1.1/lib/constraint.c-365- ############################################## zmap-2.1.1/lib/constraint.c-372- printf("count(1)=%ld\n", constraint_count_ips(con, 1)); zmap-2.1.1/lib/constraint.c:373: printf("%d\n", constraint_lookup_ip(con,ntohl(inet_addr("10.11.12.0")))); zmap-2.1.1/lib/constraint.c-374- assert(constraint_count_ips(con, 0) + constraint_count_ips(con, 1) == (uint64_t)1 << 32); ############################################## zmap-2.1.1/src/get_gateway-bsd.h-31- zmap-2.1.1/src/get_gateway-bsd.h:32:int get_hw_addr(struct in_addr *gw_ip, UNUSED char *iface, unsigned char *hw_mac) zmap-2.1.1/src/get_gateway-bsd.h-33-{ ############################################## zmap-2.1.1/src/get_gateway-bsd.h-89- zmap-2.1.1/src/get_gateway-bsd.h:90:int get_iface_hw_addr(char *iface, unsigned char *hw_mac) zmap-2.1.1/src/get_gateway-bsd.h-91-{ ############################################## zmap-2.1.1/src/get_gateway-linux.h-94- zmap-2.1.1/src/get_gateway-linux.h:95:int get_hw_addr(struct in_addr *gw_ip, char *iface, unsigned char *hw_mac) zmap-2.1.1/src/get_gateway-linux.h-96-{ ############################################## zmap-2.1.1/src/get_gateway-linux.h-270- zmap-2.1.1/src/get_gateway-linux.h:271:int get_iface_hw_addr(char *iface, unsigned char *hw_mac) zmap-2.1.1/src/get_gateway-linux.h-272-{ ############################################## zmap-2.1.1/src/get_gateway.h-13- zmap-2.1.1/src/get_gateway.h:14:int get_hw_addr(struct in_addr *gw_ip, char *iface, unsigned char *hw_mac); zmap-2.1.1/src/get_gateway.h-15-int get_default_gw(struct in_addr *gw, char *iface); zmap-2.1.1/src/get_gateway.h-16-int get_iface_ip(char *iface, struct in_addr *ip); zmap-2.1.1/src/get_gateway.h:17:int get_iface_hw_addr(char *iface, unsigned char *hw_mac); zmap-2.1.1/src/get_gateway.h-18-char* get_default_iface(void); ############################################## zmap-2.1.1/src/probe_modules/packet.c-20-#ifndef NDEBUG zmap-2.1.1/src/probe_modules/packet.c:21:void print_macaddr(struct ifreq* i) zmap-2.1.1/src/probe_modules/packet.c-22-{ ############################################## zmap-2.1.1/src/send.c-73- // the source addresses from which we'll send packets; zmap-2.1.1/src/send.c:74: srcip_first = inet_addr(zconf.source_ip_first); zmap-2.1.1/src/send.c-75- if (srcip_first == INADDR_NONE) { ############################################## zmap-2.1.1/src/send.c-78- } zmap-2.1.1/src/send.c:79: srcip_last = inet_addr(zconf.source_ip_last); zmap-2.1.1/src/send.c-80- if (srcip_last == INADDR_NONE) { ############################################## zmap-2.1.1/src/send.c-136- if (!zconf.hw_mac_set) { zmap-2.1.1/src/send.c:137: if (get_iface_hw_addr(zconf.iface, zconf.hw_mac)) { zmap-2.1.1/src/send.c-138- log_fatal("send", "could not retrieve hardware address for " ############################################## zmap-2.1.1/src/zmap.c-150- memset(&zconf.gw_mac, 0, MAC_ADDR_LEN); zmap-2.1.1/src/zmap.c:151: if (get_hw_addr(&gw_ip, zconf.iface, zconf.gw_mac)) { zmap-2.1.1/src/zmap.c-152- log_fatal("zmap", "could not detect GW MAC address for %s on %s."