aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorn0p <0x90@n0p.cc>2017-10-17 20:31:59 +0200
committern0p <0x90@n0p.cc>2017-10-17 20:31:59 +0200
commitec17df90f18c0e98c46986b8b0dfb6854cfc8a42 (patch)
tree9732747f35d46bc41bf9c65860d04a194e8695b6 /build.sh
downloadLostKey-master.tar.gz
LostKey-master.zip
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..39a1e0c
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,9 @@
+rm LostKey
+cd openssl-1.1.0f
+CC=clang ./Configure no-shared -m32 linux-generic32 -O0
+make -j 16 all
+cd ..
+clang -s -static -m32 lost_key.c rop.c -L openssl-1.1.0f -l:libcrypto.a -oLostKey
+cd openssl-1.1.0f
+make clean
+cd ..