From d76766fb5fc28940d4960d4ed2d693f9fc08e7c4 Mon Sep 17 00:00:00 2001 From: paulussimanjuntak Date: Fri, 19 Oct 2018 19:54:25 +0800 Subject: [PATCH 01/29] first commit --- README.md | 1 + ping-service.py | 77 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 README.md create mode 100755 ping-service.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..eb74650 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +ping-service.py diff --git a/ping-service.py b/ping-service.py new file mode 100755 index 0000000..7fe780e --- /dev/null +++ b/ping-service.py @@ -0,0 +1,77 @@ +#!/usr/bin/python + +import sys, subprocess, re +from os import system as MaManX + +def make_secure(): + unsafe_word = ['__import__', 'eval', 'execfile', 'file', 'input', 'compile', 'reload'] + for unsafe in unsafe_word: + del __builtins__.__dict__[unsafe] + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) + +def banner(): + return ''' +\033[1;32mWELCOME TO MAMANX PINX SERVICE\033[1;m\033[1;31m + _ __ _____ _ _____ _____ _ _ _____ _____ _____ _____ _ _ _____ _____ _____ +| | / // ___|| | | ___ \|_ _|| \ | || __ \ / ___|| ___|| ___ \| | | ||_ _|/ __ \| ___| +| |/ / \ `--. | | | |_/ / | | | \| || | \/ \ `--. | |__ | |_/ /| | | | | | | / \/| |__ +| \ `--. \| | | __/ | | | . ` || | __ `--. \| __| | / | | | | | | | | | __| +| |\ \/\__/ /| |____ | | _| |_ | |\ || |_\ \ /\__/ /| |___ | |\ \ \ \./ / _| |_ | \__/\| |___ +\_| \_/\____/ \_____/ \_| \___/ \_| \_/ \____/ \____/ \____/ \_| \_| \___/ \___/ \_____/\____/ + \033[1;m +\033[1;32mversion [beta 1.1 MAMANK]\033[1;m + ''' +def displayMenu(): + return ''' +Choose a ksl ping service: + 1. Ping only one time + 2. Ping multiple times + 3. Exit MaManX +''' + +def main(): + make_secure() + print banner() + print displayMenu() + + userNumber = raw_input("Masukkan pilihan (1-3): ") + if userNumber == "1" : + host = raw_input("\nMasukkan alamat host : ") + p1 = subprocess.Popen(['ping','-c 5', host], stdout=subprocess.PIPE) + output = p1.communicate()[0] + print output + exit() + elif userNumber == "2" : + user = int(raw_input("\nMasukkan jumlah host: ")) + while user <= 1: + user = int(raw_input("\nMasukkan host lebih dari 1 MaManX: ")) + for o in range(user): + host = raw_input("Masukkan alamat host ke " +str(o+1) +" : ") + hosts= re.sub('[|,;]', '', host) + pings = MaManX('ping -c 5 ' + hosts ) + if (pings == 0): + print host.upper(), "IS UP MAMANX" + else : + print host.upper(), "IS LOST MAMANX" + print "" + elif userNumber == "3" : + print "\nTerimakasih telah menggunakan jasa kami MaManX" + exit() + else : + print "\nMaManX salah masukkin acchh :(" + exit() + +main() From 71e68c21da4dfb163b9da7c244f6b8f765ee781f Mon Sep 17 00:00:00 2001 From: mamang Date: Fri, 19 Oct 2018 20:02:27 +0800 Subject: [PATCH 02/29] Delete 'ping-service.py' --- ping-service.py | 77 ------------------------------------------------- 1 file changed, 77 deletions(-) delete mode 100755 ping-service.py diff --git a/ping-service.py b/ping-service.py deleted file mode 100755 index 7fe780e..0000000 --- a/ping-service.py +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/python - -import sys, subprocess, re -from os import system as MaManX - -def make_secure(): - unsafe_word = ['__import__', 'eval', 'execfile', 'file', 'input', 'compile', 'reload'] - for unsafe in unsafe_word: - del __builtins__.__dict__[unsafe] - -class Unbuffered(object): - def __init__(self, stream): - self.stream = stream - def write(self, data): - self.stream.write(data) - self.stream.flush() - def writelines(self, datas): - self.stream.writelines(datas) - self.stream.flush() - def __getattr__(self, attr): - return getattr(self.stream, attr) - -sys.stdout = Unbuffered(sys.stdout) - -def banner(): - return ''' -\033[1;32mWELCOME TO MAMANX PINX SERVICE\033[1;m\033[1;31m - _ __ _____ _ _____ _____ _ _ _____ _____ _____ _____ _ _ _____ _____ _____ -| | / // ___|| | | ___ \|_ _|| \ | || __ \ / ___|| ___|| ___ \| | | ||_ _|/ __ \| ___| -| |/ / \ `--. | | | |_/ / | | | \| || | \/ \ `--. | |__ | |_/ /| | | | | | | / \/| |__ -| \ `--. \| | | __/ | | | . ` || | __ `--. \| __| | / | | | | | | | | | __| -| |\ \/\__/ /| |____ | | _| |_ | |\ || |_\ \ /\__/ /| |___ | |\ \ \ \./ / _| |_ | \__/\| |___ -\_| \_/\____/ \_____/ \_| \___/ \_| \_/ \____/ \____/ \____/ \_| \_| \___/ \___/ \_____/\____/ - \033[1;m -\033[1;32mversion [beta 1.1 MAMANK]\033[1;m - ''' -def displayMenu(): - return ''' -Choose a ksl ping service: - 1. Ping only one time - 2. Ping multiple times - 3. Exit MaManX -''' - -def main(): - make_secure() - print banner() - print displayMenu() - - userNumber = raw_input("Masukkan pilihan (1-3): ") - if userNumber == "1" : - host = raw_input("\nMasukkan alamat host : ") - p1 = subprocess.Popen(['ping','-c 5', host], stdout=subprocess.PIPE) - output = p1.communicate()[0] - print output - exit() - elif userNumber == "2" : - user = int(raw_input("\nMasukkan jumlah host: ")) - while user <= 1: - user = int(raw_input("\nMasukkan host lebih dari 1 MaManX: ")) - for o in range(user): - host = raw_input("Masukkan alamat host ke " +str(o+1) +" : ") - hosts= re.sub('[|,;]', '', host) - pings = MaManX('ping -c 5 ' + hosts ) - if (pings == 0): - print host.upper(), "IS UP MAMANX" - else : - print host.upper(), "IS LOST MAMANX" - print "" - elif userNumber == "3" : - print "\nTerimakasih telah menggunakan jasa kami MaManX" - exit() - else : - print "\nMaManX salah masukkin acchh :(" - exit() - -main() From 76471e8d84158cd98a2d596a77f51b89870add90 Mon Sep 17 00:00:00 2001 From: mamang Date: Fri, 19 Oct 2018 20:03:22 +0800 Subject: [PATCH 03/29] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb74650..2fd2a44 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -ping-service.py +Kumpulan Soal PWN KSL untuk seleksi mahasiswa baru KSL 2018 \ No newline at end of file From ad5ab3bb97e86df12d9f03b986f51475ba683753 Mon Sep 17 00:00:00 2001 From: KSL WEB Date: Fri, 19 Oct 2018 20:28:08 +0800 Subject: [PATCH 04/29] Testing --- testing | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing diff --git a/testing b/testing new file mode 100644 index 0000000..e69de29 From b4e6583a6ed4926ef0f90f8a2561e4ecccb149f8 Mon Sep 17 00:00:00 2001 From: paulussimanjuntak Date: Fri, 19 Oct 2018 20:36:10 +0800 Subject: [PATCH 05/29] ping service --- ping-service/README.md | 1 + ping-service/ping-service.py | 77 ++++++++++++++++++++++++++++++++++++ ping-service/start.sh | 4 ++ 3 files changed, 82 insertions(+) create mode 100644 ping-service/README.md create mode 100755 ping-service/ping-service.py create mode 100755 ping-service/start.sh diff --git a/ping-service/README.md b/ping-service/README.md new file mode 100644 index 0000000..eb74650 --- /dev/null +++ b/ping-service/README.md @@ -0,0 +1 @@ +ping-service.py diff --git a/ping-service/ping-service.py b/ping-service/ping-service.py new file mode 100755 index 0000000..7fe780e --- /dev/null +++ b/ping-service/ping-service.py @@ -0,0 +1,77 @@ +#!/usr/bin/python + +import sys, subprocess, re +from os import system as MaManX + +def make_secure(): + unsafe_word = ['__import__', 'eval', 'execfile', 'file', 'input', 'compile', 'reload'] + for unsafe in unsafe_word: + del __builtins__.__dict__[unsafe] + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) + +def banner(): + return ''' +\033[1;32mWELCOME TO MAMANX PINX SERVICE\033[1;m\033[1;31m + _ __ _____ _ _____ _____ _ _ _____ _____ _____ _____ _ _ _____ _____ _____ +| | / // ___|| | | ___ \|_ _|| \ | || __ \ / ___|| ___|| ___ \| | | ||_ _|/ __ \| ___| +| |/ / \ `--. | | | |_/ / | | | \| || | \/ \ `--. | |__ | |_/ /| | | | | | | / \/| |__ +| \ `--. \| | | __/ | | | . ` || | __ `--. \| __| | / | | | | | | | | | __| +| |\ \/\__/ /| |____ | | _| |_ | |\ || |_\ \ /\__/ /| |___ | |\ \ \ \./ / _| |_ | \__/\| |___ +\_| \_/\____/ \_____/ \_| \___/ \_| \_/ \____/ \____/ \____/ \_| \_| \___/ \___/ \_____/\____/ + \033[1;m +\033[1;32mversion [beta 1.1 MAMANK]\033[1;m + ''' +def displayMenu(): + return ''' +Choose a ksl ping service: + 1. Ping only one time + 2. Ping multiple times + 3. Exit MaManX +''' + +def main(): + make_secure() + print banner() + print displayMenu() + + userNumber = raw_input("Masukkan pilihan (1-3): ") + if userNumber == "1" : + host = raw_input("\nMasukkan alamat host : ") + p1 = subprocess.Popen(['ping','-c 5', host], stdout=subprocess.PIPE) + output = p1.communicate()[0] + print output + exit() + elif userNumber == "2" : + user = int(raw_input("\nMasukkan jumlah host: ")) + while user <= 1: + user = int(raw_input("\nMasukkan host lebih dari 1 MaManX: ")) + for o in range(user): + host = raw_input("Masukkan alamat host ke " +str(o+1) +" : ") + hosts= re.sub('[|,;]', '', host) + pings = MaManX('ping -c 5 ' + hosts ) + if (pings == 0): + print host.upper(), "IS UP MAMANX" + else : + print host.upper(), "IS LOST MAMANX" + print "" + elif userNumber == "3" : + print "\nTerimakasih telah menggunakan jasa kami MaManX" + exit() + else : + print "\nMaManX salah masukkin acchh :(" + exit() + +main() diff --git a/ping-service/start.sh b/ping-service/start.sh new file mode 100755 index 0000000..7c75a88 --- /dev/null +++ b/ping-service/start.sh @@ -0,0 +1,4 @@ +#!/bin/bash +#nc ip port + +socat TCP-LISTEN:5000,reuseaddr,fork EXEC:./ping-service.py From 7a62f9b77f2c1c9c15cb481c04c8ede4ffa151b9 Mon Sep 17 00:00:00 2001 From: galanggg Date: Fri, 19 Oct 2018 21:13:10 +0800 Subject: [PATCH 06/29] calc-pwn --- calc-pwn/calc.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++ calc-pwn/server.sh | 3 +++ 2 files changed, 53 insertions(+) create mode 100755 calc-pwn/calc.py create mode 100755 calc-pwn/server.sh diff --git a/calc-pwn/calc.py b/calc-pwn/calc.py new file mode 100755 index 0000000..fc648b5 --- /dev/null +++ b/calc-pwn/calc.py @@ -0,0 +1,50 @@ +#!/usr/bin/python + +import sys + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) + +def hitung(x,z,y): + return eval(x+z+y) + +#menu operasi +print " /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" +print "| $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" +print "| $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" +print "| $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" +print "| $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" +print "| $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" +print "| $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" +print "|__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" +print "Author : Galanggg" +print "===============================================================================>" +print "1. Penjumlahan (+)" +print "2. Pengurangan (-)" +print "3. Perkalian (*)" +print "4. Pembagian (:)" + +choice = raw_input("Masukkan pilihan Anda (1/2/3/4): ") + +num1 = raw_input("Masukkan Bilangan Pertama : ") +num2 = raw_input("Masukkan Bilangan Kedua : ") + +if choice == '1': + print num1,"+",num2,"=",hitung(num1,"+",num2) +elif choice == '2': + print num1,"-",num2,"=",hitung(num1,"-",num2) +elif choice == '3': + print num1,"*",num2,"=",hitung(num1,"*",num2) +elif choice == '4': + print num1,"/",num2,"=",hitung(num1,"/",num2) \ No newline at end of file diff --git a/calc-pwn/server.sh b/calc-pwn/server.sh new file mode 100755 index 0000000..bcd2d57 --- /dev/null +++ b/calc-pwn/server.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +socat TCP-LISTEN:5000,reuseaddr,fork EXEC:./calc2.py \ No newline at end of file From 2b6b09f967f70a61284a601da15d172c5b6d514f Mon Sep 17 00:00:00 2001 From: letmein Date: Fri, 19 Oct 2018 21:49:41 +0800 Subject: [PATCH 07/29] 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#l2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Z+bQNTC|zH&Ccd&;?_SlV>p&AMQ$p|h z_Nw^G<%=h3U}xE0mAm$@F6b*&Nl(iN*0#aHO7mn^xVd#%1UzGy`^y~^9NWXX|Z zb}!L7JH0zI-jr>cKR1ROIDH_g+m@5x5bNFKUg`Pm)TNwX;@;Z%Me=gbFVM}DVH<)6 zA6+Hvxbw?9avTGL6D)OFsvA2|GLs0Co-<1&qtBGrhkjdiGw7Gp-1qUYF;Sf=6?DtU zr?O`4?Io@)aTPhyy5@?}uXL{?{UTqGxrV&I%uI0D>kR5VcDeVR6WXS-deO`ll7?+^ z@^&Vv4`eXN^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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ff8 --- /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&%{c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-)1{n6p#yY%-&sf%4g?zPqYVtFyJMKCfOt$VhNe zgq_UbiHfIR+;uoyH=VHaX?PjR+o^jHsKH{kaF?H50Mo=m;LgXx)Np zQ<_4S;uP{ChLAb2zO|b>-1xAEkP*k2GbKCHNf9GT#qohBmK@E(o@$YvNXbrQi8vaZ z1#HMLbm}W2pK(P@&MF2nHk<==nX|;WRiTrUs~2-p-sVgtVL~I-RqayML(^~&A4wp|m~ zGDmyNah~z)sjNonQTIkvW+K#M?(`P^q^T zl{r^C^m;*44=>Jg9@OJG3dc%6y!U3HcR6TXbo};#q4k)fO+ar#E1_jfsQU=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?o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zk`LmimCw<6l|ive2(y~~YO%8_-Y)2vmcInuU0J0j=2Z;0AVooCm6p3N2KPD&sN< zoa*I$FWFL=#>c2KzDIypYk#eN{h^GrTwEDTfU7Lk;(SY*v@V)I-vMsmjkJIM{6O3L z=i$FfeDQq#xs0=TUNxWtt;hqNCZvKNZ&|(t+!TxF+iGdAjXdOv8u(V=F~s3%7Z^XZM9oPmGAR((J47tLt_1i1&Te6 z#h_iZoJlK<-*g)*6f0A(#&d(Vq#aJ;lXpp8BsUsx&ZxhyyL$~(z4q3PE*m3*7ur=J`cl@>9gLIDs}L?5>rRRE3rijFaJsLN^^_`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); +} + From da1b4a00b820e6bc4da5f4282532e347de4ba5dd Mon Sep 17 00:00:00 2001 From: OkaAditya Date: Fri, 19 Oct 2018 23:21:41 +0800 Subject: [PATCH 08/29] Upload files to 'Kepala' --- Kepala/header.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Kepala/header.rb diff --git a/Kepala/header.rb b/Kepala/header.rb new file mode 100644 index 0000000..622797b --- /dev/null +++ b/Kepala/header.rb @@ -0,0 +1,6 @@ +print "Masukan Alamat Web : " +url = gets.chomp + +puts "Silakan mengunjungi link di bawah untuk mendapatkan headernya" + +system("curl -I -s #{url} | curl -F 'clbin=<-' https://clbin.com") From ab9b804ea8907ceb270a33e33c7e6edf65af385a Mon Sep 17 00:00:00 2001 From: OkaAditya Date: Fri, 19 Oct 2018 23:25:33 +0800 Subject: [PATCH 09/29] Update 'Kepala/header.rb' --- Kepala/header.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Kepala/header.rb b/Kepala/header.rb index 622797b..235d947 100644 --- a/Kepala/header.rb +++ b/Kepala/header.rb @@ -1,3 +1,4 @@ +print "By: Oka Aditya" print "Masukan Alamat Web : " url = gets.chomp From 15f653ef5e6760ad7cd5f5a9989ceeb146f13d42 Mon Sep 17 00:00:00 2001 From: OkaAditya Date: Fri, 19 Oct 2018 23:31:07 +0800 Subject: [PATCH 10/29] Update 'Kepala/header.rb' --- Kepala/header.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Kepala/header.rb b/Kepala/header.rb index 235d947..3165033 100644 --- a/Kepala/header.rb +++ b/Kepala/header.rb @@ -1,4 +1,10 @@ -print "By: Oka Aditya" +puts " __ __ __ _______ __ " +puts " / / / /__ ____ _____/ /__ _____ / ____(_)___ ____/ /__ _____" +puts " / /_/ / _ \/ __ `/ __ / _ \/ ___/ / /_ / / __ \/ __ / _ \/ ___/" +puts " / __ / __/ /_/ / /_/ / __/ / / __/ / / / / / /_/ / __/ / " +puts "/_/ /_/\___/\__,_/\__,_/\___/_/ /_/ /_/_/ /_/\__,_/\___/_/ " +puts " " +puts "By: Oka Aditya" print "Masukan Alamat Web : " url = gets.chomp From bfa3bd2eeb5488ae1fb2a9e223569ba3d6b05a27 Mon Sep 17 00:00:00 2001 From: OkaAditya Date: Fri, 19 Oct 2018 23:33:11 +0800 Subject: [PATCH 11/29] Update 'Kepala/header.rb' --- Kepala/header.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Kepala/header.rb b/Kepala/header.rb index 3165033..edf471d 100644 --- a/Kepala/header.rb +++ b/Kepala/header.rb @@ -1,9 +1,4 @@ -puts " __ __ __ _______ __ " -puts " / / / /__ ____ _____/ /__ _____ / ____(_)___ ____/ /__ _____" -puts " / /_/ / _ \/ __ `/ __ / _ \/ ___/ / /_ / / __ \/ __ / _ \/ ___/" -puts " / __ / __/ /_/ / /_/ / __/ / / __/ / / / / / /_/ / __/ / " -puts "/_/ /_/\___/\__,_/\__,_/\___/_/ /_/ /_/_/ /_/\__,_/\___/_/ " -puts " " +puts "HEADER FINDER" puts "By: Oka Aditya" print "Masukan Alamat Web : " url = gets.chomp From 344ceb389275e26c4c533e11662ce67304b330ff Mon Sep 17 00:00:00 2001 From: bagushehe Date: Sat, 20 Oct 2018 20:00:11 +0800 Subject: [PATCH 12/29] Add 'Perintah linux' --- Perintah linux | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Perintah linux diff --git a/Perintah linux b/Perintah linux new file mode 100644 index 0000000..f74467b --- /dev/null +++ b/Perintah linux @@ -0,0 +1,9 @@ +import os + +name = raw_input("Masukan nama anda : ") +print("Selamat datang "+name) +perlin = raw_input("silahkan ketik perintah linux apapun! ") +os.system(perlin) +print("{flag=you_get_the_flag}") + + From 3f1635b8715c98cf68a256f59d1de52855178970 Mon Sep 17 00:00:00 2001 From: mamang Date: Sat, 20 Oct 2018 20:34:28 +0800 Subject: [PATCH 13/29] Add Environment Docker Python --- Docker Env/Dockerfile | 31 +++++++++++++++++++++++++++++++ Docker Env/TUTORIAL | 3 +++ 2 files changed, 34 insertions(+) create mode 100644 Docker Env/Dockerfile create mode 100644 Docker Env/TUTORIAL diff --git a/Docker Env/Dockerfile b/Docker Env/Dockerfile new file mode 100644 index 0000000..772170b --- /dev/null +++ b/Docker Env/Dockerfile @@ -0,0 +1,31 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken + +# install socat editor ssh +RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{xxxxxxxxxxxxxxxxxx}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/namafile.py # ubah nama file +RUN chmod 775 /chall/namafile.py # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/namafile.py,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] \ No newline at end of file diff --git a/Docker Env/TUTORIAL b/Docker Env/TUTORIAL new file mode 100644 index 0000000..b326e5c --- /dev/null +++ b/Docker Env/TUTORIAL @@ -0,0 +1,3 @@ +docker build -t "nama_challenge" . +docker run -p "port_anda:7000" -it cobamaba # mode non-daemon utk debug +docker run -p "port_anda:7000" -itd cobamaba # mode daemon kalau dianggap program sudah fix berjalan From e23a1748c1a62e33af9fbe9601ba222cb9b46ded Mon Sep 17 00:00:00 2001 From: mamang Date: Sat, 20 Oct 2018 20:44:11 +0800 Subject: [PATCH 14/29] Delete 'testing' --- testing | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 testing diff --git a/testing b/testing deleted file mode 100644 index e69de29..0000000 From c29ea1bc80c232465d19359d290452f98a05aac2 Mon Sep 17 00:00:00 2001 From: mamang Date: Sat, 20 Oct 2018 20:44:20 +0800 Subject: [PATCH 15/29] Delete 'Perintah linux' --- Perintah linux | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 Perintah linux diff --git a/Perintah linux b/Perintah linux deleted file mode 100644 index f74467b..0000000 --- a/Perintah linux +++ /dev/null @@ -1,9 +0,0 @@ -import os - -name = raw_input("Masukan nama anda : ") -print("Selamat datang "+name) -perlin = raw_input("silahkan ketik perintah linux apapun! ") -os.system(perlin) -print("{flag=you_get_the_flag}") - - From 0f617e01e9f1d407bb14a7e97220fe8375b661a4 Mon Sep 17 00:00:00 2001 From: bagushehe Date: Sat, 20 Oct 2018 21:17:45 +0800 Subject: [PATCH 16/29] Upload files to '' --- aa.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ aaa.py | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 aa.py create mode 100644 aaa.py diff --git a/aa.py b/aa.py new file mode 100644 index 0000000..246f346 --- /dev/null +++ b/aa.py @@ -0,0 +1,44 @@ +#!/usr/bin/python + +import sys +import os + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) +print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" +print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" +print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" +print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" +print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" +print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" +print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" +print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" +print" Author : Bagus Widhyasmara" +print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" +print" " +print "clue --> The 3rd answer can be read use indonesian and english language !" + +flag1 = "{flag=you_are_jenius}" + +while True: + x = raw_input("enter your born place ") + y = input("enter your bornn year ") + z = input("how many letters o on born ? ") + if z == 1: + perlin = raw_input("silahkan ketik perintah linux apapun! ") + os.system(perlin) + print "Here ya go! ", flag1 + exit(0) + else: + print "{fIa9=YOU_VERY_STUPID_!!!}" diff --git a/aaa.py b/aaa.py new file mode 100644 index 0000000..cdd8eb3 --- /dev/null +++ b/aaa.py @@ -0,0 +1,36 @@ +#!/usr/bin/python + +import sys +import os + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) +print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" +print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" +print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" +print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" +print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" +print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" +print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" +print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" +print" Author : Bagus Widhyasmara" +print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" +print" " +name = raw_input("Masukan nama anda : ") +print("Selamat datang "+name) +perlin = raw_input("silahkan ketik perintah linux apapun! ") +os.system(perlin) +print("{flag=you_get_the_flag}") + + From ca5f8e3a9918c502d6e6fac678c5ba21b230c7dc Mon Sep 17 00:00:00 2001 From: bagushehe Date: Sat, 20 Oct 2018 21:18:41 +0800 Subject: [PATCH 17/29] Delete 'aa.py' --- aa.py | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 aa.py diff --git a/aa.py b/aa.py deleted file mode 100644 index 246f346..0000000 --- a/aa.py +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/python - -import sys -import os - -class Unbuffered(object): - def __init__(self, stream): - self.stream = stream - def write(self, data): - self.stream.write(data) - self.stream.flush() - def writelines(self, datas): - self.stream.writelines(datas) - self.stream.flush() - def __getattr__(self, attr): - return getattr(self.stream, attr) - -sys.stdout = Unbuffered(sys.stdout) -print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" -print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" -print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" -print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" -print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" -print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" -print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" -print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" -print" Author : Bagus Widhyasmara" -print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" -print" " -print "clue --> The 3rd answer can be read use indonesian and english language !" - -flag1 = "{flag=you_are_jenius}" - -while True: - x = raw_input("enter your born place ") - y = input("enter your bornn year ") - z = input("how many letters o on born ? ") - if z == 1: - perlin = raw_input("silahkan ketik perintah linux apapun! ") - os.system(perlin) - print "Here ya go! ", flag1 - exit(0) - else: - print "{fIa9=YOU_VERY_STUPID_!!!}" From 1c616a9610499cdd8300a3698dc20a189eb7d53c Mon Sep 17 00:00:00 2001 From: bagushehe Date: Sat, 20 Oct 2018 21:18:49 +0800 Subject: [PATCH 18/29] Delete 'aaa.py' --- aaa.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 aaa.py diff --git a/aaa.py b/aaa.py deleted file mode 100644 index cdd8eb3..0000000 --- a/aaa.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/python - -import sys -import os - -class Unbuffered(object): - def __init__(self, stream): - self.stream = stream - def write(self, data): - self.stream.write(data) - self.stream.flush() - def writelines(self, datas): - self.stream.writelines(datas) - self.stream.flush() - def __getattr__(self, attr): - return getattr(self.stream, attr) - -sys.stdout = Unbuffered(sys.stdout) -print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" -print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" -print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" -print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" -print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" -print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" -print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" -print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" -print" Author : Bagus Widhyasmara" -print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" -print" " -name = raw_input("Masukan nama anda : ") -print("Selamat datang "+name) -perlin = raw_input("silahkan ketik perintah linux apapun! ") -os.system(perlin) -print("{flag=you_get_the_flag}") - - From d35c0e87cbe2744d1471f74245e289556126e6e4 Mon Sep 17 00:00:00 2001 From: bagushehe Date: Sat, 20 Oct 2018 21:20:36 +0800 Subject: [PATCH 19/29] Perintah Linux --- Perintah linux/aa.py | 44 +++++++++++++++++++++++++++++++++++++++++++ Perintah linux/aaa.py | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 Perintah linux/aa.py create mode 100644 Perintah linux/aaa.py diff --git a/Perintah linux/aa.py b/Perintah linux/aa.py new file mode 100644 index 0000000..246f346 --- /dev/null +++ b/Perintah linux/aa.py @@ -0,0 +1,44 @@ +#!/usr/bin/python + +import sys +import os + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) +print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" +print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" +print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" +print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" +print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" +print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" +print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" +print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" +print" Author : Bagus Widhyasmara" +print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" +print" " +print "clue --> The 3rd answer can be read use indonesian and english language !" + +flag1 = "{flag=you_are_jenius}" + +while True: + x = raw_input("enter your born place ") + y = input("enter your bornn year ") + z = input("how many letters o on born ? ") + if z == 1: + perlin = raw_input("silahkan ketik perintah linux apapun! ") + os.system(perlin) + print "Here ya go! ", flag1 + exit(0) + else: + print "{fIa9=YOU_VERY_STUPID_!!!}" diff --git a/Perintah linux/aaa.py b/Perintah linux/aaa.py new file mode 100644 index 0000000..cdd8eb3 --- /dev/null +++ b/Perintah linux/aaa.py @@ -0,0 +1,36 @@ +#!/usr/bin/python + +import sys +import os + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) +print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" +print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" +print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" +print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" +print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" +print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" +print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" +print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" +print" Author : Bagus Widhyasmara" +print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" +print" " +name = raw_input("Masukan nama anda : ") +print("Selamat datang "+name) +perlin = raw_input("silahkan ketik perintah linux apapun! ") +os.system(perlin) +print("{flag=you_get_the_flag}") + + From c81fb7c6399fe175237b731a38d1b8c4abbbd851 Mon Sep 17 00:00:00 2001 From: letmein Date: Sun, 21 Oct 2018 18:07:24 +0800 Subject: [PATCH 20/29] soal pwn fix --- .../ingin_melompat2 | Bin 0 -> 10864 bytes .../{return.c => ingin_melompat2.c} | 9 +++- ku-ingin-lompat-sambil-jumping/return | Bin 7832 -> 0 bytes ku-ingin-melompat/ingin_melompat | Bin 0 -> 10648 bytes .../{return.c => ingin_melompat.c} | 9 ++++ ku-ingin-melompat/return | Bin 7648 -> 0 bytes service-diary/buffer32 | Bin 10064 -> 0 bytes service-diary/buffer64 | Bin 15512 -> 0 bytes service-diary/diary32 | Bin 0 -> 14376 bytes service-diary/{buffer32.c => diary32.c} | 37 +++++++++------- service-diary/diary64 | Bin 0 -> 15784 bytes service-diary/{buffer64.c => diary64.c} | 40 +++++++++++------- 12 files changed, 63 insertions(+), 32 deletions(-) create mode 100755 ku-ingin-lompat-sambil-jumping/ingin_melompat2 rename ku-ingin-lompat-sambil-jumping/{return.c => ingin_melompat2.c} (87%) delete mode 100755 ku-ingin-lompat-sambil-jumping/return create mode 100755 ku-ingin-melompat/ingin_melompat rename ku-ingin-melompat/{return.c => ingin_melompat.c} (85%) delete mode 100755 ku-ingin-melompat/return delete mode 100755 service-diary/buffer32 delete mode 100755 service-diary/buffer64 create mode 100755 service-diary/diary32 rename service-diary/{buffer32.c => diary32.c} (75%) create mode 100755 service-diary/diary64 rename service-diary/{buffer64.c => diary64.c} (76%) diff --git a/ku-ingin-lompat-sambil-jumping/ingin_melompat2 b/ku-ingin-lompat-sambil-jumping/ingin_melompat2 new file mode 100755 index 0000000000000000000000000000000000000000..6124634f6e0c1fe6e7ba54fc77c1146481dcb333 GIT binary patch literal 10864 zcmd5?Ym^+tb*`Sr?(Aqa8m$&RK!%oBfiT+HhlC^^i?n)+NMbD{KwxOi&h&1Nc3#YM zOIq20@E}-OEXX;S5Stj}oC6_n9LENNA>jxlz>AX{LhQh?ePTF>FaqL(gOQc+n0#MV z_ik&zPVz4$-KqNSy>+YVR(02{>b-gOhBca|2`>diP!Q?2g(8cPpKMc-MM4)%V!k+A z%oPn_QMPC=bU->PkV4>*f}kzHTW$$ONYj8xlz}Y?nGmQ;8i@%(3X>OC^5!W*G~XYJ zkk+Bn2#D=c9zfO#c`Ib3Dlmz1uMZaVEwoKq1wP4>^}S`MA7~chfjdGGQW`RnC;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n9k$q)5+((W&GWY;yVwv=9kY|tkrw+Z%USp8a9@8O^r^h%3U*N{SFH!DQ zdC1kHU%3B{KyN02n>@Y00;WBR829n-*3zyHGf(gDQ19*TS*u!1I#Vzu$o2=`sFW2R(IqQkveFeh0|**)HSOEznz}ROGMjmOn;Ldz~(( z9@o8>C?kdO!`w?ZK~MJpa!=M;r}rJ`E$}+!)6?tpUcwRVLeGd#FHxr##8K?B&(XWc z)$_)&5f9G|9K4%Y#UtNx6NgV1;xL|(Igs-m#jc{u@|pBi7khQceGJ-S;z`rT7Jq%V M5UV{QWM1*V0lf(&iU0rr literal 0 HcmV?d00001 diff --git a/ku-ingin-lompat-sambil-jumping/return.c b/ku-ingin-lompat-sambil-jumping/ingin_melompat2.c similarity index 87% rename from ku-ingin-lompat-sambil-jumping/return.c rename to ku-ingin-lompat-sambil-jumping/ingin_melompat2.c index a727a83..9a8df08 100644 --- a/ku-ingin-lompat-sambil-jumping/return.c +++ b/ku-ingin-lompat-sambil-jumping/ingin_melompat2.c @@ -1,15 +1,20 @@ +//gcc -g -no-pie -fno-stack-protector -fno-pic -fno-builtin -mpreferred-stack-boundary=2 -m32 ingin_melompat2.c -o ingin_melompat2 #include #include #include #include - int wallet = 18; char burung[8]; void secret_message(){ system("/bin/sh"); } +void init(){ +setvbuf(stdin, NULL, _IONBF, 0); +setvbuf(stdout, NULL, _IONBF, 0); +setvbuf(stderr, NULL, _IONBF, 0); +} void buy_flag(){ if(wallet < 999999999999) printf("kamu terlalu lemah dude :)\n"); else secret_message(); @@ -18,6 +23,7 @@ void jual_burung(){ char buffer[64]; getchar(); printf("burung apa yang kamu mau jual ?\n"); + fflush(stdout); fgets(buffer, sizeof(buffer), stdin); printf("yang kamu jual : "); printf(buffer); @@ -46,6 +52,7 @@ int main() { while(1){ char pilihan; + init(); menu(); printf(">>"); fflush(stdout); diff --git a/ku-ingin-lompat-sambil-jumping/return b/ku-ingin-lompat-sambil-jumping/return deleted file mode 100755 index 7adb17af7c59d3443d373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D9xN*8ZL!+PtRpVB#oFe(zRw|lZi0iMmXj~7<0y( z5^)hB!nX@UMB+nf__IsI;8L;+v2_A*b~(@>Locas6WOFGB674MAR_}AK$8(+gii@{ zGIF6rbi;Wrj5u7l$Tqbf5Zl6~Q9(47h@tX~NzZ5+7hD8mCL(xBdAa~k@3RJAf-fz2 zq#c+@_h(!>+SixUcex0Eu%f#(2FrcF{9j5&1bpT4wIu)U2f&U}Y-{&*d?g^GFY3v^ z&w)S%?Iynem|BrtJ;r^9pw}QJ_K&OA4R{{+pY+Fg@M-ArGRKYpar6hxycwBM8}%3` zz74%FG9yD2QioC4t;mcnsmD9qb0D4q?I!9nZAa$)EA<#x9*5C<&~CltGY=y3zLqrO z%~Q~0`^xJD6!#!A>ZBg;e0f!(f_D9}4}5tKBU5h;G2Z9gFm3})J=}oEeo&A1Z)_{; z;d_4v^sWT$Ci-JKi0tYyo;?P^CJ+`_ zu~?S5PRjHmQ}jN-$Chh9M{l{K=l0`rJUn-@^G>3Po4KakwC7SG_F+xW1B34 #include #include @@ -9,6 +10,13 @@ char burung[8]; void secret_message(){ system("/bin/sh"); } + +void init(){ +setvbuf(stdin, NULL, _IONBF, 0); +setvbuf(stdout, NULL, _IONBF, 0); +setvbuf(stderr, NULL, _IONBF, 0); +} + void buy_flag(){ if(wallet < 999999999999) printf("kamu terlalu lemah dude :)\n"); else secret_message(); @@ -34,6 +42,7 @@ int main() { while(1){ char pilihan; + init(); menu(); printf(">>"); fflush(stdout); diff --git a/ku-ingin-melompat/return b/ku-ingin-melompat/return deleted file mode 100755 index 391d33be6c5951106d8e2b76d12f9a382250cc11..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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;Y1ny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`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 diff --git a/service-diary/buffer32 b/service-diary/buffer32 deleted file mode 100755 index 62edae428a97d47ddb4c7874077761bd27e8e1fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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<&$GaqbH^goEiV|XDI%~)cD`XeduA?zk`}Doedm# z`KAB5%sBZ^XI<+>Y3o&YfwUDJP{v-B#>U+%XyZUJ&&G(zwH+3oQo71*b z34K{ie^)8X6+7Wu;)&btxc%1Y1sL?6slyAg$xk&N%(N{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fDrwfA zp)y0I9&?=NMfCmyat@n%%zgNGN7Eh;jkLx1J%-BRP>(t3xr^9iU#%x|BLub`JYDqo zm^*1b<|ysZqaR)LoPG%g`SieoAD3DK{GkZJP&0CfHy=l}o! diff --git a/service-diary/buffer64 b/service-diary/buffer64 deleted file mode 100755 index ccfa0aeeecd25f2ed3c0214e1ceeb8185676e06a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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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jf#$J(g==~?;oHq3s zlkxAVMqD0;EK#!0wE>zNgL zU9<6uR12Z2o6!oreRG8PFKx`DccrVR*KyBW #include #include @@ -6,6 +7,11 @@ void not_even_called(){ puts("\nWelcome Garuda Muda\n"); system("/bin/sh"); } +void init(){ +setvbuf(stdin, NULL, _IONBF, 0); +setvbuf(stdout, NULL, _IONBF, 0); +setvbuf(stderr, NULL, _IONBF, 0); +} void tulisan(){ puts("██████╗ ██╗ █████╗ ██████╗ ██╗ ██╗ ███████╗███████╗██████╗ ██╗ ██╗██╗ ██████╗███████╗"); @@ -18,23 +24,24 @@ puts("╚═════╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ int main() { - char a[4]; - int b; - char c[16]; +init(); +char a[4]; +int b; +char c[16]; - strcpy(a,"KSL"); - b = 14045; +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); - } +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/diary64 b/service-diary/diary64 new file mode 100755 index 0000000000000000000000000000000000000000..3b2165be3ad8628c80e1f61860c9579b3cb53db1 GIT binary patch literal 15784 zcmeHOdvILUc|Uh|wOXyL)!Ony#s*&}HZc#aBx4)#FkVTvS%Cou%fxMBuJ>^zZM@pu z?%ov=oq&l6SOZQ)iowG`QRoDiOgiI9Q^uqX7C3{QOxikaGI5(iDXCMrgvJShI03Bw zzVo>6K768FLsW2zo|mB&4M;mLDEW1H1kmM)az@eR0%nS;780$KIzggR z67=+ZAu7t4&H?hHwuUd^BIq8@D7s6wV^UJ(Mj30pQ2J^ z?U{69!@BlNsx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?8JBMcD~ycKttx!s&1CXLaGROF2ra>R0raz@7eToxMvJ4z=o+;n=%iD3)sfK79{Y z4e6ZlGpB+RR|(tD@4-?19X28u<$t*gCtE6tdci1OXvFm^x}fg3ZrcSl{9lp&ud9xU zaI@;Vq=x_GD&erzRiR5{^q$C#k>}4>3xD@U-fc_oObB!L^US5f|E#*Pg=p8M;t+M2 zaLZGd2?zccWnguDs17x6)b9^{O}J771b>f5KddOvxq_>Dg_iaZ)&2kdDq+# #include #include @@ -7,6 +8,12 @@ void not_even_called(){ system("/bin/sh"); } +void init(){ +setvbuf(stdin, NULL, _IONBF, 0); +setvbuf(stdout, NULL, _IONBF, 0); +setvbuf(stderr, NULL, _IONBF, 0); +} + void tulisan(){ puts("██████╗ ██╗ █████╗ ██████╗ ██╗ ██╗ ███████╗███████╗██████╗ ██╗ ██╗██╗ ██████╗███████╗"); puts("██╔══██╗██║██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔════╝██╔════╝██╔══██╗██║ ██║██║██╔════╝██╔════╝"); @@ -18,23 +25,24 @@ puts("╚═════╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ int main() { - char a[4]; - int b; - char c[64]; +init(); +char a[4]; +int b; +char c[64]; - strcpy(a,"KSL"); - b = 14045; +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); +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); } From 985d771edd7b706f39a4966e621acf06ff71ecf0 Mon Sep 17 00:00:00 2001 From: paulussimanjuntak Date: Mon, 22 Oct 2018 19:17:27 +0800 Subject: [PATCH 21/29] ping-service --- ping-service/Dockerfile | 31 ++++++++++++++++++++++++ ping-service/README.md | 1 - ping-service/{ => chall}/ping-service.py | 0 ping-service/start.sh | 4 --- 4 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 ping-service/Dockerfile delete mode 100644 ping-service/README.md rename ping-service/{ => chall}/ping-service.py (100%) delete mode 100755 ping-service/start.sh diff --git a/ping-service/Dockerfile b/ping-service/Dockerfile new file mode 100644 index 0000000..7d2df0d --- /dev/null +++ b/ping-service/Dockerfile @@ -0,0 +1,31 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken + +# install socat editor ssh +RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{U14RZ_M4M4NXX_KERENZX_4ANEETTT!!}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/ping-service.py # ubah nama file +RUN chmod 775 /chall/ping-service.py # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/ping-service.py,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] diff --git a/ping-service/README.md b/ping-service/README.md deleted file mode 100644 index eb74650..0000000 --- a/ping-service/README.md +++ /dev/null @@ -1 +0,0 @@ -ping-service.py diff --git a/ping-service/ping-service.py b/ping-service/chall/ping-service.py similarity index 100% rename from ping-service/ping-service.py rename to ping-service/chall/ping-service.py diff --git a/ping-service/start.sh b/ping-service/start.sh deleted file mode 100755 index 7c75a88..0000000 --- a/ping-service/start.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -#nc ip port - -socat TCP-LISTEN:5000,reuseaddr,fork EXEC:./ping-service.py From e8781a67a443b1ba53f51fd2f1428bd5334ca6ca Mon Sep 17 00:00:00 2001 From: galanggg Date: Mon, 22 Oct 2018 19:21:45 +0800 Subject: [PATCH 22/29] docker --- calc-pwn/Dockerfile | 31 +++++++++++++++++++++++++++++++ calc-pwn/{ => chall}/calc.py | 0 calc-pwn/server.sh | 3 --- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 calc-pwn/Dockerfile rename calc-pwn/{ => chall}/calc.py (100%) delete mode 100755 calc-pwn/server.sh diff --git a/calc-pwn/Dockerfile b/calc-pwn/Dockerfile new file mode 100644 index 0000000..6e01cdd --- /dev/null +++ b/calc-pwn/Dockerfile @@ -0,0 +1,31 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken + +# install socat editor ssh +RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{EVAL_4_LYFE}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/calc.py # ubah nama file +RUN chmod 775 /chall/calc.py # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/calc.py,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] diff --git a/calc-pwn/calc.py b/calc-pwn/chall/calc.py similarity index 100% rename from calc-pwn/calc.py rename to calc-pwn/chall/calc.py diff --git a/calc-pwn/server.sh b/calc-pwn/server.sh deleted file mode 100755 index bcd2d57..0000000 --- a/calc-pwn/server.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -socat TCP-LISTEN:5000,reuseaddr,fork EXEC:./calc2.py \ No newline at end of file From 646c1d66522205bb730957e7e95ab790a1fa462b Mon Sep 17 00:00:00 2001 From: letmein Date: Mon, 22 Oct 2018 20:01:18 +0800 Subject: [PATCH 23/29] + docker file --- ku-ingin-lompat-sambil-jumping/Dockerfile | 38 ++++++++++++++++++ .../{ => chall}/ingin_melompat2 | Bin 10864 -> 10864 bytes .../ingin_melompat2.c | 4 +- ku-ingin-melompat/Dockerfile | 38 ++++++++++++++++++ ku-ingin-melompat/{ => chall}/ingin_melompat | Bin service-diary/diary32bit/Dockerfile | 38 ++++++++++++++++++ service-diary/{ => diary32bit/chall}/diary32 | Bin service-diary/{ => diary32bit}/diary32.c | 0 service-diary/diary64bit/Dockerfile | 38 ++++++++++++++++++ service-diary/{ => diary64bit/chall}/diary64 | Bin service-diary/{ => diary64bit}/diary64.c | 0 11 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 ku-ingin-lompat-sambil-jumping/Dockerfile rename ku-ingin-lompat-sambil-jumping/{ => chall}/ingin_melompat2 (84%) create mode 100644 ku-ingin-melompat/Dockerfile rename ku-ingin-melompat/{ => chall}/ingin_melompat (100%) create mode 100644 service-diary/diary32bit/Dockerfile rename service-diary/{ => diary32bit/chall}/diary32 (100%) rename service-diary/{ => diary32bit}/diary32.c (100%) create mode 100644 service-diary/diary64bit/Dockerfile rename service-diary/{ => diary64bit/chall}/diary64 (100%) rename service-diary/{ => diary64bit}/diary64.c (100%) diff --git a/ku-ingin-lompat-sambil-jumping/Dockerfile b/ku-ingin-lompat-sambil-jumping/Dockerfile new file mode 100644 index 0000000..8cce19c --- /dev/null +++ b/ku-ingin-lompat-sambil-jumping/Dockerfile @@ -0,0 +1,38 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +#RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken +#RUN apt-get update +#RUN apt-get update && apt-get install -y apt-transport-https +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.2.0 HDP main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu14 HDP-UTILS main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/azurecore/ trusty main' >> /etc/apt/sources.list.d/azure-public-trusty.list + +# install socat editor ssh +#RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y +#RUN apt-get install socat lib32ncurses5 -y +RUN apt-get update && apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{Welc0me_t0_PWn_W0rLd!1!}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/ingin_melompat2 # ubah nama file +RUN chmod 775 /chall/ingin_melompat2 # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/ingin_melompat2,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] diff --git a/ku-ingin-lompat-sambil-jumping/ingin_melompat2 b/ku-ingin-lompat-sambil-jumping/chall/ingin_melompat2 similarity index 84% rename from ku-ingin-lompat-sambil-jumping/ingin_melompat2 rename to ku-ingin-lompat-sambil-jumping/chall/ingin_melompat2 index 6124634f6e0c1fe6e7ba54fc77c1146481dcb333..790665cf30f2d1f6f744311cb92b94d1841a2237 100755 GIT binary patch delta 509 zcmewm@*!kG3u_M_14GZm&V0@#JPZs=dRRD?OlD-9E@BoCb*0iUai8H?ugpWgDxd9P zk6ONY4dWX&)9P*(ju-uZ{{L@2!jdrq#A$+Zc7r&jP|j%(Cj-j4Gx;osJmb^JZ#m=` zUrgrVRAlU#tj8(E_km1_p+lpa1`F0n&SbbPbT6^y~ls6F_0t!HE z0K``&TkD*C%fTlBXtL1d=(EKLW|)lLh&t z86Qm6<@09!0<@KBb0c3cuOKL@K!z|g2!bdEj?GV{>lqn4Ca22!GcMV@RrWe3qs-)9 Yb$M1uq;6DKX65K*;o#VOQ++xU03i^`J^%m! delta 518 zcmewm@*!kG3u^}-14GBe&V0@VJPZsAdRRCXOlD-9F7ny`ueryWl@&@&^Tk%aTj0FI zeQW*ZHH>fAOe?xsI9~Ms`TxK92usEk5T^;s*$(2ALOI7loD3-E#^kdc@{A8BzvYl) zd@`AbQ<1S_vL2@to}z~JwP&X zU>T0rdKqybu0KR!7Q>6JK-R(pkm{<bteaMOLAL+ zfkIJfQsv|dZu!kKxFr|^3x53nKY@XPq2TBL|673c0U%uiq^JG*|NjJ#UJ0aM0O{92 znuC#n;UAFJ0MZA5R(b$wYoPZsfONs%|NmQn^o7Zcyy~JhKvS52xJc`A^+J$WmTJU96&kSv(|l~-Q&G|&!xpjix#d>pMzPQ0u@ zrUwwK0L7k6HsteW{4u$fuYd9cK9L2(9@XJBR!1W^nuo1aS8GcvYJPL=g% jT(Eho>~&5?iOId{@~n{9-Keh2%F@fi!Ls?L`gA4$dcDYp diff --git a/ku-ingin-lompat-sambil-jumping/ingin_melompat2.c b/ku-ingin-lompat-sambil-jumping/ingin_melompat2.c index 9a8df08..18ef5f8 100644 --- a/ku-ingin-lompat-sambil-jumping/ingin_melompat2.c +++ b/ku-ingin-lompat-sambil-jumping/ingin_melompat2.c @@ -38,9 +38,9 @@ void jual_burung(){ } void menu(){ printf("+--------------------------------+\n"); - printf("------------PASAR BURUNG----------\n"); + printf("---------PASAR BURUNG 2.0---------\n"); printf("+--------------------------------+\n"); - printf("1. beli flag (999999 ruby)\n"); + printf("1. beli flag (sawit 1 hektar)\n"); printf("2. beli garuda (10 ruby)\n"); printf("3. lihat burung yang udah di beli\n"); printf("4. jual burung\n"); diff --git a/ku-ingin-melompat/Dockerfile b/ku-ingin-melompat/Dockerfile new file mode 100644 index 0000000..fcad5f4 --- /dev/null +++ b/ku-ingin-melompat/Dockerfile @@ -0,0 +1,38 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +#RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken +#RUN apt-get update +#RUN apt-get update && apt-get install -y apt-transport-https +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.2.0 HDP main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu14 HDP-UTILS main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/azurecore/ trusty main' >> /etc/apt/sources.list.d/azure-public-trusty.list + +# install socat editor ssh +#RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y +#RUN apt-get install socat lib32ncurses5 -y +RUN apt-get update && apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{W1th_R3turn_Y0U_C4n_Ch4nges_w0RlD}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/ingin_melompat # ubah nama file +RUN chmod 775 /chall/ingin_melompat # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/ingin_melompat,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] diff --git a/ku-ingin-melompat/ingin_melompat b/ku-ingin-melompat/chall/ingin_melompat similarity index 100% rename from ku-ingin-melompat/ingin_melompat rename to ku-ingin-melompat/chall/ingin_melompat diff --git a/service-diary/diary32bit/Dockerfile b/service-diary/diary32bit/Dockerfile new file mode 100644 index 0000000..20a157e --- /dev/null +++ b/service-diary/diary32bit/Dockerfile @@ -0,0 +1,38 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +#RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken +#RUN apt-get update +#RUN apt-get update && apt-get install -y apt-transport-https +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.2.0 HDP main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu14 HDP-UTILS main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/azurecore/ trusty main' >> /etc/apt/sources.list.d/azure-public-trusty.list + +# install socat editor ssh +#RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y +#RUN apt-get install socat lib32ncurses5 -y +RUN apt-get update && apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{Y0u_N0w_H0w_contr0l_St4cK!1!1}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/diary32 # ubah nama file +RUN chmod 775 /chall/diary32 # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/diary32,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] diff --git a/service-diary/diary32 b/service-diary/diary32bit/chall/diary32 similarity index 100% rename from service-diary/diary32 rename to service-diary/diary32bit/chall/diary32 diff --git a/service-diary/diary32.c b/service-diary/diary32bit/diary32.c similarity index 100% rename from service-diary/diary32.c rename to service-diary/diary32bit/diary32.c diff --git a/service-diary/diary64bit/Dockerfile b/service-diary/diary64bit/Dockerfile new file mode 100644 index 0000000..1d4df85 --- /dev/null +++ b/service-diary/diary64bit/Dockerfile @@ -0,0 +1,38 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +#RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken +#RUN apt-get update +#RUN apt-get update && apt-get install -y apt-transport-https +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.2.0 HDP main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb http://private-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu14 HDP-UTILS main' >> /etc/apt/sources.list.d/HDP.list +#RUN echo 'deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/azurecore/ trusty main' >> /etc/apt/sources.list.d/azure-public-trusty.list + +# install socat editor ssh +#RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y +#RUN apt-get install socat lib32ncurses5 -y +RUN apt-get update && apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN echo 'KSL{Y0u_N0w_H0w_contr0l_St4cK!1!1}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /var/tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python + + +RUN chown root:ksl /chall/diary64 # ubah nama file +RUN chmod 775 /chall/diary64 # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:7000,reuseaddr,fork EXEC:"/chall/diary64,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] diff --git a/service-diary/diary64 b/service-diary/diary64bit/chall/diary64 similarity index 100% rename from service-diary/diary64 rename to service-diary/diary64bit/chall/diary64 diff --git a/service-diary/diary64.c b/service-diary/diary64bit/diary64.c similarity index 100% rename from service-diary/diary64.c rename to service-diary/diary64bit/diary64.c From 3a9c3673cc137b81450c509b1f3ed060e3d7b4cb Mon Sep 17 00:00:00 2001 From: Candra Date: Mon, 22 Oct 2018 20:45:35 +0800 Subject: [PATCH 24/29] Upload files to 'Service Agent' --- Service Agent/Service Agent.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Service Agent/Service Agent.rb diff --git a/Service Agent/Service Agent.rb b/Service Agent/Service Agent.rb new file mode 100644 index 0000000..6ec0bec --- /dev/null +++ b/Service Agent/Service Agent.rb @@ -0,0 +1,20 @@ +#!/usr/bin/ruby + +puts "================================================================================================================================================================================================" +puts "=============================================================================SELAMAT DATANG DI PORTAL RAHASIA===================================================================================" +puts "================================================================================================================================================================================================" +print "Masukan Kode Rahasia Agen: " +code = gets.chomp + +if code == "KSL_SECRET_TEAM007" then + puts "================================================================================================================================================================================================" + puts "==========================================================Selamat datang agen KSL, ini adalah sesi control panel anda. Gunakan dengan bijak!====================================================" + puts "================================================================================================================================================================================================" + print "Enter Secret Command : " + sc = gets.chomp + system("#{sc}") +else + abort "Maaf Kode yang anda salah!" +end + + From df75d4e84105de015b41328ef17f8b82f0d49ba0 Mon Sep 17 00:00:00 2001 From: Candra Date: Mon, 22 Oct 2018 21:01:17 +0800 Subject: [PATCH 25/29] Delete 'Service Agent/Service Agent.rb' --- Service Agent/Service Agent.rb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 Service Agent/Service Agent.rb diff --git a/Service Agent/Service Agent.rb b/Service Agent/Service Agent.rb deleted file mode 100644 index 6ec0bec..0000000 --- a/Service Agent/Service Agent.rb +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/ruby - -puts "================================================================================================================================================================================================" -puts "=============================================================================SELAMAT DATANG DI PORTAL RAHASIA===================================================================================" -puts "================================================================================================================================================================================================" -print "Masukan Kode Rahasia Agen: " -code = gets.chomp - -if code == "KSL_SECRET_TEAM007" then - puts "================================================================================================================================================================================================" - puts "==========================================================Selamat datang agen KSL, ini adalah sesi control panel anda. Gunakan dengan bijak!====================================================" - puts "================================================================================================================================================================================================" - print "Enter Secret Command : " - sc = gets.chomp - system("#{sc}") -else - abort "Maaf Kode yang anda salah!" -end - - From df2ba48ab14d927447b9f2e94fe39246731f0bd0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Oct 2018 21:43:50 +0800 Subject: [PATCH 26/29] Service Agent --- Service Agent/Service Agent.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 Service Agent/Service Agent.rb diff --git a/Service Agent/Service Agent.rb b/Service Agent/Service Agent.rb new file mode 100755 index 0000000..6ec0bec --- /dev/null +++ b/Service Agent/Service Agent.rb @@ -0,0 +1,20 @@ +#!/usr/bin/ruby + +puts "================================================================================================================================================================================================" +puts "=============================================================================SELAMAT DATANG DI PORTAL RAHASIA===================================================================================" +puts "================================================================================================================================================================================================" +print "Masukan Kode Rahasia Agen: " +code = gets.chomp + +if code == "KSL_SECRET_TEAM007" then + puts "================================================================================================================================================================================================" + puts "==========================================================Selamat datang agen KSL, ini adalah sesi control panel anda. Gunakan dengan bijak!====================================================" + puts "================================================================================================================================================================================================" + print "Enter Secret Command : " + sc = gets.chomp + system("#{sc}") +else + abort "Maaf Kode yang anda salah!" +end + + From 3693e8bc2b026c4d8287270ebe50eaa08bac3b58 Mon Sep 17 00:00:00 2001 From: OkaAditya Date: Tue, 23 Oct 2018 16:33:39 +0800 Subject: [PATCH 27/29] Update 'Kepala/header.rb' --- Kepala/header.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Kepala/header.rb b/Kepala/header.rb index edf471d..f4749b8 100644 --- a/Kepala/header.rb +++ b/Kepala/header.rb @@ -3,6 +3,10 @@ puts "By: Oka Aditya" print "Masukan Alamat Web : " url = gets.chomp -puts "Silakan mengunjungi link di bawah untuk mendapatkan headernya" +if url.include? "|" or url.include? "&&" or url.include "||" + abort "Hacking Detected" -system("curl -I -s #{url} | curl -F 'clbin=<-' https://clbin.com") +else + puts "Silakan mengunjungi link di bawah untuk mendapatkan headernya" + system("curl -I -s #{url} | curl -F 'clbin=<-' https://clbin.com") +end From 6e0c50e620655cb7f7c5ac480e10375f2dff9ab5 Mon Sep 17 00:00:00 2001 From: OkaAditya Date: Wed, 24 Oct 2018 19:09:47 +0800 Subject: [PATCH 28/29] Upload files to 'Kepala' --- Kepala/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Kepala/Dockerfile diff --git a/Kepala/Dockerfile b/Kepala/Dockerfile new file mode 100644 index 0000000..95099a0 --- /dev/null +++ b/Kepala/Dockerfile @@ -0,0 +1,33 @@ +# Use ubuntu 16.04 +FROM ubuntu:16.04 + +RUN apt-get update && apt-get -y dist-upgrade --fix-missing --fix-broken + +# install socat editor ssh +RUN apt-get install curl netcat-openbsd vim nano openssh-server socat lib32ncurses5 python python-pip python-dev ruby-full -y + +RUN adduser --disabled-password --gecos "" ksl +RUN echo "ksl:sebuahrahasiamas" | chpasswd + +ADD chall/. /chall +WORKDIR /chall + +RUN cp /usr/bin/ruby /usr/local/bin/ +RUN cp /usr/bin/curl /usr/local/bin/ +RUN echo 'KSL{n0T_0nLy_p1P3_L1n3_C4n_D0_Th4T}' > /chall/flag.txt # ubah isi flagnya + +# Secure ENV + +RUN echo 'alias kill="echo no kill please!"' >> ~/.bashrc +RUN chmod 700 /tmp /usr/bin/* /bin/* /dev/shm +RUN chmod 755 /usr/bin/env /bin/dash /bin/bash /bin/sh /bin/nc /bin/cat /usr/bin/curl /usr/bin/groups /usr/bin/id /bin/ls /usr/bin/python /usr/bin/ruby + + +RUN chown root:ksl /chall/header.rb # ubah nama file +RUN chmod 775 /chall/header.rb # ubah nama file + +# Run Service + +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:5550,reuseaddr,fork EXEC:"/chall/header.rb,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh + +CMD ["/var/tmp/.start.sh"] From d87a19ce85a679058e7eeec9299a5c7b592c9ae4 Mon Sep 17 00:00:00 2001 From: bagushehe Date: Wed, 24 Oct 2018 22:01:38 +0800 Subject: [PATCH 29/29] Upload files to 'perintah_linux' --- perintah_linux/aa.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 perintah_linux/aa.py diff --git a/perintah_linux/aa.py b/perintah_linux/aa.py new file mode 100644 index 0000000..ca9c28e --- /dev/null +++ b/perintah_linux/aa.py @@ -0,0 +1,41 @@ +#!/usr/bin/python + +import sys +import os + +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def writelines(self, datas): + self.stream.writelines(datas) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) + +sys.stdout = Unbuffered(sys.stdout) +print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$" +print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$" +print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$" +print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$" +print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$" +print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$" +print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$" +print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/" +print" Author : Bagus Widhyasmara" +print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>" +print" " +print "clue --> The 3rd answer can be read use indonesian and english language !" +name = raw_input("Masukan nama anda : ") +print("Selamat datang "+name) +while True: + x = raw_input("enter your born place ") + y = input("enter your bornn year ") + z = input("how many letters o on born ? ") + if z == 1: + perlin = raw_input("silahkan ketik perintah linux apapun! ") + os.system(perlin) + exit(0) +