Team Anonymous
Would you like to react to this message? Create an account in a few clicks or log in to continue.


We are Anonymous, We are legion, We don't forgive, We don't forget, United as one, Divided by zero, Expect us.
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Control panel

Your profile

Information

Preference

Signature

Avatar

Social

Friends and Foes

Memberlist

Groups

Private messages

Inbox

PM sent

 Other

Topic is being watched

Top posting users this week
No user
Top posters
GeneralChristian
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
lashnelan
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
claves
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
pennbenis
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
fender24
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
jaguar034
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
A-Heroic
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
joemarie
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
Ako Xzi Mhark
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
HattoriHanzo
My Vb6 Port Scanner I_vote_lcapMy Vb6 Port Scanner I_voting_barMy Vb6 Port Scanner I_vote_rcap 
Top posting users this month
No user
Latest topics
» Clash of Clans Get Free Gems using Gift Card
My Vb6 Port Scanner Emptyby fender24 Tue Oct 13, 2015 7:05 pm

» Clash of Clans
My Vb6 Port Scanner Emptyby cindy123 Wed Nov 19, 2014 9:23 am

» Winrar Password Remover
My Vb6 Port Scanner Emptyby cindy123 Wed Nov 19, 2014 9:10 am

» Anti-Deep Freeze
My Vb6 Port Scanner Emptyby cindy123 Wed Nov 19, 2014 8:04 am

» Ninja Saga ATM Exp + Gold February 2013
My Vb6 Port Scanner Emptyby airlose2012 Thu Nov 06, 2014 4:45 pm

» Anonymous Daily Attendance !
My Vb6 Port Scanner Emptyby fender24 Thu Sep 25, 2014 7:53 pm

» Ardamax Keylogger Remover
My Vb6 Port Scanner Emptyby fender24 Wed Sep 10, 2014 7:50 am

» Free all Premium Accounts 06.09.2014. Uploaded,Depositfiles,Keep2shar,Terafile,Bitshare eand more
My Vb6 Port Scanner Emptyby claves Sat Sep 06, 2014 2:19 am

» Internet Download Manager 6.15 Full Serial Number
My Vb6 Port Scanner Emptyby fender24 Fri Aug 22, 2014 7:56 am

» Free all Premium Accounts16.08.2014. Uploaded,Rapidgator,Depositfiles,Keep2share,Novafile,Share-Online,JDownloader2 and more
My Vb6 Port Scanner Emptyby claves Fri Aug 15, 2014 5:34 pm


Share
 

 My Vb6 Port Scanner

View previous topic View next topic Go down 
AuthorMessage
skyle17
skyle17
Global moderator
Global moderator

Posts : 16
Anonymous Points : 37
Reputation : 1
Join date : 2013-01-23
Location : Anonymous UnderGround

My Vb6 Port Scanner Empty
PostSubject: My Vb6 Port Scanner   My Vb6 Port Scanner EmptyTue Jan 29, 2013 10:34 am

Here my Design and Code
Spoiler:

Spoiler:


3 command=cmdScan,cmdStop,cmdClear
3 text=txtFrom,txtTo,txtIp
1 winsock.wCock
1 timer=tScan
1 progBar=prgScan

Code:
Private Sub cmdStop_Click()
tScan.Enabled = False
End Sub

Private Sub cmdClear_Click()
lstPorts.Clear
End Sub

Private Sub wSock_Connect()
lstPorts.AddItem wSock.RemotePort
End Sub

Private Sub txtFrom_KeyPress(KeyAscii As Integer)
If InStr("1234567890" & Chr$(8), Chr$(KeyAscii)) = 0 Then
    KeyAscii = 0
End If
End Sub

Private Sub txtIp_KeyPress(KeyAscii As Integer)
If InStr("1234567890." & Chr$(8), Chr$(KeyAscii)) = 0 Then
    KeyAscii = 0
End If
End Sub

Private Sub txtTo_KeyPress(KeyAscii As Integer)
If InStr("1234567890" & Chr$(8), Chr$(KeyAscii)) = 0 Then
    KeyAscii = 0
End If
End Sub


Private Sub cmdScan_Click()
On Error Resume Next
iPortcount = CInt(txtTo.Text) - CInt(txtFrom.Text)
iScancount = 0
prgScan.Max = iPortcount

If txtIp.Text <> "" Then
    If txtFrom.Text <> "" And txtTo.Text <> "" Then
        If CInt(txtFrom.Text) < CInt(txtTo.Text) Then
            tScan.Enabled = True
        Else
            MsgBox "Start port must be higher than the last port", vbCritical, "Error"
        End If
    Else
        MsgBox "Please specify a portrange to scan", vbCritical, "Error"
    End If
Else
    MsgBox "Please insert an IP to scan", vbCritical, "Error"
End If
End Sub


Private Sub tScan_Timer()
On Error Resume Next
Dim iPercent As Integer

wSock.Close

If (iScancount >= iPortcount) Then
    MsgBox "All ports scanned!", vbInformation, "Success"
    tScan.Enabled = False
Exit Sub
End If

txtFrom.Text = txtFrom.Text + 1
wSock.RemoteHost = txtIp.Text
wSock.RemotePort = txtFrom.Text
wSock.Connect
iScancount = iScancount + 1
prgScan.Value = iScancount
iPercent = (iScancount / iPortcount) * 100
lblPercent = iPercent & "%"
End Sub
Back to top Go down
http://www.skyle17.blogspot.com
 

My Vb6 Port Scanner

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» My Ddos Tools---Download Program--Virus Scanner Provider

Permissions in this forum:You cannot reply to topics in this forum
Team Anonymous :: Programming :: Visual Basic / VB.net-