What's new

Cracked net-scan daemon

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

HELLO_wORLD

Very Senior Member
I looked at the net-scan source code from NG, and I figured out how to trigger it from shell :)

It is quite easy in fact:
Code:
/usr/bin/killall -10 net-scan

net-scan is a NG/DNI daemon launched at startup, that is able to scan LAN for devices, using ARP and NetBios. Its purpose is to get the list of attached devices, and it is used by net-cgi (list of attached devices in router’s web interface).

When the SIGUSR1 (10) signal is sent to the daemon, it refreshes the files in /tmp/netscan/

The next release of aegis will call directly net-scan, instead of the trick I have been using (calling the device webpage to force net-cgi to call net-scan).

I also figured how to use dev-scan:
Code:
dev-scan DEV-IP
Where DEV-IP is the IP of a device on the LAN.
It creates the file /tmp/netscan/ip_name_list with the IP and the device name, only if it finds it.

dev-scan is limited to NetBios names only, and one device at a time, when net-scan finds NetBios and ARP names, and scans the entire LAN.
 
Let me know if you want me to test anything on Orbi
Well, to confirm it works the same on Orbi, you can run this:
Code:
ls -lt /tmp/netscan/
/usr/bin/killall -10 net-scan
[WAIT A SECOND OR TWO]
ls -lt /tmp/netscan/
And the files should have different dates (because refreshed).
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top