Tag: tcp

Linux, Monitor, Network

Monitoring Opened TCP/IP network ports/connections in Linux

tcptrack displays the status of TCP connections that it sees on a given network interface. tcptrack monitors their state and displays information such as state, source/destination addresses and bandwidth usage in a sorted, updated list very much like the top command. The filter expression is a standard pcap filter expression (identical to the expressions used …

Monitor, Network

Monitoring Opened TCP/IP network ports / connections

CurrPorts is network monitoring software that displays the list of all currently opened TCP/IP and UDP ports on your local computer. For each port in the list, information about the process that opened the port is also displayed, including the process name, full path of the process, version information of the process (product name, file …

C#

List active tcp connections

We are going to use two classes to retrieve network connections, IPGlobalProperties and TcpConnectionInformation. You will need a ListView control with two columns, one for local endpoint and another one for remote endpoint. private void ListActiveTcpConnections() { IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties(); TcpConnectionInformation[] connections = properties.GetActiveTcpConnections(); foreach (TcpConnectionInformation c in connections) { listView1.Items.Add(new ListViewItem(new String[]{c.LocalEndPoint.ToString(), c.RemoteEndPoint.ToString()})); …

Python

TCP Full Connect Scan with Python

A simple tcp full connect port scanner in Python: import optparse from socket import *   def connect(targetHost, targetPort): try: connsocket = socket(AF_INET, SOCK_STREAM) connsocket.connect((targetHost, targetPort)) connsocket.close() print ‘%d/tcp port openn’%targetPort except: print ‘%d/tcp port closedn’%targetPort   def scanner(targetHost, targetPorts): try: ip = gethostbyname(targetHost) except: print "unable to resolve ‘%s’: Unknown hostn"%targetHost return   try: …

Microsoft Windows

List all TCP and UDP endpoints on your system

TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system, including the local and remote addresses and state of TCP connections. On Windows Server 2008, Vista, and XP, TCPView also reports the name of the process that owns the endpoint. TCPView provides a more informative …

Penetration Testing, Tools

Super fast TCP port scanner

strobe is a network/security tool that locates and describes all listening tcp ports on a remote host or on many hosts in a bandwidth utilisation maximising, and process resource minimising manner. strobe approximates a parallel finite state machine internally. In non- linear multi-host mode it attempts to apportion bandwidth and sockets among the hosts very …