Hot News On The Net   »   Emma Watson will enter Brown University | Erin Andrews video peep | Tour de france stage 17 results | So you think you can dance results july 23 | Michael Jackson Memorial Booklet Program
Featured Posts
Basic Tutorials
Downloads
DOWNLOADS
Browsers
Recent Articles

A Port Scanner in VB

A port scanner in VB
--------------------
you need:
2 textboxes
1 listbox
3 commandbuttons
1 timer
1 winsock control
--------------------
code:
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
Text2.Text = "0"
End Sub
Private Sub Command3_Click()
List1.Clear
End Sub
Private Sub Timer1_Timer()
On Error Resume Next
Winsock1.Close
Text2.Text = Int(Text2.Text) + 1
Winsock1.RemoteHost = Text1.Text
Winsock1.RemotePort = Text2.Text
Winsock1.Connect
End Sub
Private Sub Winsock1_Connect()
List1.AddItem Winsock1.RemotePort & " is open!"
End Sub
--------------------
explanation:
text1 = IP to scan
text2 = starting port
list1 = list where all open ports are shown
command1 = start
command2 = stop and reset
command3 = clear port list
timer1 = will make the winsock control to try ports

Bookmark and Share
Share and Enjoy:

0 comments for this post

Leave a reply

Write your message here.
Please leave your Email Id so that I can contact you.
Thanks for your Valuable Suggestion,

We will keep You Updated...
Sign up to receive breaking news
as well as receive other site updates!

subscribe via email:


Your information will not be shared. Ever.
Advertise Here
RevolutionWooThemesElegant Themes
Theme ForestGorillaThemesWP WebHost
Upcoming Events
RevolutionWooThemesElegant Themes
Theme ForestGorillaThemesWP WebHost
Site Stats
Find Me
Follow SpicyTricks on Twitter. Only interesting tweets are shared

Subscribe and join my readers to keep up-to-date Issue in Feedburner

Our Friends