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
#!/usr/bin/env bash | |
####DOMAIN NAME FUNCTIONS################################### | |
extract_domain_names () | |
{ | |
lynx -dump -listonly -nonumbers "$1" | | |
awk -F '/+' 'NF > 1 {print $2}' | | |
sort -u | |
} |
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
#!/usr/bin/env bash | |
dir="/tmp/$0" | |
mkdir -p "$dir" | |
nmap -n -sL -iR "$1" | | |
sed '1,2d;$d' | | |
awk '{print$5}' | | |
sort -t. -k1,1n -k2,2n -k3,3n -k4,4n | | |
tee "$dir/$(date +%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
#!/usr/bin/env bash | |
lastimport() | |
{ | |
find ~/Pictures/Photos\ Library.photoslibrary/Masters -type f -exec | |
stat -f "%m%t%Sm %N" {} + | | |
sort -rn | | |
head -1 | | |
cut -d\ -f5- | |
} |
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
perl -lpe 's/\\x20/ /g;s/\\([."+*()])/$1/g;s/(?:\\r)*\\n/\n/g' |
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
__expand_tilde_by_ref () | |
{ | |
if [[ ${!1} == \~* ]]; then | |
if [[ ${!1} == */* ]]; then | |
eval $1="${!1/%\/*}"/'${!1#*/}'; | |
else | |
eval $1="${!1}"; | |
fi; | |
fi | |
} |
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
__expand_tilde_by_ref () | |
{ | |
if [[ ${!1} == \~* ]]; then | |
if [[ ${!1} == */* ]]; then | |
eval $1="${!1/%\/*}"/'${!1#*/}'; | |
else | |
eval $1="${!1}"; | |
fi; | |
fi | |
} |
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
__expand_tilde_by_ref () | |
{ | |
if [[ ${!1} == \~* ]]; then | |
if [[ ${!1} == */* ]]; then | |
eval $1="${!1/%\/*}"/'${!1#*/}'; | |
else | |
eval $1="${!1}"; | |
fi; | |
fi | |
} |
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
__expand_tilde_by_ref () | |
{ | |
if [[ ${!1} == \~* ]]; then | |
if [[ ${!1} == */* ]]; then | |
eval $1="${!1/%\/*}"/'${!1#*/}'; | |
else | |
eval $1="${!1}"; | |
fi; | |
fi | |
} |
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
__expand_tilde_by_ref () | |
{ | |
if [[ ${!1} == \~* ]]; then | |
if [[ ${!1} == */* ]]; then | |
eval $1="${!1/%\/*}"/'${!1#*/}'; | |
else | |
eval $1="${!1}"; | |
fi; | |
fi | |
} |
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
#!/usr/bin/env python2.7 | |
from scapy.all import * | |
def callback(packet): | |
print packet.show() | |
sniff(prn=callback) |