This is one way to determine the ports needed to open in your iptables rules to get NFS to work properly. First we need to determine the ports NFS uses rpcinfo -p | awk -F ” ” ‘{print $3 “, ” $4 “, ” $5}’ | sort | uniq Notice! Since portmap assigns ports on [...]
Posts Tagged: nmap
nmap scanning and printers
When you plan to nmap scan a network which contains printers, avoid scanning the JetDirect port, port 9100. Newer versions of nmap skips TCP port 9100 because some printers simply print anything sent to that port, leading to dozens of pages of HTTP get requests, binary SSL session requests, etc. This behavior can be changed [...]
Detecting changes to your network services/damons
This is a tutorial to detect changes in port from hosts on your network. The basic approach is to ping every available address upon your subnet and see which ones are up by detecting replies. If you install the package libperl-net-ping you can use the following script to see which hosts upon your LAN are [...]
Generate a list of target hosts to nmap scan
Legg følgende inn i fila iplist.sh #!/bin/bash # filename: iplist.sh # usage: ./iplist.sh 192.168.1.0/24 > iplist.txt nmap -sL $1 –randomize_hosts | grep ‘^Host’ | cut -d ‘(‘ -f 2 | cut -d ‘)’ -f 1
nmap/nbtscan scan for å finne pc med åpen port
Dette scriptet scanner IP-er fra ei fil og finner ut hvem som har en spesiell port åpen. Lim inn følgende script kode i fila portLookup.sh #!/bin/bash NETWORKTARGET=$1 PORT=$2 FN=”port” # Scan Network Input File for active hosts saving IPS to $FNips.txt nmap -sS -p $PORT -n -iL $NETWORKTARGET -oG – | grep open | awk [...]
Recent Comments