From 796646facf5dfcac7c91e09d419d4d822d4f0112 Mon Sep 17 00:00:00 2001 From: jam1garner Date: Fri, 18 Jan 2019 15:09:44 -0500 Subject: [PATCH] Add Makefile for building --- kexploit/Makefile | 11 ++ kexploit/exploit.mscsb | Bin 0 -> 2304 bytes kexploit/payload.s | 240 ++++++++++++++++++++--------------------- kexploit/script_0.s | 2 +- 4 files changed, 132 insertions(+), 121 deletions(-) create mode 100644 kexploit/Makefile create mode 100644 kexploit/exploit.mscsb diff --git a/kexploit/Makefile b/kexploit/Makefile new file mode 100644 index 0000000..cc257e9 --- /dev/null +++ b/kexploit/Makefile @@ -0,0 +1,11 @@ +all: exploit.mscsb + +clean: + rm exploit.mscsb payload.s + +exploit.mscsb: payload.s Scripts script_0.s + python3 ../pymsc/asm.py + +payload.s: payload.bin + python3 generate_payload.py + diff --git a/kexploit/exploit.mscsb b/kexploit/exploit.mscsb new file mode 100644 index 0000000000000000000000000000000000000000..2ed4688e9410ebaa884a16d13564d69898b28be5 GIT binary patch literal 2304 zcmeI!S8o(o0EXdjcU{)&-qr;h#(=R6#s-_-OfenPJBBg6cQ9=!34Nn4B>yAIMHC4M zAujV%a?3A3&U@BD$rZNv)nGMRS*yuvwpy%KYl_uo zwOdoIX;x%)SktW;)=aC@nq_ra-Byn^+nQtbT63*FtKXVu&9?@uL2H4v&{||Iww72+ zt!377YlXGaT4fDctF1NGT5Fv(Y^}F8SR1WP)@Eyqwbj~Yjab{Q9o9~3m$lp4W9_x} zS^KR6)b=o>(owd$c=dBCYMeCAv*}7s~wXRv$ ztsB-&>y~xf8n^CPcddKYed~dhvmRQHtjE?9>-V;VH25uTKXJlN{`rOzPvmPmU*?!d zykPbx2J}ZAe{6eMmz{V@NinDWo~1C8RZ9ALO+k0aFpZozmd5(4s&rFg^?l3MEy}b7Ud=zb;Z$Wl*vWih3`!^7xzTDOf(wD Zy>V``abFzwNB_OTgm;@E-f=!}{{RrMICB61 literal 0 HcmV?d00001 diff --git a/kexploit/payload.s b/kexploit/payload.s index 848a549..ff6977f 100644 --- a/kexploit/payload.s +++ b/kexploit/payload.s @@ -1,120 +1,120 @@ -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x5f -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x5f -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0xa -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x20 -byte 0x20 -byte 0x20 -byte 0xa -byte 0x20 -byte 0x20 -byte 0x5f -byte 0x5f -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x5f -byte 0x5f -byte 0x20 -byte 0x5f -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x5f -byte 0x5f -byte 0x20 -byte 0x20 -byte 0xa -byte 0x20 -byte 0x2f -byte 0x20 -byte 0x5f -byte 0x60 -byte 0x20 -byte 0x7c -byte 0x2f -byte 0x20 -byte 0x5f -byte 0x60 -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x27 -byte 0x5f -byte 0x20 -byte 0x5c -byte 0x20 -byte 0xa -byte 0x7c -byte 0x20 -byte 0x28 -byte 0x5f -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x28 -byte 0x5f -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x20 -byte 0x7c -byte 0x5f -byte 0x29 -byte 0x20 -byte 0x7c -byte 0xa -byte 0x20 -byte 0x5c -byte 0x5f -byte 0x5f -byte 0x2c -byte 0x5f -byte 0x7c -byte 0x5c -byte 0x5f -byte 0x5f -byte 0x2c -byte 0x5f -byte 0x7c -byte 0x5f -byte 0x2e -byte 0x5f -byte 0x5f -byte 0x2f -byte 0x20 -byte 0x0 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x5f +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x5f +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0xa +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x20 +byte 0x20 +byte 0x20 +byte 0xa +byte 0x20 +byte 0x20 +byte 0x5f +byte 0x5f +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x5f +byte 0x5f +byte 0x20 +byte 0x5f +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x5f +byte 0x5f +byte 0x20 +byte 0x20 +byte 0xa +byte 0x20 +byte 0x2f +byte 0x20 +byte 0x5f +byte 0x60 +byte 0x20 +byte 0x7c +byte 0x2f +byte 0x20 +byte 0x5f +byte 0x60 +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x27 +byte 0x5f +byte 0x20 +byte 0x5c +byte 0x20 +byte 0xa +byte 0x7c +byte 0x20 +byte 0x28 +byte 0x5f +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x28 +byte 0x5f +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x20 +byte 0x7c +byte 0x5f +byte 0x29 +byte 0x20 +byte 0x7c +byte 0xa +byte 0x20 +byte 0x5c +byte 0x5f +byte 0x5f +byte 0x2c +byte 0x5f +byte 0x7c +byte 0x5c +byte 0x5f +byte 0x5f +byte 0x2c +byte 0x5f +byte 0x7c +byte 0x5f +byte 0x2e +byte 0x5f +byte 0x5f +byte 0x2f +byte 0x20 +byte 0x0 diff --git a/kexploit/script_0.s b/kexploit/script_0.s index e63e5a7..b55ad39 100644 --- a/kexploit/script_0.s +++ b/kexploit/script_0.s @@ -793,4 +793,4 @@ pushInt. 0x01031618 #return address (OSFatal) exit #Dunno why but I figured I might as well put it here, should never hit this though -end \ No newline at end of file +end