From 6cfe507410912d06aa8f7ee9084dc5c4f81fcbc9 Mon Sep 17 00:00:00 2001 From: arno01 Date: Sat, 9 Mar 2013 11:41:17 +0100 Subject: [PATCH] minor updates --- exam1/shell_bind_tcp.nasm | 2 +- exam1/shell_bind_tcp_smaller | Bin 626 -> 696 bytes exam1/shell_bind_tcp_smaller.nasm | 19 +++++++++++++++---- exam1/shell_bind_tcp_smaller.o | Bin 560 -> 624 bytes 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/exam1/shell_bind_tcp.nasm b/exam1/shell_bind_tcp.nasm index 1dae0e2..b078c38 100644 --- a/exam1/shell_bind_tcp.nasm +++ b/exam1/shell_bind_tcp.nasm @@ -135,7 +135,7 @@ port_in_esp: push edx ; ANY HOST (0.0.0.0)} || struct in_addr sin_addr (unsigned long s_addr) }; ;push DWORD 0x0100007f ; For 127.0.0.1 HOST ;push WORD 0xffaa ; PORT 43775 (reverse), || unsigned short sin_port, - push WORD [edi] ; PORT is specified in the bottom of the code / shellcode. Last two bytes in HEX. + push WORD [edi] ; PORT specified in the bottom of the code / shellcode. Last two bytes in HEX. push WORD bx ; 2 - AF_INET || struct sockaddr { short sin_family, mov ecx, esp ; Save PTR to sockaddr struct in ECX diff --git a/exam1/shell_bind_tcp_smaller b/exam1/shell_bind_tcp_smaller index c02515d22f5150240a7dde486276cb5ec4c0e467..aae886e98a378e0d806b208982e0b339e48f1f0e 100755 GIT binary patch delta 262 zcmeywvV(Pk0^^5?ips2K7#JANO!U;^eH{>=l@{S_cqu6Dzxl*ESN0dH|NsBL>i@*U zo|8El#Tj!ZD>5oGo|){*sLs2Ck%3_WP$LTvvrVpKlxB@!Vqi#^Jd@Eqv9y7O11Jmx zj0~DUaw!tu7|1`0#CHVp6QFznpn4A=|I7r4egTG$|3lFD(IEb0MJ5gBg8ZVA_{_Zc z)Zzk$l+psD_?-Ow0*2(ooSgXd)RK6RG(&uGNg{}fPbw~ku~SnLOA;C4Q}a?70CL_& AZU6uP delta 188 zcmdnN`iW(N0^^g3ips2q85kH2PxRE{&Pt1LHoO#+mSJEyvB7oX8PCZQj3SK5lXV%D z84phmWK`E(!^ptU094L`gav?XP9SCmVi?e2VqkEayp+-1ad86+2Sk*SK^@3Qfbsc0T3{5Plb>I}kery46Q7=15)YDw>jMA?HYWD~ delta 105 zcmeysvVmnn4P)}eT7S&|1_lNeBrE`AO9C-75W@iz1B2eguX@~BX%Wtbmx9tV3@j%b gFuHQW6-=&S%wTk$%*tfXlTun>6rYoyUjUQ@0D*53Q~&?~