| | |
Ubuntu: opening ports for connection (port scanner)
![]() |
•
•
Join Date: Mar 2008
Posts: 42
Reputation:
Solved Threads: 0
Hi there!
As a College assignment I must write a network scanner that will create a report containing all open ports and some network statistics etc.
The code is almost done.. however, as I need to test it to see if its ok, I ve been scanning my own machine to check and etc... most of the times I run the scanner all ports are closed. Sometimes there are some ports open, sometimes other different ports are - I dont understand why and how it happens.
I am using connect(sockTarget,(struct sockaddr *)&target, sizeof(target)) to test each port, where target is defined by target.sin_port = htons(port_number);
Also, running sudo iptables -L I get:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Please help! :o)
As a College assignment I must write a network scanner that will create a report containing all open ports and some network statistics etc.
The code is almost done.. however, as I need to test it to see if its ok, I ve been scanning my own machine to check and etc... most of the times I run the scanner all ports are closed. Sometimes there are some ports open, sometimes other different ports are - I dont understand why and how it happens.
I am using connect(sockTarget,(struct sockaddr *)&target, sizeof(target)) to test each port, where target is defined by target.sin_port = htons(port_number);
Also, running sudo iptables -L I get:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Please help! :o)
![]() |
Similar Threads
- Simple Port Scanner - What Do You Think? (C++)
- help...doubt regarding my UG project (Network Security)
- Port Scanner in C++ (C++)
- Regarding Online Port Scanner (IT Professionals' Lounge)
- Port Scanner Tutorials (Visual Basic 4 / 5 / 6)
- Port Scanner Reporting Zero Ports Opened. (Networking Hardware Configuration)
- Port scanner (C#)
Other Threads in the *nix Software Forum
- Previous Thread: minimum space to install
- Next Thread: Configuring SAMBA for WAN access
| Thread Tools | Search this Thread |





