This file contains 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 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 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 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 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 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 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 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 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" |
This file contains 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
echo "Host,StarupProcess" > StartupProcesses.csv | |
Get-ADComputer -filter {OperatingSystem -like "*Windows*"} | foreach { $_.Name} > computers.txt | |
foreach ($x in (get-content computers.txt) ) | |
{ | |
if (Test-Connection -Count 1 -computername $x) { | |
$Object = Get-WmiObject -Class Win32_StartupCommand -computername $x | |
foreach ($y in $Object.Command) { | |
echo "$x,$y" >> StartupProcesses.csv | |
} | |
} else { |
OlderNewer