Sponsored Content
Top Forums UNIX for Advanced & Expert Users TCP port scanner for remote or for local Post 54394 by zazzybob on Thursday 12th of August 2004 08:12:24 AM
Old 08-12-2004
You need a tool such as tcpdump ( http://www.tcpdump.org )
or ethereal ( http://www.ethereal.com )

Ethereal relies on the libpcap libraries provided on the tcpdump site.

You'll need to run the commands as an administrative user (i.e. root).

You can also try ngrep ( http://ngrep.sourceforge.net ).

Run port scans with nmap. Only use nmap on/against machines you are authorised to do so! ( http://www.insecure.org/nmap/nmap_download.html )

Cheers
ZB
 

10 More Discussions You Might Find Interesting

1. IP Networking

tcp problem with port

I am trying to connect via DBACCESS and Informix server to a server on a different computer. When I execute the connect command from dbaccess I get the following message, Exec format error cannot bind a name to the port. As far as I know the port is not being used by another client. How... (1 Reply)
Discussion started by: lopez
1 Replies

2. UNIX for Dummies Questions & Answers

Redirecting output to TCP port

Hi All, I suspect this is simple but I cannot find any info on it. I have a logfile on a solaris box (EMS) that I want to tail -f but I want the output of this to be redirected to a TCP port. I have a second solaris box (PEM) running patrol enterprise manager that I am using as an alarm... (1 Reply)
Discussion started by: mscomms
1 Replies

3. UNIX for Dummies Questions & Answers

restrict tcp-port access

Hi Is there any way to restrict the TCP-IP port usage. I want to restrict TCP-IP port 1500/1550 to the oracle osuser. Tanks in advance. Remi (2 Replies)
Discussion started by: remivisser
2 Replies

4. UNIX for Dummies Questions & Answers

close tcp port

Hello, I have a service running (ODBC) and every now and then it will hang and I will have to stop and restart the service. The problem is when I stop the service, it indeed stops the service, but netstat reports a tcp port still open with the fin_wait_2 status. Then I must close the client... (1 Reply)
Discussion started by: raidzero
1 Replies

5. Programming

Socket Programming - Port Scanner. I Get Connection Timed Out, Why?

When i put the target IP as 127.0.1.1, the program is working fine, can catch blocked & open ports. But when i try to scan remotely, i get connection timed out! Can you tell me why? :( Here is my code - Look at between where i put astriks - at the bottom: #include<iostream>... (3 Replies)
Discussion started by: f.ben.isaac
3 Replies

6. Shell Programming and Scripting

TCP port assignment

I have multiple processes running the same program on my linux machine. For each process I want to be able to use a unique (available) TCP port. I have thought of using netstat to check which ports are available for use however, the time-window between checking and selecting might expose some race... (1 Reply)
Discussion started by: timmylita
1 Replies

7. Programming

Getting TCP Port status through C API

Does anyone know if there is a C API call to get the status of a TCP port? As opposed to running netstat and parsing the results. At the moment I have to attempt to bind() and pick up on the address in use error which isn't very elegant Thanks ---------- Post updated at 10:42 AM ----------... (0 Replies)
Discussion started by: janra
0 Replies

8. IP Networking

TCP port numbers reused

Hello all, I am loosing the diameter connection between two servers and when the connection is trying to comes up again i see the following message in the tracer. and after 1 second the connection resets. As far i know the connection stay in state TIME_WAIT for a while(60 seconds in my... (1 Reply)
Discussion started by: @dagio
1 Replies

9. Shell Programming and Scripting

Block local and remote port with iptables - Script BASH

Hello I'm beginner in the linux scripting and i would like to get help. I want to create a script that can block one or more Port even see all the TCP port. The ports must be blocked even when starting my machine. Of course requires a second script which will allow the ports that you want to... (0 Replies)
Discussion started by: houstaf
0 Replies

10. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
TCPBUG(1)						      General Commands Manual							 TCPBUG(1)

NAME
tcpbug - TCP/IP connection bugging device SYNOPSIS
tcpbug [-cx] [-btT] local-port remote-host remote-port DESCRIPTION
tcpbug forwards a TCP/IP connection to port local-port on the local machine to the port remote-port on remote-host while spying on the con- nection and writing all data passing through to standard output. All data coming from the client is printed with a greater than sign (>) first on each line, and all data coming from the server is printed with a less than sign (<) first on each line. Any byte offsets and time-stamps are printed before the greater than or less than sign, and are separated from each other by a colon (:). OPTIONS
-b Print the offset of the first byte in the stream for each line. -c Display bytes as individual characters. Printable characters are displayed directly, some control characters appear as C-language escapes ( , , et.c), while others appear as 3-digit octal numbers. This should be similar to the -c switch of od(1). -t Print the time at which the data was received for each line. The time is the number of seconds and microseconds, separated by a decimal point (.), since 00:00 UTC, January 1, 1970, as reported by gettimeofday(). -T Print the time at which the data was received for each line. The time is the number of seconds and microseconds, separated by a decimal point (.), since the connections were established. -x Display each byte as a two digit hexadecimal number. SEE ALSO
tcpconnect(1), tcplisten(1), od(1). BUGS
The names of the options are not yet finalized, and may change at a future release. 1997 April 13 TCPBUG(1)
All times are GMT -4. The time now is 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy