The MASM Forum

General => The Workshop => Topic started by: Farabi on June 30, 2012, 09:36:31 PM

Title: Wlan enumeration
Post by: Farabi on June 30, 2012, 09:36:31 PM
Anyone knew how to enumerate how many computers connected through a wifi router? Im just bought a wifi router and setup a wlan on my apartment.
Title: Re: Wlan enumeration
Post by: Mr Hippy on July 02, 2012, 03:10:28 AM
It really depends on what router you have. You can look at the DHCP table, MAC address table or LAN connections table.
Title: Re: Wlan enumeration
Post by: Farabi on July 02, 2012, 12:13:38 PM
Quote from: Mr Hippy on July 02, 2012, 03:10:28 AM
It really depends on what router you have. You can look at the DHCP table, MAC address table or LAN connections table.

Do you know what function I should use from the WinAPI?
Title: Re: Wlan enumeration
Post by: anta40 on July 02, 2012, 03:42:34 PM
Quote from: Farabi on July 02, 2012, 12:13:38 PM
Do you know what function I should use from the WinAPI?

Usually you acess the router via the web interface.
Maybe you could use InternetConnect (http://msdn.microsoft.com/en-us/library/windows/desktop/aa384363(v=vs.85).aspx), then connect to the router (usually the IP address is http://192.168.1.1). Parse the result, and you can enumerate how many PCs are connected to the router.
Title: Re: Wlan enumeration
Post by: Farabi on July 03, 2012, 04:23:24 PM
Quote from: anta40 on July 02, 2012, 03:42:34 PM
Quote from: Farabi on July 02, 2012, 12:13:38 PM
Do you know what function I should use from the WinAPI?

Usually you acess the router via the web interface.
Maybe you could use InternetConnect (http://msdn.microsoft.com/en-us/library/windows/desktop/aa384363(v=vs.85).aspx), then connect to the router (usually the IP address is http://192.168.1.1). Parse the result, and you can enumerate how many PCs are connected to the router.

Thanks, that is help a lot.