=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init-16- if [ -n "$ifname" -a -n "$rootfs" -a -n "$kernel" ]; then ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init:17: [ -n "`ls /var/run/$NAME-$ifname.pid 2> /dev/null`" ] && { ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init-18- echo "Can't start more than one ap51-flash for interface $ifname!" ############################################## ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init-22- elif [ -n "$ifname" -a -n "$ubntimg" ]; then ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init:23: [ -n "`ls /var/run/$NAME-$ifname-ubnt.pid 2> /dev/null`" ] && { ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init-24- echo "Can't start more than one ap51-flash (ubnt) for interface $ifname!" ############################################## ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init-41- local pidfile ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init:42: for pidfile in `ls /var/run/${NAME}-*.pid 2> /dev/null`; do ap51-flash-2019.0.1/docs/flash-station/ap51-flash.init-43- start-stop-daemon -K -s TERM -p "${pidfile}" -n "${NAME}" >/dev/null ############################################## ap51-flash-2019.0.1/proto.c-90- memcpy(out_arphdr->arp_sha, src_mac, ETH_ALEN); ap51-flash-2019.0.1/proto.c:91: store_ip_addr(out_arphdr->arp_spa, src_ip); ap51-flash-2019.0.1/proto.c:92: store_ip_addr(out_arphdr->arp_tpa, dst_ip); ap51-flash-2019.0.1/proto.c-93-} ############################################## ap51-flash-2019.0.1/proto.c-236- arp_rep_send(node->our_mac_addr, arphdr->arp_sha, ap51-flash-2019.0.1/proto.c:237: load_ip_addr(arphdr->arp_tpa), ap51-flash-2019.0.1/proto.c:238: load_ip_addr(arphdr->arp_spa)); ap51-flash-2019.0.1/proto.c-239- break; ############################################## ap51-flash-2019.0.1/proto.h-55- ap51-flash-2019.0.1/proto.h:56:static inline void store_ip_addr(void *dst, uint32_t ip) ap51-flash-2019.0.1/proto.h-57-{ ############################################## ap51-flash-2019.0.1/proto.h-60- ap51-flash-2019.0.1/proto.h:61:static inline uint32_t load_ip_addr(void *src) ap51-flash-2019.0.1/proto.h-62-{ ############################################## ap51-flash-2019.0.1/router_netconsole.c-74- node->flash_mode = FLASH_MODE_NETCONSOLE; ap51-flash-2019.0.1/router_netconsole.c:75: node->his_ip_addr = load_ip_addr(arphdr->arp_spa); ap51-flash-2019.0.1/router_netconsole.c:76: node->our_ip_addr = load_ip_addr(arphdr->arp_tpa); ap51-flash-2019.0.1/router_netconsole.c-77- priv->state = NETCONSOLE_STATE_WAITING; ############################################## ap51-flash-2019.0.1/router_redboot.c-316- /* we are waiting for gratuitous ARP requests */ ap51-flash-2019.0.1/router_redboot.c:317: if (load_ip_addr(arphdr->arp_spa) != load_ip_addr(arphdr->arp_tpa)) ap51-flash-2019.0.1/router_redboot.c-318- goto out; ############################################## ap51-flash-2019.0.1/router_redboot.c-323- */ ap51-flash-2019.0.1/router_redboot.c:324: if (load_ip_addr(arphdr->arp_spa) == htonl(ubnt_ip)) { ap51-flash-2019.0.1/router_redboot.c-325- if (redboot_priv->arp_count < 5) { ############################################## ap51-flash-2019.0.1/router_redboot.c-355- node->flash_mode = FLASH_MODE_REDBOOT; ap51-flash-2019.0.1/router_redboot.c:356: node->his_ip_addr = load_ip_addr(arphdr->arp_spa); ap51-flash-2019.0.1/router_redboot.c:357: node->our_ip_addr = load_ip_addr(arphdr->arp_tpa); ap51-flash-2019.0.1/router_redboot.c-358- ############################################## ap51-flash-2019.0.1/router_tftp_client.c-41- node->flash_mode = FLASH_MODE_TFTP_CLIENT; ap51-flash-2019.0.1/router_tftp_client.c:42: node->his_ip_addr = load_ip_addr(arphdr->arp_spa); ap51-flash-2019.0.1/router_tftp_client.c:43: node->our_ip_addr = load_ip_addr(arphdr->arp_tpa); ap51-flash-2019.0.1/router_tftp_client.c-44- ############################################## ap51-flash-2019.0.1/router_tftp_server.c-42- ap51-flash-2019.0.1/router_tftp_server.c:43: if (load_ip_addr(arphdr->arp_spa) != htonl(ubnt_ip)) ap51-flash-2019.0.1/router_tftp_server.c-44- goto out; ############################################## ap51-flash-2019.0.1/router_tftp_server.c-67- node->flash_mode = FLASH_MODE_TFTP_SERVER; ap51-flash-2019.0.1/router_tftp_server.c:68: node->his_ip_addr = load_ip_addr(arphdr->arp_spa); ap51-flash-2019.0.1/router_tftp_server.c:69: node->our_ip_addr = load_ip_addr(arphdr->arp_tpa); ap51-flash-2019.0.1/router_tftp_server.c-70-