VB.NET Port Scanner [TUT] - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: VB.NET Port Scanner [TUT] (/showthread.php?tid=6159) |
VB.NET Port Scanner [TUT] - Fragma - 04-12-2010 Note: I take no credit for the coding of this port scanner.. Credits go to David Kramer for posting it on Code Project Ok so first off create a new Windows Application Form You will need to add: - TextBox X2 - ListBox X2 - Button X2 - Labels - Timer Add a label next to TextBox1 saying 'Host:' And add 1 next to TextBox2 saying 'Port:' Change the text on Button1 to 'start' Change Button2 to 'stop' Add a label for ListBox1 saying 'Ports being scanned:' Add 1 for ListBox2 saying 'Open ports:' ---------------------------------------------------- Ok now for the coding... First off declare the variables Code: Dim host As String Add the following to Form_load Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Add the following to Timer_tick Code: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Add the following to the Start button_click Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Add the following to Button2_click (stop) Code: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Hope this helps. RE: VB.NET Port Scanner [TUT] - Fragma - 04-13-2010 Bump... Nobody find this useful? lol RE: VB.NET Port Scanner [TUT] - Kewlz - 04-15-2010 thanks For Sharing Major OFF Plz contact me in MSN RE: VB.NET Port Scanner [TUT] - phire nuk3r - 04-15-2010 Ok i managed to get as far building with no errors. When i run the application, if put ip into host i get a constant unexpected error warning. When i put a domain name, it works if left alone, but ignores the port number i put in port and just starts from port 1 and continues to check even past the port i put. And if i try and stop it, it stops responding and i have to end the program. Im new to this. So maybe i have other looked something. Please help RE: VB.NET Port Scanner [TUT] - RaZoR03 - 04-18-2010 Very nice tut dude.. Thanks RE: VB.NET Port Scanner [TUT] - Fragma - 04-18-2010 @Phire, I don't know what you mean. Can you maybe post a screenshot? RE: VB.NET Port Scanner [TUT] - Julie - 04-18-2010 It work, thanks. RE: VB.NET Port Scanner [TUT] - SouR'D - 04-20-2010 Very nice TUT "The Major" keep up the Good Work. RE: VB.NET Port Scanner [TUT] - Fragma - 04-20-2010 No worries. I'm glad you all like it. RE: VB.NET Port Scanner [TUT] - flAmingw0rm - 04-23-2010 Great tutorial, I've used your tutorial once and it worked. Thank you. |