aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
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 ..