ReFirmLabs / binwalk

Firmware Analysis Tool
MIT License
10.38k stars 1.49k forks source link

binwalk extract squashfs-root but symlink point to /dev/null #584

Open 4nm opened 2 years ago

4nm commented 2 years ago

**I used git clone binwalk and then run deps.sh to install in Ubuntu18.04 binwalk -eM DIR600B6_FW215WWb02.bin In the extracted file every symlink lead to "/dev/null" like this: lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 captcha.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 conntrack.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 dlcfg.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 fwup.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 hedwig.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 pigwidgeon.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 seama.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 service.cgi -> /dev/null lrwxrwxrwx 1 alex alex 9 Dec 19 22:30 session.cgi -> /dev/null

but in AttifyOS1.3 use the same instructions lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 captcha.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 conntrack.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 dlcfg.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 15 Dec 19 01:26 docs -> /var/htdocs/web lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 fwup.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 hedwig.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 pigwidgeon.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 seama.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 service.cgi -> /htdocs/cgibin lrwxrwxrwx 1 oit oit 14 Dec 19 01:26 session.cgi -> /htdocs/cgibin

i have the 'cgibin' in my ubuntu What caused such a mistake? What should i do?