Welcome to Coding : Sécurité Programmation Réseaux

Search   in  

 Create an Account Home | Submit News Your Account Content | Topics | Top 10  


Accueil
· Home
· Listing des Articles
· Top 10
· Repository des Exploits

Les sujets / parties
· C / C ++
· Visual Basic
· Asm
· Reseaux
· Java
· Securite
· Divers

Utile
· Listing des Articles

· Telecharger
· Le Forum
· Liens
· Proposer un article

Top20 des Downloads
· 1: Etude des reseaux generalites et protocoles
· 2: Cheval de troie en VB avec sources
· 3: Netcat 1.1
· 4: Keylogger
· 5: Etudes des reseaux hauts debits architectures et protocoles
· 6: Ecoute de port
· 7: Etude du Smart Spoofing
· 8: Win Packet Capture Utils
· 9: Tutorial on Traffic Interception on Switched Lan using ARP spoofing
· 10: Cours de C

User Info
Welcome, Anonymous
Nickname
Password
(Register)
Membership:
Latest: trapcodien
New Today: 1
New Yesterday: 0
Overall: 2207

People Online:
Visitors: 40
Members: 1
Total: 41

Online Now:
01: trapcodien

  
Un ecouteur de port pour VB :)
Posted on Saturday, March 30 @ 15:48:01 CET
Topic: Visual Basic
Visual Basic

	Voila un petit ecouteur de port qui permet de selectionner un port pour ecoute , et ensuite d'attendre une connexion, lorsque la connexion est etablit on peut envoyer du texte, et on peut voir les donner envoyer par le remote side .





LE ZIPPPPPP

' Ajouter 2 bouton command1 et command2
' un objet winsock (winsock1)
' 3 label (de label1,label2, label3)
' 5 text box (Text1 -> Text5) ' un timer (Timer1)
Dim c As Boolean
Private Sub Command1_Click()
Winsock1.Close
Winsock1.LocalPort = Text1.Text
Winsock1.Listen
Label3.Caption = "ecoute"
End Sub

Private Sub Command2_Click()
Dim txt
txt = Text2.Text
Winsock1.SendData txt
End Sub


Private Sub Timer1_Timer()
Winsock1.Close: Winsock1.Listen: c = False

End Sub

Private Sub Winsock1_Close()
Label3.Caption = "ecoute"
If c = False Then c = True
End Sub

Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Close
Winsock1.Accept requestID
Winsock1.SendData Chr(13) "OK"
Label3.Caption = "COnnecté"
Text4.Text = Winsock1.RemoteHostIP
Text5.Text = Winsock1.RemoteHost
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim dat As String
Winsock1.GetData dat
Text3.Text = Text3.Text dat
End Sub

' Pour plus d'info voir le zip

 
Liens connexes
· Plus à propos de Visual Basic
· Nouvelles transmises par Romain_Le_Guen


L'article le plus lu à propos de Visual Basic:
Key Logger


Article Rating
Average Score: 3.6
Votes: 5


Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


Options

 Format imprimable Format imprimable


PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.37 Seconds