Geek Memos
nmap

TCP Connect Scan using Python

########################################################################### # # Need Python version 2.x, scapy, and python module sys installed on system # Usage: python tcpConnect.py [hostname] [port] # For example: python tcpConnect.py google.com 80 # https://github.com/qasimchadhar/portScan/blob/master/tcpConnect.py # ########################################################################### from socket import * import logging logging.getLogger("scapy.runtime").setLevel(logging.CRITICAL) #S
1 min read
bash

SNMPWALK against multiple IP address

For a recent test, I needed to perform multiple snmpwalk scans against a set of IP addresses. Instead of running each scan separately, I was able to write a bash script. Enjoy: for ip in $(cat snmpWindowsIPs.txt); do echo "----------------------------------------------------"; echo " [+] Testing " $ip; echo "----------------------------------------------------"; echo " " echo "----------------------------------------------------"; echo
1 min read