primus Posted October 12, 2006 Posted October 12, 2006 (edited) i'm makin a script for scanning ports, setting up one machine to listen, one to scan, unless someone has already done this???1 so w/ these tcp/udp commands, can i cause for example: make it listen on all ports? TCPListen($g_IP, 1-65353, 100) or can you only listen on one port at a time? tyty Edited October 12, 2006 by primus
AzKay Posted October 12, 2006 Posted October 12, 2006 Your making a portscanner? You shouldnt need a maching to listen to make a port scanner, For $i = 1 to 65353 TCPConnect("ip", $i) If @Error Then ConsoleWrite("Closed") Else ConsoleWrite("Open") EndIf Next Something like that? # MY LOVE FOR YOU... IS LIKE A TRUCK- #
primus Posted October 12, 2006 Author Posted October 12, 2006 yeah i'm testing security on ports, i'm using a port scanner called nmap, it scans a port then reports if its filtered, closed, or open command is nmap -p1-65535 "ip address" so the scanning part i don't necessarily have to script, it will sweep through all ports at once already but the only way i can test open is if a program is actively listening to the port, i found a program that listens but i can only test one port at a time... i'm trying to find a way to set a program or programs to listen on all ports so i can get them all in one test i found that big post w/ the tcp tutorial i'm tryin to make sense of that maybe
AzKay Posted October 12, 2006 Posted October 12, 2006 For $i = 1 to 65363 TCPListen($g_IP, $i, 100) Next # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now