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
uint8_t* readAllStdin(size_t& length) { | |
std::vector<uint8_t> buffer; | |
char temp; | |
// Read all input data from stdin | |
while (std::cin.get(temp)) { | |
buffer.push_back(static_cast<uint8_t>(temp)); | |
} |
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
-vf zscale=t=linear:npl=100,format=gbrpf32le,tonemap=tonemap=gamma:param=1.2:desat=0:peak=15,zscale=p=709:t=709:m=709:r=full:d=error_diffusion,noise=alls=3:allf=t+u,eq=saturation=0.9:brightness=0.15:contrast=1.15:gamma=0.85,huesaturation=colors='y':saturation=-0.5:intensity=0.25,"curves=all='0.05/0 0.35/0.5 1/1'","curves=all='0/0 0.75/0.76 0.9/0.94 1/1'",deband=1thr=0.015:2thr=0.015:3thr=0.015:4thr=0.015:range=16:blur=true:coupling=true,noise=alls=2:allf=p+t,colorspace=iall=bt709:all=bt709:range=tv:format=yuv420p:dither=fsb |
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
#export https_proxy=http://127.0.0.1:8081 | |
USER='' | |
PASS='' | |
KEY="bd516a32ff7db81c4a991acfc5656da3" #not secret | |
TALENT="967951" | |
VERSION="48" | |
rm /tmp/fdsa |
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
COOKIE='use alert(document.cookie) in the JS Console to get your current Etsy cookie. Put the entire cookie string value here.' | |
CONTEXT=`curl 'https://www.etsy.com/your/shops/me/dashboard?ref=hdr-mcpa' \ | |
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0' \ | |
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8' \ | |
-H 'Accept-Language: en-US,en;q=0.5' \ | |
-H 'Referer: https://www.etsy.com/developers/your-apps' \ | |
-H 'Connection: keep-alive' \ | |
-b "$COOKIE" \ | |
-H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-User: ?1' -H 'Priority: u=0, i' -H 'TE: trailers' | grep Etsy.Context` |
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
Turn on debugging. | |
Still install sshd. File transfer over adb push/pull is too slow. | |
#Disable Sound | |
$ adb shell input keyevent 164 | |
$ adb shell svc power stayon true | |
$ adb tcpip 4321 #Enable adb over wifi. |
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
repeat | |
tell application "System Events" to key code (random number from 0 to 44) | |
delay 8 | |
end repeat | |
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
cred_collection = ::Metasploit::Framework::CredentialCollection.new( | |
user_file: datastore['USER_FILE'], | |
username: datastore['USERNAME'], | |
blank_passwords: true | |
) |
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
apt-get install xvfb && Xvfb :1 -screen 0 640x480x8 && export DISPLAY=:1.0 ; xcalc |
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
bperry@ubuntu:~/tmp$ DYNINSTAPI_RT_LIB=./dyninst-9.2.0/build/dyninstAPI_RT/libdyninstAPI_RT.so LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./afl-dyninst -i fisimple -o fi_inst -l libsc_fi.so -d | |
Skipping library: libAflDyninst.so | |
Skipping library: crtstuff.c | |
Skipping library: libAflDyninst.cpp | |
Instrumenting module: fisimple | |
Instrumenting module: crtstuff.c | |
Skipping library: DEFAULT_MODULE | |
Instrumenting module: libsc_fi.so | |
Segmentation fault | |
bperry@ubuntu:~/tmp$ |
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( j = 0; j < n->classname_len && j<9; j++) | |
kv[j] = b[j*2]; | |
kv[8] = 0; | |
sscanf( kv, "%x", (unsigned int*)( &key[i*4] ) ); |
NewerOlder