Tag: ports

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 …

Metasploit, NMAP, Port Scanning

Discover open mysql ports

MySQL is running by default on port 3306. To discover MySQL you can do it either with nmap or with Metasploit’s auxiliary modules.   The NMAP way Nmap is a free and open source network discovery and security auditing utility. It can discover open ports, running services, operating system version and much more. To discover …

Linux

Inspect network connections with netstat

List network connections, open ports and the programs running behind those ports with netstat. Open a terminal and type: netstat -apenetstat -ape -a, –all, –listening display all sockets (default: connected) -p, –programs display PID/Program name for sockets -e, –extend display other/more information Output: Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name …

Python

Scan for open ports with Python

A simple and fast port scanner written in Python. #!/usr/bin/env python from socket import *   if __name__ == ‘__main__’: target = "localhost" target_ip = gethostbyname(target) print "Scanning", target, "-", target_ip   for i in range(1, 1024): sock = socket(AF_INET, SOCK_STREAM)   result = sock.connect_ex((target_ip, i))   if(result == 0) : print ‘Port %d: OPEN’ …

Apache, XAMPP

Change Apache Ports in XAMPP

Change port for Apache 1. Open x:xamppapacheconfhttpd.conf file for edit. 2. Find Listen 80 and change it to Listen 8081. 3. Find ServerName localhost:80 and change it to ServerName localhost:8081. 4. Save the file. 5. Restart Apache.   Change port for SSL 1. Open x:xamppapacheconfextrahttpd-ssl.conf file for edit. 2. Find Listen 443 and change it …

Linux, NMAP, Tor

Anonymous port scanning through the tor network

To accomplish this task you have to install privoxy and proxychains on your system. For ubuntu users just issue the following command: sudo apt-get install privoxy proxychains proxychains is configured by default to work with the Tor network. Now that we have privoxy and proxychains installed we can issue the following command in the terminal: …

NMAP

Identifying the version number of running services

If you wish to identify the software Version (-sV flag) of services running on machine’s open ports, just provide the -sV flag to nmap. Type the command: nmap -sV x.x.x.x where x.x.x.x is the ip address that you wish to scan.   You will get an answer similar to this: Starting Nmap 5.21 ( http://nmap.org …