From 2b6b09f967f70a61284a601da15d172c5b6d514f Mon Sep 17 00:00:00 2001 From: letmein Date: Fri, 19 Oct 2018 21:49:41 +0800 Subject: [PATCH] soal pwn --- ku-ingin-lompat-sambil-jumping/return | Bin 0 -> 7832 bytes ku-ingin-lompat-sambil-jumping/return.c | 85 ++++++++++++++++++++++++ ku-ingin-melompat/return | Bin 0 -> 7648 bytes ku-ingin-melompat/return.c | 73 ++++++++++++++++++++ service-diary/buffer32 | Bin 0 -> 10064 bytes service-diary/buffer32.c | 40 +++++++++++ service-diary/buffer64 | Bin 0 -> 15512 bytes service-diary/buffer64.c | 40 +++++++++++ 8 files changed, 238 insertions(+) create mode 100755 ku-ingin-lompat-sambil-jumping/return create mode 100644 ku-ingin-lompat-sambil-jumping/return.c create mode 100755 ku-ingin-melompat/return create mode 100644 ku-ingin-melompat/return.c create mode 100755 service-diary/buffer32 create mode 100644 service-diary/buffer32.c create mode 100755 service-diary/buffer64 create mode 100644 service-diary/buffer64.c diff --git a/ku-ingin-lompat-sambil-jumping/return b/ku-ingin-lompat-sambil-jumping/return new file mode 100755 index 0000000000000000000000000000000000000000..7adb17af7c59d3443d373a4f35164a7e1f7769bd GIT binary patch literal 7832 zcmeHMeQX@X6(8T7!(ooI2_`rY=+Zb~AUW(1^2L`gvGYOmafBGCAZ*rmd){;I!`$tX zm`16iBP1cQWU2^JRaFT{z#l2lmLgOrGBpHHD>bDmMQT(+Dbq_ujmjc{98FX8hgm6-(;s>V#JUA}EN)w}rxUz$;UgW{%LrsiIAsFU}K_ zAfj&05Ntpi8jwPek%FMLz-zaL!lW~SNz_3s2}}sIB^^3l2vR*|O-dhW6e9AYP?*$( zMms?4m-+x$GxW{Skt)C>>b)^ou(!}RsS9$Fr%SwTr?d#hyc=T&-3lGa(_arg;1>%0 zqkFLidjI%7gp9=YoZn^HOz&mc)U0eK?`(>d3bENr$F|fjUDbnM6(`Pxg>9Qbj2-ne zewtZVY&E9@c7(6%zwWiCKHk6Y@6>rd7^|U61K%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^nh+{q$}KrPH3R_mP&4zL5i1SmY@-+4 zE-G$$HQchA#Q_n+>C=qG7cHMYDrh}M4(N6xK z1quyyukfA4(gE`9n7i?O*D5vY$Fu7K{0Mn0{V}K82fKFERTii6Yuc^?G4rAwbL)e! z>jW{o1Cx0;bL<;I%n)hETznb;b8xTFmgP1O^Jv;JH+&s-ZK!+wQcl_cV&2WV%o#Bl zj?dpORd<4zIns`~dpqnj)IEQk17Fx>5bYL$m}4fO;2D5+%>O;R-KcY{?1%6AQ7ERP z?iJdxYzKLE%t^1fJ2>GvS0q#bj_rmwJj12$X>`eW|M|3g+>8JP6N z_}vHMaA?OI{P +#include +#include +#include + + +int wallet = 18; +char burung[8]; + +void secret_message(){ + system("/bin/sh"); +} +void buy_flag(){ + if(wallet < 999999999999) printf("kamu terlalu lemah dude :)\n"); + else secret_message(); +} +void jual_burung(){ + char buffer[64]; + getchar(); + printf("burung apa yang kamu mau jual ?\n"); + fgets(buffer, sizeof(buffer), stdin); + printf("yang kamu jual : "); + printf(buffer); + if(strcmp(buffer,"garuda") == 1 && strcmp(burung,"garuda") == 0){ + printf("burung berhasil di jual\n"); + wallet = wallet + 10; + memset(&burung[0], 0, sizeof(burung)); + } else{ + puts("not found !\n"); + exit(0); + } +} +void menu(){ + printf("+--------------------------------+\n"); + printf("------------PASAR BURUNG----------\n"); + printf("+--------------------------------+\n"); + printf("1. beli flag (999999 ruby)\n"); + printf("2. beli garuda (10 ruby)\n"); + printf("3. lihat burung yang udah di beli\n"); + printf("4. jual burung\n"); + printf("5. check wallet\n"); + printf("6. exit\n"); +} + +int main() +{ + while(1){ + char pilihan; + menu(); + printf(">>"); + fflush(stdout); + + scanf("%s",&pilihan); + switch(pilihan){ + case '1' : + buy_flag(); + break; + case '2' : + if(wallet > 10){ + printf("burung berhasil di beli\n"); + wallet = wallet - 10; + strcpy(burung,"garuda"); + } else printf("uang gak cukup!\n"); + break; + case '3' : + if(strlen(burung) == 0) printf("belum ada yang kamu beli!\n"); + else printf("burung yg dah di beli : %s\n",burung); + break; + case '4' : + jual_burung(); + break; + case '5' : + printf("isi wallet : %d ruby\n",wallet); + break; + case '6' : + printf("makasih udah berkunjung :)\n"); + exit(0); + break; + default : + fprintf(stderr,"bad request!\n"); + exit(0); + } +} + +} diff --git a/ku-ingin-melompat/return b/ku-ingin-melompat/return new file mode 100755 index 0000000000000000000000000000000000000000..391d33be6c5951106d8e2b76d12f9a382250cc11 GIT binary patch literal 7648 zcmeHMdvH|M89zxjy2iK(7&R*DMS~3pOM+2AQL~WnDvt<(+EKaQ?B2~?vyXK5ULoor zbme7;GHu6kYG(@5+WH)6YpvsJfNTvP~&)&+ts5H_8yG%Z3Cr-(*zzBo^u1QB&D zYhVM?(0~+xj8p;Y1nyiL2$D_*CQ%2mBrqY+mNcY%TKj#L09QSZ&cg1v>YNo|mmJYC28b}U&XMDngckaPodBu{@W^njl$>>tC6 zCD8ll_c3H7w&(gLClg(hld(z3MA}&u&Sk<=l#XqwpR;HgewClN78bUx1JQTXPkChY zfk2XhxFA&MKg{IVE^(30_`;`+ZnLz0rr+|BMoBmf#yp@T3wv7r1R}AV|NA5@(CW;H^G< zD)8owo*tfs&!hD9 zk&aW9G}9t$8Zp#k8OJ6wvssbr%h_g1#Cx-ev>it~j)KmOtgWYvL|V*QFmL88eM)%h z@mdqCx>K37Yo%kJ<;VX{)GMT{49~J$K2OF5%UOv89%qGEi8^Jq5|@j$RH7V3yq|h|xIm@~7uwEcq;bB0zu@pg$hQ%fV>DlunlH4<-;m@~JUh}THW6l(Q?O;@=Y)7`11v2dtW|cYkUe~-7EH4vai|> z)!8euvjO{J_VXl7)?76gZH1%kf`ueju&a`?vOPlsw|s6qba&%{yYOpm!R{)gjungf zoq;WThA6s^q6vOc{$Q*11f_LKYOTST1MPzyH;cmIf3a<~+xAUb{Z)zr)=`3YTp%^C zxj@?l&2AUWAb8pZ*AYDCg4+nTx}cxn`!4tq!FmPM(D{Rb!mU`g^#D~pO0|s}r=yTk zXrR5=VLe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A-*ZUAKk9ewmz1Z$+&-Gso%@yy5qeevwsOWQm3&dAIK?d(7H=cD)$o4Z>MhP{1V-a8MYyK2-Ma2Mx@NNb(ifAl|E6E8Tm{kv({vQNDeZf_0>R5Q^$jpRx^8Xc3XsCOI?-rJ3kY~r7h-cddsZl?kT^ryh$OqXU zbEQXNHxYG}9jQE(wu?Z_XlTbA^-b6vLY-L?sxqHtuF89VW?r;oPCJYWb6Ky@mWBUM zU_MGa=3HH9bUy0dxRjH6K+IoRXD+q|c1@`J#|0F(f|!xfjydpl*fC@A`r{h-V$FkS zHxtC%Z5VdUrD?}J+Oyk?I_Ju9_)e~e;v&?&LOYfXAkU7uUMm#arAGbGC$#+@$g^V( zcnCuIqE}|JPJF-5PJW9pu`K53752xn4dnI5Z@7)dD#Md%IVNjAckSpGe#ML>Yg2Q&tcfbzM#L|uw%Z*sWWHd|G&IGAd+?BS3yuo zJLX=sUt;$*Z1^nLA9FJPKd<1*z+`{)-@PDChjz?ukA6viZ0p&{oDGg`fy^tM8|g5} zvt#bl0z2llUh&rSDFhs!<1!~`g`NL-P{(o<#QvHHP-r(nRpl>r9`RXtB?&tQDbJ4F jpB$GW#xlqBN)m^~XMGLX7Yk1de!E6&4(6v`@v8p@!S>aW literal 0 HcmV?d00001 diff --git a/ku-ingin-melompat/return.c b/ku-ingin-melompat/return.c new file mode 100644 index 0000000..6ae8ff8 --- /dev/null +++ b/ku-ingin-melompat/return.c @@ -0,0 +1,73 @@ +#include +#include +#include +#include + +int wallet = 18; +char burung[8]; + +void secret_message(){ + system("/bin/sh"); +} +void buy_flag(){ + if(wallet < 999999999999) printf("kamu terlalu lemah dude :)\n"); + else secret_message(); +} +void jual_burung(){ + char buffer[64]; + printf("burung apa yang kamu mau jual ?\n"); + read(0,buffer,128); +} +void menu(){ + printf("+--------------------------------+\n"); + printf("------------PASAR BURUNG----------\n"); + printf("+--------------------------------+\n"); + printf("1. beli flag (999999 ruby)\n"); + printf("2. beli garuda (10 ruby)\n"); + printf("3. lihat burung yang udah di beli\n"); + printf("4. jual burung\n"); + printf("5. check wallet\n"); + printf("6. exit\n"); +} + +int main() +{ + while(1){ + char pilihan; + menu(); + printf(">>"); + fflush(stdout); + + scanf("%s",&pilihan); + switch(pilihan){ + case '1' : + buy_flag(); + break; + case '2' : + if(wallet > 10){ + printf("burung berhasil di beli\n"); + wallet = wallet - 10; + strcpy(burung,"garuda"); + } else printf("uang gak cukup!\n"); + break; + case '3' : + if(strlen(burung) == 0) printf("belum ada yang kamu beli!\n"); + else printf("burung yg dah di beli : %s\n",burung); + break; + case '4' : + jual_burung(); + break; + case '5' : + printf("isi wallet : %d ruby\n",wallet); + break; + case '6' : + printf("makasih udah berkunjung :)\n"); + exit(0); + break; + default : + fprintf(stderr,"bad request!\n"); + exit(0); + } +} + +} diff --git a/service-diary/buffer32 b/service-diary/buffer32 new file mode 100755 index 0000000000000000000000000000000000000000..62edae428a97d47ddb4c7874077761bd27e8e1fa GIT binary patch literal 10064 zcmcgye{fvYb-r)+Nm{Ms^~w^qjNR}YWMUF&CCkEg_+`nq{39_Sz(8rh&#T=h?Z&I! z?e1G+F+l97#x_Qc%plw(kdU^4WS=A0TjVpnZLblJp2m z)Qe@}a`9p#!T49%~SFEAZAmW{9;Jn3XcHWkn+d`m+9cL$qiWPIQZY5)1$~WG48-7)s zI2RW7Z9!%1C_lKiXV-~4U%u&%{cpUGvpc_MlqRpFZWxs|WUMSn4#3{k}tQ7XS zOlR#<(MgJ7$1RGYTS(+bg|jQ|ihK!-d?B56hse)3Sy3D@EWN6(==mg$bV{W0Yx;O#_kA+I|xwDVUN{f@f)8sLv`p7 zWsAjVVT%Q8Ws6BIW{ZWf*wzWr#x^9xGPd2Il9y`;t7d4$`rTCd%Gp(Xj7|+^AdCRLleNVEdTFq2Yx>GpQi`5-ZFhT zID4j!ED~aT?8v+2^1%4mb~ZQPe*DObd(F_m^bcU+!-I?4riLcezlmQ|NX76A$$6m% z?yuvI+x7xIB0h_5JMhlfsg@ME<&$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U=2)?@Bw zfhlk3;Ioisl}8I`>6g!xF6ceNNqL3#SiXa*?eSTA6dhD%CdJYxsi!?Xn&30(b?Dte z<6hD8_$y%Aqn`YG9Hf<7JRLS#kIzD_$DHv#=q)3|D_ZY3F!L&eL*^#@I~^^fDrwfA zp)y0I9&?=NMfCmyat@n%%zgNGN7Eh;jkLx1J%-BRP>(t3xr^9iU#%x|BLub`JYDqo zm^*1b<|ysZqaR)LoPG%g`SieoAD3DK{GkZJP&0CfHy=l}o! literal 0 HcmV?d00001 diff --git a/service-diary/buffer32.c b/service-diary/buffer32.c new file mode 100644 index 0000000..1f5f2bb --- /dev/null +++ b/service-diary/buffer32.c @@ -0,0 +1,40 @@ +#include +#include +#include + +void not_even_called(){ + puts("\nWelcome Garuda Muda\n"); + system("/bin/sh"); +} + +void tulisan(){ +puts("██████╗ ██╗ █████╗ ██████╗ ██╗ ██╗ ███████╗███████╗██████╗ ██╗ ██╗██╗ ██████╗███████╗"); +puts("██╔══██╗██║██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔════╝██╔════╝██╔══██╗██║ ██║██║██╔════╝██╔════╝"); +puts("██║ ██║██║███████║██████╔╝ ╚████╔╝ ███████╗█████╗ ██████╔╝██║ ██║██║██║ █████╗ "); +puts("██║ ██║██║██╔══██║██╔══██╗ ╚██╔╝ ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║██║ ██╔══╝ "); +puts("██████╔╝██║██║ ██║██║ ██║ ██║ ███████║███████╗██║ ██║ ╚████╔╝ ██║╚██████╗███████╗"); +puts("╚═════╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═════╝╚══════╝\n"); +} + +int main() +{ + char a[4]; + int b; + char c[16]; + + strcpy(a,"KSL"); + b = 14045; + + tulisan(); + printf("Welcome to Diary Application \n"); + printf("write something : "); + gets(c); + if(strlen(c) > 20){ + printf("karakter gak boleh lebih dari 20\n"); + } else{ + if(b == 0x67616c66) not_even_called(); + else printf("isi diary kamu : %s\n",c); + } +exit(0); +} + diff --git a/service-diary/buffer64 b/service-diary/buffer64 new file mode 100755 index 0000000000000000000000000000000000000000..ccfa0aeeecd25f2ed3c0214e1ceeb8185676e06a GIT binary patch literal 15512 zcmeHOeQ;dWb-!nw$wn9fFse0(vDZV z>h4=((F6d+)jT?cV#|)x85lI|7CwxCF!vf~05a5)x8ZA=0}0qtCF8HylVn zA~``s^vml4C0i;x&o~+4k4B{knve|BAq5Mj?Dre+qjrAMqSGX9)AiNL%be~XQ!R?l zTy}IzcV{lsk;~@G`#bjcZ0Xq29WNE)n`OT#KH1)Q%P!d@8gEW5wRr_TgpvN$FC2aR z*&j#l8+hfB^Fy<5cK_R?`9t#M573|5#zQ~5+$dYo|+c+{;VUW$^fQ{*}OAGc+Sp?(saqOCxvB^n^kgB zMaP;%;_|?#kPZsi8Yf%dWo_|U*FbXsdJYULdvW=ukk~zxU+7U@< z?s@0mc@N$oE!3sm9FYuR6qk$X!FisLZledM`NE~kgY!K=x*iYi{hmm8aK1;$KIy^H zF}EZS{&zU}dv$-m#uUj1Pdb75)5(M14WAP8SN{#5`3--E>$0^8a3oKV-?`W3Q8xTF z$<(!Tr=|QIlBrAQPD=UPBnL@;M#_IqGIinHQ7Qj1$<*|7vr_&#$&}i22Ow|y>EO(d z?o7_So;>&;b32CzUq0CtPKe~oFP>~5^74E=+O%>Ne15TPZNCt2of?ZTTl)aqg>3Jx z<0I&Ca;v<~oN-nkCk=J6WzPu$=U`T}9QlK1^gJ0xHHFqoW~OTKt^The$b z`J)e=m2QNlg$RQE4{Uw!0#k_c>Rrj1GiUEX4_>PK2@qq?DcwHG;zAqAY|k4rL{22p zGa3BsKYTbpf8tJ8d=}#Do>S6j0_fR8q#tPn_j%$bBH)U|?QQ}$L0qyK+?~WFTEGp1 z(;+a_JChF&oPXhReAgytUOu}Kx|avue--z%s{Siz_K7ZNm6)U`x4PoB5aIs}T$R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LN^^_`YE(zX(ddeEIaOtkF_QS16Z?ys)Dq z@BWa(H*eR&B;uv%Ni5JnouZ->%wg4O7pFuVeYfMieS;lNYFta$48>_>o$1JCM4Y6F z6wa;2Gt+s*QxwZsso95Z08Tqq2o`kcMT#6WHco|2lEJ=n#`tAYXPxviOUL9Fr-Svac|J}1C6yu%j57%<;QU&X)&80D=?oL z9WC1XSi&E0*vunU-n;sL&(jJ5Uq$Zk2(MrH?|u9$39|K;UxUzq557KR;dL%OETLk` z>%xV{{6slysNKc@}rL8&gHK!f;j{k#r8Mj%RB5%=oP-<{CVvu5_^^?I}J=nC!0?Poit zd!eUi*DUk8-qil4_V>46!{Tl*WXk@${!eIseqPS?`}_ZZ_V3dH`T6^l_CKa^^2cgs zQU2%=AmxPGM}_wj?YcsKuCKJJt;`dh!N=>*`;IQ{e}IfUg`RCvVfq+&uRs4DKcoHc z=fp^_1wSncdgkc$=Y34KP87dqV0)bw7R6ER&(-jLC!zfu|x^ZssbEkG2uQ_{lxBqy7E;eC|@^@qNBAbpZDFQlE*meCRUeFsCQ336bjH@#Nnh`hM}H h2ngQ%=mstPovefx +#include +#include + +void not_even_called(){ + printf("\nwelcome garuda muda\n"); + system("/bin/sh"); +} + +void tulisan(){ +puts("██████╗ ██╗ █████╗ ██████╗ ██╗ ██╗ ███████╗███████╗██████╗ ██╗ ██╗██╗ ██████╗███████╗"); +puts("██╔══██╗██║██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔════╝██╔════╝██╔══██╗██║ ██║██║██╔════╝██╔════╝"); +puts("██║ ██║██║███████║██████╔╝ ╚████╔╝ ███████╗█████╗ ██████╔╝██║ ██║██║██║ █████╗ "); +puts("██║ ██║██║██╔══██║██╔══██╗ ╚██╔╝ ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║██║ ██╔══╝ "); +puts("██████╔╝██║██║ ██║██║ ██║ ██║ ███████║███████╗██║ ██║ ╚████╔╝ ██║╚██████╗███████╗"); +puts("╚═════╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═════╝╚══════╝\n"); +} + +int main() +{ + char a[4]; + int b; + char c[64]; + + strcpy(a,"KSL"); + b = 14045; + + tulisan(); + printf("Welcome to Diary Application \n"); + printf("write something : "); + gets(c); + if(strlen(c) > 20){ + printf("karakter gak boleh lebih dari 20\n"); + } else{ + if(b == 0x67616c66) not_even_called(); + else printf("isi diary kamu : %s\n",c); + } + exit(0); +} +