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:
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:
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.
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
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.