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
PS1="\[\033[01;34m\]\w\[\033[00m\]\n\$ " |
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
#!/usr/bin/env python | |
import sys, urllib as ul | |
print ul.unquote_plus(open(sys.argv[1]).read()), |
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
Sub changeImageAspect() | |
Dim oshp As Shape | |
Dim osld As Slide | |
' Stupid workaround for no getter for scaleWidth/scaleHeight | |
Dim sHeightOld As Variant | |
Dim sWidthOld As Variant | |
Dim tScaleWidth As Variant | |
Dim tScaleHeight As Variant |
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 burn foo.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
#!/usr/bin/env python | |
# rduck-pinbrute: Generate Duckyscript file that brute forces all 4-digit | |
# PIN values for use in attacking Android devices. Prioritizes common | |
# PIN values before resorting to exhaustive 0000-9999 search. | |
# Joshua Wright, [email protected]. Public Domain. | |
# | |
# Inspired by Darren Kitchen script: | |
# https://forums.hak5.org/index.php?/topic/28165-payload-android-brute-force-4-digit-pin/ | |
# Data Genetics high probability list |
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
#!/usr/bin/env python | |
import zlib, sys | |
if len(sys.argv) != 2: | |
print "Usage: %s <zlib-compressed-file>"%sys.argv[0] | |
print "Produces decompressed file with \".out\" filename suffix." | |
sys.exit(0) | |
indata=open(sys.argv[1], "rb").read() | |
outdata=zlib.decompress(indata) |
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 | |
if [ $# -lt 1 ] ; then | |
echo "WARNING: Will overwrite source image!" | |
echo "$0 [images]" | |
exit | |
fi | |
for IMAGE in "$@"; do | |
LENS=`exiftool -T -lens $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
# Get iOS 10 Beta 1 File System (iPhone 6s device) | |
wget -q http://apple.co/28R9rhS -O ios10beta1-iphone6s.zip | |
mkdir ios10beta1 | |
unzip -q ios10beta1-iphone6s.zip -d ios10beta1 | |
cd ios10beta1 | |
# wget this file for OSX systems | |
wget -q http://newosxbook.com/files/OTApack.tar | |
# or wget this file for Linux systems | |
wget -q http://www.willhackforsushi.com/code/OTApack.tar | |
tar xf OTApack.tar |
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
# Get decrypted kernelcache | |
# URL for iOS 10 Beta 1 for iPhone 6s taken from http://pastebin.com/FRMfanmT | |
wget -q http://apple.co/28R9rhS -O ios10beta1-iphone6s.zip | |
mkdir ios10beta1 | |
unzip -q ios10beta1-iphone6s.zip -d ios10beta1 | |
cd ios10beta1 | |
wget -q http://nah6.com/%7Eitsme/cvs-xdadevtools/iphone/tools/lzssdec.cpp | |
g++ -o lzssdec lzssdec.cpp | |
./lzssdec -o 439 < AssetData/boot/kernelcache.release.n71 >kernelcache.decrypted # 439 is offset byte count to 0xFFCFFAEDFE header | |
xxd kernelcache.decrypted | head -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
import Cocoa; import Foundation | |
func randomBool() -> Bool { | |
return arc4random_uniform(2) == 0 ? true: false | |
} | |
// A list of all emojis ( | |
let emojis = ["π","π","ππΎ","πΊ","π","π","πΈ","π°","π","π","π","π","π","π","π","π»","π©"] | |
// A "collected list" of most used emojis |