943,631 Members | Top Members by Rank

Ad:
May 21st, 2009
0

Ubuntu: opening ports for connection (port scanner)

Expand Post »
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)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
marcosjp is offline Offline
42 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: minimum space to install
Next Thread in Linux Applications and Software Forum Timeline: Configuring SAMBA for WAN access





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC