myGully.com

myGully.com (https://mygully.com/index.php)
-   Sicherheit & Anonymität (https://mygully.com/forumdisplay.php?f=65)
-   -   TCP UDP Ports (https://mygully.com/showthread.php?t=1888126)

manta656 23.07.09 19:47

TCP UDP Ports
 
Hallo , ich wollte ein Tool schreiben , mit dem man überprüfen kann , welche TCP und UDP Ports offen sind. Aber jetzt will ich , als erstes mal wissen , was die Unterschiede sind. Und wie teste ich zum beispiel , ob ein port offen ist... Ich hatte bis jetzt den Code :

Code:

Imports System.Net.Sockets
Imports System.Net
Imports System.Threading
Imports System.Text

Public Class Tester
    Public Shared Sub Main
        Dim intPortStart As Integer = 1
        Dim intPortEnd As Integer = 10
        Dim lngLoop As Long

        For lngLoop = intPortStart To intPortEnd
            Dim myTcpClient As New TcpClient()
            Try
                myTcpClient.Connect("127.0.0.1", lngLoop)
                Console.WriteLine("Port " + lngLoop.ToString() + "started")
                myTcpClient.Close()
            Catch ex As SocketException
                Console.WriteLine("Port " + lngLoop.ToString() + " Closed" + ex.Message)
            End Try
        Next
    End Sub

End Class


also kann ich mit dem Programm , alle Ports wie UDP und TCP testen , oder muss man das irgendwie speziell machen ?


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:31 Uhr.

Powered by vBulletin® (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.