Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Show available wifi networks on your computer using netsh

Hi there! Not sure if anyone is interested in this, but this code gets all the available wifi networks on your computer. This is using netsh but it is not showing the prompt.

Here is picture:
[Image: 3743ab088d0c7031502d69d849116083.png?1366884170]

And here is the code:

You need 1 button, listbox and richtextbox, 1 label.

Code
Dim proc As New System.Diagnostics.Process()
        proc.StartInfo.FileName = "netsh"
        proc.StartInfo.Arguments = "wlan show networks mode=bssid"
        proc.StartInfo.RedirectStandardOutput = True
        proc.StartInfo.UseShellExecute = False
        proc.StartInfo.CreateNoWindow = True
        proc.Start()

        Dim output As String = proc.StandardOutput.ReadToEnd
        RichTextBox1.Text = output

        For Each line As String In RichTextBox1.Lines
            If line.Contains("BSSID") Then
            ElseIf line.Contains("SSID") Then
                Dim wifinetwork As String = line.Split(":")(1)
                ListBox1.Items.Add(wifinetwork)

            End If
        Next

        Label2.Text = ListBox1.Items.Count

Enjoy :)
This is nice, thanks bro. I'm sure I'll use it one of theses days.
Can it show the wifi-saved passwords?
Awesome snippet dude :)
I think I will make a Video Tutorial for this. (Of course giving credits :) )
Hmm, I could see some good and evil uses for this... Thanks for posting.
Go Programmer, Adept in CAD, Adept in 3D Printing, Need something made? PM me.
(Apr 25, 2013 02:00 PM)SIM-297877 Wrote:  Hmm, I could see some good and evil uses for this... Thanks for posting.

Your welcome man! :)

The message is . Please enter a message longer than 35 characters.
A great post. Keep it up.

-Roflmaoh4x0r
Ohhh, nice man. Thanks, I'll use this in my RAT.
man you are amazing!!! :D
i was wanted to make the same but i didn't have the knowledge...
anyway thanks a lot for sharing! :)
Well it look's like this doesn't work for me :(
Hey, how could I add that the listview Entry oft the WLAN point I am connected to gets red colored?
(Apr 26, 2013 12:37 PM)SIM-1456245 Wrote:  Well it look's like this doesn't work for me :(

It wont show any wifi networks if your computer dosnt have wifi connection..
No, I get this error: The following command was not found: wlan show networks mode=bssid

BTW I'm on XP.
(Apr 26, 2013 12:54 PM)SIM-1456245 Wrote:  No, I get this error: The following command was not found: wlan show networks mode=bssid

BTW I'm on XP.

Prolly that's the problem, i'm on win7 and it works.
(Apr 26, 2013 01:20 PM)He B TeMy Wrote:  Prolly that's the problem, i'm on win7 and it works.

Well, thank you. It look's like I can't test it.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Mr. RobotNov 27, 2016 07:53 AM 2 126 Nov 27, 2016 07:53 AM
Last Post: Mr. Robot
[C#] by Zilog80Jul 20, 2016 11:53 PM 2 114 Jul 20, 2016 11:53 PM
Last Post: Zilog80
[.NET] by Tɦɛ AlexDec 22, 2015 12:46 PM 2 336 Dec 22, 2015 12:46 PM
Last Post: Tɦɛ Alex