[+] Check binaries for weak functions (radare mode)

This module identifies the usage of critical binary functions in firmware via radare2.
Examples of binary functions are system, strcpy, printf and strcat. These functions are configured in the configuration
file config/functions.cfg. The module counts the usages per binary. For strcpy functions it also counts strlen functions
right before the strcpy function. Additionally it checks if the binary is a known Linux binary or unknown and probably
a vendor binary.

[*] Vulnerable functions: fprintf mmap popen printf sprintf strcat strcpy system

[+] /lib/libip4tc.so.0.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 5 / networking: no


[+] /usr/sbin/ip6tables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 23 / networking: no


[+] /usr/sbin/udhcpd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 1 / networking: yes


[+] /usr/sbin/gpiod (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 3 / networking: yes


[+] /lib/xtables/libip6t_LOG.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 16 / networking: no


[+] /usr/sbin/updateleases (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: no


[+] /lib/xtables/libipt_TTL.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 9 / networking: no


[+] /lib/xtables/libipt_REJECT.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 4 / networking: no


[+] /lib/libip4tc.so.0.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 23 / networking: no


[+] /usr/sbin/gpiod (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /usr/sbin/ip6tables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 77 / networking: no


[+] /sbin/ubcom (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 22 / networking: yes


[+] /usr/sbin/updateleases (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 16 / networking: no


[+] /usr/sbin/udhcpd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 32 / networking: yes


[+] /usr/sbin/gpiod (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 18 / networking: yes


[+] /sbin/ubcom (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 6 / networking: yes


[+] /usr/sbin/updateleases (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 11 / networking: no


[+] /usr/sbin/udhcpd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 26 / networking: yes


[+] /lib/xtables/libip6t_LOG.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 1 / networking: no


[+] /usr/sbin/ip6tables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 6 / networking: no


[+] /lib/libip4tc.so.0.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 12 / strlen: 1 / networking: no


[+] /sbin/ubcom (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 2 / strlen: 2 / networking: yes


[+] /usr/sbin/ip6tables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 7 / strlen: 0 / networking: no


[+] /usr/sbin/updateleases (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 2 / strlen: 0 / networking: no


[+] /usr/sbin/udhcpd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 5 / strlen: 0 / networking: yes


[+] /sbin/ubcom (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /usr/sbin/gpiod (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 2 / networking: yes


[+] /usr/sbin/updateleases (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: no


[+] /usr/sbin/udhcpd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 2 / networking: yes


[+] /lib/xtables/libipt_DNAT.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 11 / networking: no


[+] /sbin/httpd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 19 / networking: yes


[+] /lib/libxtables.so.4.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 22 / networking: no


[+] /lib/xtables/libxt_time.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 20 / networking: no


[+] /lib/xtables/libxt_state.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 7 / networking: no


[+] /usr/sbin/ubcfg (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 8 / networking: no


[+] /lib/libutil-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: no


[+] /lib/libxtables.so.4.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 29 / networking: no


[+] /sbin/httpd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 52 / networking: yes


[+] /usr/sbin/ubcfg (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 1 / networking: no


[+] /usr/sbin/logd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 3 / networking: yes


[+] /lib/libxtables.so.4.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 4 / networking: no


[+] /sbin/httpd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 26 / networking: yes


[+] /usr/sbin/trigger (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 1 / networking: no


[+] /lib/libxtables.so.4.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 1 / networking: no


[+] /usr/sbin/servd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 43 / networking: yes


[+] /usr/sbin/logd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /sbin/httpd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 13 / strlen: 1 / networking: yes


[+] /lib/libxtables.so.4.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 7 / strlen: 0 / networking: no


[+] /lib/xtables/libxt_tcpmss.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 4 / networking: no


[+] /usr/sbin/trigger (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 5 / networking: no


[+] /usr/sbin/logd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 17 / networking: yes


[+] /lib/xtables/libxt_TCPMSS.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 4 / networking: no


[+] /lib/xtables/libxt_MARK.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 17 / networking: no


[+] /usr/sbin/logd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 2 / networking: yes


[+] /usr/sbin/servd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 59 / networking: yes


[+] /usr/sbin/iwconfig (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 86 / networking: no


[+] /usr/sbin/servd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 5 / networking: yes


[+] /usr/sbin/logd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 1 / strlen: 1 / networking: yes


[+] /lib/xtables/libipt_icmp.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 10 / networking: no


[+] /usr/sbin/iwconfig (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: popen / Function count: 1 / networking: no


[+] /usr/sbin/logd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 2 / networking: yes


[+] /usr/sbin/servd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 7 / strlen: 2 / networking: yes


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 1 / networking: yes


[+] /usr/sbin/iwconfig (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 186 / networking: no


[+] /usr/sbin/servd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /lib/xtables/libipt_MASQUERADE.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 7 / networking: no


[+] /lib/xtables/libipt_icmp.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 1 / networking: no


[+] /lib/xtables/libip6t_icmp6.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 10 / networking: no


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: mmap / Function count: 1 / Correct error handling: NA 


[+] /usr/sbin/rndimage (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 2 / networking: no


[+] /usr/sbin/iwconfig (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 20 / networking: no


[+] /usr/sbin/netbios (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 2 / networking: yes


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /lib/xtables/libip6t_icmp6.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 1 / networking: no


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 38 / networking: yes


[+] /usr/sbin/iwconfig (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 21 / strlen: 2 / networking: no


[+] /usr/sbin/rndimage (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 10 / networking: no


[+] /usr/sbin/netbios (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: yes


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 3 / networking: yes


[+] /usr/sbin/iwconfig (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: system / Function count: 1 / networking: no


[+] /usr/sbin/rndimage (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 5 / networking: no


[+] /lib/xtables/libxt_multiport.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 22 / networking: no


[+] /usr/sbin/telnetd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 1 / networking: yes


[+] /lib/libcrypt-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: strcat / Function count: 1 / networking: no


[+] /usr/sbin/neaps (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 4 / networking: yes


[+] /usr/sbin/llmnresp (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 1 / networking: yes


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 37 / strlen: 2 / networking: yes


[+] /lib/libcrypt-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: no


[+] /usr/sbin/portt (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 1 / networking: yes


[+] /usr/sbin/neaps (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /usr/sbin/telnetd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 3 / networking: yes


[+] /usr/sbin/igmpproxy (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 7 / networking: yes


[+] /usr/sbin/neaps (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 14 / networking: yes


[+] /usr/sbin/ecmh (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 40 / networking: yes


[+] /usr/sbin/llmnresp (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 4 / networking: yes


[+] /usr/sbin/portt (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 7 / networking: yes


[+] /usr/sbin/neaps (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 3 / networking: yes


[+] /usr/sbin/telnetd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: yes


[+] /usr/sbin/tc (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 479 / networking: yes


[+] /usr/sbin/portt (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 2 / networking: yes


[+] /usr/sbin/llmnresp (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 1 / networking: yes


[+] /lib/libuClibc-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: fprintf / Function count: 44 / networking: no


[+] /lib/xtables/libxt_pkttype.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 5 / networking: no


[+] /usr/sbin/ecmh (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 43 / networking: yes


[+] /usr/sbin/neaps (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 2 / strlen: 0 / networking: yes


[+] /usr/sbin/llmnresp (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: yes


[+] /usr/sbin/portt (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: yes


[+] /usr/sbin/neaps (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /usr/sbin/ddnsd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 9 / networking: yes


[+] /lib/libuClibc-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: mmap / Function count: 2 / Correct error handling: NA 


[+] /usr/sbin/portt (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /lib/libip6tc.so.0.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 5 / networking: no


[+] /usr/sbin/radvd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 18 / networking: yes


[+] /usr/sbin/ddnsd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 29 / networking: yes


[+] /usr/sbin/tc (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 555 / networking: yes


[+] /lib/xtables/libxt_mac.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 6 / networking: no


[+] /usr/sbin/ddnsd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 10 / networking: yes


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 10 / networking: yes


[+] /usr/sbin/tc (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 2 / networking: yes


[+] /lib/libuClibc-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: printf / Function count: 79 / networking: no


[+] /lib/libip6tc.so.0.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 24 / networking: no


[+] /usr/sbin/ddnsd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 2 / networking: yes


[+] /usr/sbin/radvd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 21 / networking: yes


[+] /usr/sbin/ddnsd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 7 / strlen: 1 / networking: yes


[+] /usr/sbin/tc (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 1 / networking: yes


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 2 / networking: yes


[+] /lib/libuClibc-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: sprintf / Function count: 21 / networking: no


[+] /usr/sbin/radvdump (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 11 / networking: no


[+] /usr/sbin/ddnsd (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /lib/libip6tc.so.0.0.0 (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 12 / strlen: 1 / networking: no


[+] /usr/sbin/radvd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 1 / networking: yes


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 734 / networking: yes


[+] /usr/sbin/tc (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 5 / strlen: 2 / networking: yes


[+] /usr/sbin/radvd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: yes


[+] /lib/libuClibc-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: strcat / Function count: 4 / networking: no


[+] /lib/xtables/libxt_conntrack.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 61 / networking: no


[+] /usr/sbin/radvdump (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 48 / networking: no


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 23 / networking: yes


[+] /lib/xtables/libxt_mark.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 7 / networking: no


[+] /lib/xtables/libxt_conntrack.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 1 / networking: no


[+] /usr/sbin/rdisc6 (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 3 / networking: no


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 3 / networking: yes


[+] /usr/sbin/radvdump (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 1 / networking: no


[+] /lib/libuClibc-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: strcpy / Function count: 29 / strlen: 17 / networking: no


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 5 / networking: yes


[+] /lib/xtables/libxt_string.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 16 / networking: no


[+] /lib/xtables/libxt_conntrack.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: no


[+] /usr/sbin/radvdump (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 0 / networking: no


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 4 / strlen: 4 / networking: yes


[+] /usr/sbin/rdisc6 (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 58 / networking: no


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /usr/sbin/xmldb (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 4 / networking: yes


[+] /usr/sbin/rdisc6 (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 10 / networking: no


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 20 / networking: yes


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 5 / networking: yes


[+] /usr/sbin/rdisc6 (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 4 / networking: no


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 1 / networking: yes


[+] /usr/sbin/widget (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 7 / networking: no


[+] /lib/xtables/libipt_LOG.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 16 / networking: no


[+] /usr/sbin/rdisc6 (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 5 / strlen: 1 / networking: no


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 1 / networking: yes


[+] /usr/sbin/widget (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 4 / networking: no


[+] /lib/xtables/libxt_physdev.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 11 / networking: no


[+] /lib/xtables/libipt_REDIRECT.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 8 / networking: no


[+] /usr/sbin/rdisc6 (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: system / Function count: 4 / networking: no


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 3 / strlen: 3 / networking: yes


[+] /lib/xtables/libipt_LOG.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 1 / networking: no


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 113 / networking: yes


[+] /usr/sbin/lld2d (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 41 / networking: yes


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 3 / networking: yes


[+] /usr/sbin/iptables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 26 / networking: no


[+] /lib/libpthread-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: mmap / Function count: 2 / Correct error handling: NA 


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcat / Function count: 6 / networking: yes


[+] /lib/ld-uClibc-0.9.30.1.so (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 21 / networking: no


[+] /usr/sbin/ip (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 499 / networking: yes


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 16 / strlen: 2 / networking: yes


[+] /lib/xtables/libxt_helper.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 2 / networking: no


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: popen / Function count: 1 / networking: yes


[+] /usr/sbin/iptables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 117 / networking: no


[+] /htdocs/cgibin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 17 / networking: yes


[+] /lib/libm-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: printf / Function count: 2 / networking: no


[+] /usr/sbin/dhcp6c (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 26 / networking: yes


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 34 / networking: yes


[+] /usr/sbin/iptables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 6 / networking: no


[+] /lib/libm-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: sprintf / Function count: 2 / networking: no


[+] /usr/sbin/updatewifistats (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 21 / networking: no


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 23 / networking: yes


[+] /usr/sbin/iptables-multi (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 7 / strlen: 0 / networking: no


[+] /lib/libpthread-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: no


[+] /usr/sbin/ip (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 588 / networking: yes


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 12 / networking: yes


[+] /usr/sbin/updatewifistats (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: no


[+] /usr/sbin/logger (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 1 / networking: no


[+] /lib/xtables/libip6t_REJECT.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 4 / networking: no


[+] /usr/sbin/dhcp6c (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 509 / networking: yes


[+] /usr/sbin/updatewifistats (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 79 / networking: no


[+] /lib/xtables/libxt_CLASSIFY.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 3 / networking: no


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 28 / strlen: 12 / networking: yes


[+] /usr/sbin/ip (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 15 / networking: yes


[+] /usr/sbin/dhcp6c (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 9 / networking: yes


[+] /usr/sbin/updatewifistats (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 37 / networking: no


[+] /usr/sbin/logger (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 4 / networking: no


[+] /usr/sbin/dnsmasq (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: system / Function count: 1 / networking: yes


[+] /lib/xtables/libxt_udp.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 10 / networking: no


[+] /usr/sbin/ip (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 1 / networking: yes


[+] /usr/sbin/updatewifistats (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 21 / strlen: 1 / networking: no


[+] /usr/sbin/dhcp6c (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 2 / strlen: 0 / networking: yes


[+] /usr/sbin/ip (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 4 / strlen: 0 / networking: yes


[+] /usr/sbin/updatewifistats (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 2 / networking: no


[+] /usr/sbin/dhcp6c (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /usr/sbin/rt3052esw (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 6 / networking: no


[+] /usr/sbin/rgbin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 45 / networking: yes


[+] /usr/sbin/ated (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 2 / strlen: 0 / networking: yes


[+] /usr/sbin/pppd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 37 / networking: yes


[+] /usr/sbin/rt3052esw (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 6 / networking: no


[+] /lib/xtables/libipt_HIJACK.so (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 3 / networking: no


[+] /usr/sbin/rgbin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 2 / networking: yes


[+] /usr/sbin/rgbin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 131 / networking: yes


[+] /lib/libdl-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: fprintf / Function count: 5 / networking: no


[+] /usr/sbin/hostapd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 3 / networking: yes


[+] /usr/sbin/rgbin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 8 / networking: yes


[+] /lib/xtables/libxt_tcp.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 19 / networking: no


[+] /lib/xtables/libxt_iprange.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 1 / networking: no


[+] /lib/libdl-0.9.30.1.so (-rw-r--r-- root root) - common linux file: no - Vulnerable function: printf / Function count: 5 / networking: no


[+] /usr/sbin/nsbbox (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 46 / networking: yes


[+] /usr/sbin/hostapd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: popen / Function count: 1 / networking: yes


[+] /lib/xtables/libipt_SNAT.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 10 / networking: no


[+] /usr/sbin/rgbin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 7 / strlen: 7 / networking: yes


[+] /usr/sbin/pppd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 149 / networking: yes


[+] /usr/sbin/rgbin (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 3 / networking: yes


[+] /lib/xtables/libxt_iprange.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 38 / networking: no


[+] /usr/sbin/hostapd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 204 / networking: yes


[+] /usr/sbin/nsbbox (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: popen / Function count: 1 / networking: yes


[+] /usr/sbin/pppd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 16 / networking: yes


[+] /usr/sbin/nsbbox (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 137 / networking: yes


[+] /usr/sbin/klogd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: fprintf / Function count: 1 / networking: no


[+] /usr/sbin/hostapd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 1 / networking: yes


[+] /usr/sbin/nsbbox (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 2 / networking: yes


[+] /lib/xtables/libxt_limit.so (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 6 / networking: no


[+] /usr/sbin/pppd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcat / Function count: 1 / networking: yes


[+] /usr/sbin/klogd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: popen / Function count: 1 / networking: no


[+] /usr/sbin/dhcp6s (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: fprintf / Function count: 5 / networking: yes


[+] /lib/xtables/libxt_mport.so (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 22 / networking: no


[+] /usr/sbin/klogd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: printf / Function count: 10 / networking: no


[+] /usr/sbin/hostapd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 1 / strlen: 1 / networking: yes


[+] /usr/sbin/nsbbox (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 3 / strlen: 1 / networking: yes


[+] /usr/sbin/pppd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: strcpy / Function count: 9 / strlen: 4 / networking: yes


[+] /usr/sbin/klogd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: sprintf / Function count: 3 / networking: no


[+] /usr/sbin/nsbbox (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: system / Function count: 1 / networking: yes


[+] /usr/sbin/hostapd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: system / Function count: 1 / networking: yes


[+] /usr/sbin/dhcp6s (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: printf / Function count: 441 / networking: yes


[+] /usr/sbin/pppd (-rwxr-xr-x root root) - common linux file: yes -  Vulnerable function: system / Function count: 4 / networking: yes


[+] /usr/sbin/dhcp6s (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: sprintf / Function count: 13 / networking: yes


[+] /usr/sbin/dhcp6s (-rwxr-xr-x root root) - common linux file: no - Vulnerable function: strcpy / Function count: 2 / strlen: 0 / networking: yes




==> Top 10 legacy C functions - Radare2 disasm mode


[+] fprintf - top 10 results:

	499   : ip              : common linux file: yes
	479   : tc              : common linux file: yes
	86    : iwconfig        : common linux file: yes
	46    : nsbbox          : common linux file: no
	45    : rgbin           : common linux file: no
	44    : libuClibc-0.9.3 : common linux file: no
	43    : servd           : common linux file: no
	40    : ecmh            : common linux file: no
	37    : pppd            : common linux file: yes
	26    : iptables-multi  : common linux file: yes


[+] mmap - top 10 results:

	2     : libuClibc-0.9.3 : common linux file: no
	2     : libpthread-0.9. : common linux file: no
	1     : igmpproxy       : common linux file: no


[+] popen - top 10 results:

	2     : xmldb           : common linux file: no
	2     : rgbin           : common linux file: no
	1     : updatewifistats : common linux file: no
	1     : updateleases    : common linux file: no
	1     : nsbbox          : common linux file: no
	1     : neaps           : common linux file: no
	1     : logd            : common linux file: no
	1     : lld2d           : common linux file: no
	1     : klogd           : common linux file: yes
	1     : iwconfig        : common linux file: yes


[+] printf - top 10 results:

	734   : xmldb           : common linux file: no
	588   : ip              : common linux file: yes
	555   : tc              : common linux file: yes
	509   : dhcp6c          : common linux file: no
	441   : dhcp6s          : common linux file: no
	204   : hostapd         : common linux file: yes
	186   : iwconfig        : common linux file: yes
	149   : pppd            : common linux file: yes
	137   : nsbbox          : common linux file: no
	131   : rgbin           : common linux file: no


[+] sprintf - top 10 results:

	41    : cgibin          : common linux file: no
	37    : updatewifistats : common linux file: no
	26    : udhcpd          : common linux file: no
	26    : httpd           : common linux file: yes
	23    : xmldb           : common linux file: no
	23    : dnsmasq         : common linux file: yes
	21    : libuClibc-0.9.3 : common linux file: no
	20    : iwconfig        : common linux file: yes
	16    : pppd            : common linux file: yes
	15    : ip              : common linux file: yes


[+] strcat - top 10 results:

	12    : dnsmasq         : common linux file: yes
	6     : iptables-multi  : common linux file: yes
	6     : ip6tables-multi : common linux file: yes
	6     : cgibin          : common linux file: no
	4     : rdisc6          : common linux file: yes
	4     : libuClibc-0.9.3 : common linux file: no
	3     : xmldb           : common linux file: no
	2     : ddnsd           : common linux file: no
	1     : ubcfg           : common linux file: no
	1     : tc              : common linux file: yes


[+] strcpy - top 10 results:


	37    : igmpproxy       : common linux file: no
	29    : libuClibc-0.9.3 : common linux file: no
	28    : dnsmasq         : common linux file: yes
	21    : updatewifistats : common linux file: no
	21    : iwconfig        : common linux file: yes
	16    : cgibin          : common linux file: no
	13    : httpd           : common linux file: yes
	12    : libip6tc.so.0.0 : common linux file: no
	12    : libip4tc.so.0.0 : common linux file: no
	9     : pppd            : common linux file: yes


[+] system - top 10 results:

	17    : cgibin          : common linux file: no
	7     : igmpproxy       : common linux file: no
	4     : xmldb           : common linux file: no
	4     : rdisc6          : common linux file: yes
	4     : pppd            : common linux file: yes
	3     : rgbin           : common linux file: no
	2     : updatewifistats : common linux file: no
	2     : udhcpd          : common linux file: no
	2     : logd            : common linux file: no
	2     : gpiod           : common linux file: no