This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Class C device discovery in under 5 seconds. | |
| # Notice that it will display information on any MAC address that nmap knows about. It's helpful to keep this updated. | |
| # You can also add any MAC address OIDs that are newer or unknown to the file /usr/share/nmap/nmap-mac-prefixes. | |
| # | |
| # How to call this script: | |
| # nmap -n -sP --excludefile $PROJECT_ROOT/output/known.skip 10.10.100-103.1-255 | awk -f $PROJECT_ROOT/mac-sort.awk | |
| # | |
| BEGIN { PROJECT_PATH="/path/to/scripts"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in `cat ips.txt` ; do dig -x $i +short >> dns.txt ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed "s/\.$//" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for a in `awk -F: '{print $1}' ip1.txt` | |
| do | |
| echo "$((i++)) $1:" >> whoisdb.txt | |
| whois $a | awk '/NetName/ || /OrgName/{print}' >> whoisdb.txt | |
| echo -e "\n" >> whoisdb.txt | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl s_client -connect vpn.yourcompany.com:443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env x='() { :;}; echo vulnerable' bash -c "echo this is a test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ip=$( echo $1 | cut -d"/" -f1 ) | |
| no=$( echo $1 | cut -d"/" -f2 ) | |
| k=`expr 32 - $no` | |
| nu=$(echo "2 ^ $k" | bc) | |
| num=1 | |
| new_ip=$( echo $ip | cut -d"." -f1-3 ) | |
| while [[ $num -ne $nu ]] | |
| do | |
| echo $new_ip".$num" | |
| (( num = num + 1 )) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hdiutil convert -format UDRW -o ~/target.img ~/file.iso |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lsof -Pnl +M -i4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| do shell script "open -a /Applications/Google\ Chrome\ Canary.app --args --ssl-version-min=tls1" |