Skip to content

Commit 08bf120

Browse files
committed
HackPack 2020 challs
1 parent 1bc12fc commit 08bf120

File tree

11 files changed

+44
-0
lines changed

11 files changed

+44
-0
lines changed

HackPack/2020/bookworm/bookworm

12.9 KB
Binary file not shown.

HackPack/2020/bookworm/libc.so.6

1.94 MB
Binary file not shown.

HackPack/2020/climb/climb

8.41 KB
Binary file not shown.

HackPack/2020/jsclean/jsclean.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import os
2+
import sys
3+
import subprocess
4+
5+
6+
def main(argv):
7+
print("Welcome To JavaScript Cleaner")
8+
js_name = input("Enter Js File Name To Clean: ")
9+
code = input("Submit valid JavaScript Code: ")
10+
11+
js_name = os.path.basename(js_name) # No Directory Traversal for you
12+
13+
if not ".js" in js_name:
14+
print("No a Js File")
15+
return
16+
17+
with open(js_name,'w') as fin:
18+
fin.write(code)
19+
20+
p = subprocess.run(['/usr/local/bin/node','index.js','-f',js_name],stdout=subprocess.PIPE);
21+
print(p.stdout.decode('utf-8'))
22+
23+
main(sys.argv)

HackPack/2020/mousetrap/mousetrap

8.62 KB
Binary file not shown.

HackPack/2020/riskv_business/pwnme

437 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

HackPack/2020/toddler_cache/run.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
VERSION="./glibc_versions"
4+
VER="2.26"
5+
TARGET="./toddler_cache"
6+
7+
curr_interp=$(readelf -l "$TARGET" | grep 'Requesting' | cut -d':' -f2 | tr -d ' ]')
8+
target_interp="$VERSION/ld-$VER.so"
9+
10+
if [[ $curr_interp != $target_interp ]];
11+
then
12+
patchelf --set-interpreter "$target_interp" "$TARGET"
13+
fi
14+
15+
LD_PRELOAD="$VERSION/libc-$VER.so" "$TARGET"
16.8 KB
Binary file not shown.

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ Collection of CTF pwn challenges.
22

33
| CTF | Challenge | Links |
44
|:--------------------------:|:-----------:|:--------------:|
5+
| [HackPack 2020](HackPack/2020) | [bookworm](HackPack/2020/bookworm) | [CTFtime](https://ctftime.org/event/1036)<br>[Writeups](https://ctftime.org/event/1036/tasks/) |
6+
| [HackPack 2020](HackPack/2020) | [climb](HackPack/2020/climb) | [CTFtime](https://ctftime.org/event/1036)<br>[Writeups](https://ctftime.org/event/1036/tasks/) |
7+
| [HackPack 2020](HackPack/2020) | [jsclean](HackPack/2020/jsclean) | [CTFtime](https://ctftime.org/event/1036)<br>[Writeups](https://ctftime.org/event/1036/tasks/) |
8+
| [HackPack 2020](HackPack/2020) | [mousetrap](HackPack/2020/mousetrap) | [CTFtime](https://ctftime.org/event/1036)<br>[Writeups](https://ctftime.org/event/1036/tasks/) |
9+
| [HackPack 2020](HackPack/2020) | [riskv_business](HackPack/2020/riskv_business) | [CTFtime](https://ctftime.org/event/1036)<br>[Writeups](https://ctftime.org/event/1036/tasks/) |
10+
| [HackPack 2020](HackPack/2020) | [toddler_cache](HackPack/2020/toddler_cache) | [CTFtime](https://ctftime.org/event/1036)<br>[Writeups](https://ctftime.org/event/1036/tasks/) |
511
| [IJCTF 2020](IJCTF/2020) | [built_in_http](IJCTF/2020/built_in_http) | [CTFtime](https://ctftime.org/event/1003)<br>[Writeups](https://ctftime.org/event/1003/tasks/) |
612
| [IJCTF 2020](IJCTF/2020) | [input_checker](IJCTF/2020/input_checker) | [CTFtime](https://ctftime.org/event/1003)<br>[Writeups](https://ctftime.org/event/1003/tasks/) |
713
| [IJCTF 2020](IJCTF/2020) | [admin](IJCTF/2020/admin) | [CTFtime](https://ctftime.org/event/1003)<br>[Writeups](https://ctftime.org/event/1003/tasks/) |

0 commit comments

Comments
 (0)