# Tunnel Cake Challenge

**URL:** <https://forums.cybrary.it/t/tunnel-cake-challenge/409396>\
**Category:** Penetration Tester\
**Created:** [February 21, 2025, 3:17pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396 "2025-02-21T15:17:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_shp](https://forums.cybrary.it/user_avatar/forums.cybrary.it/m_shp/32/11_2.png) [@M\_shp](https://forums.cybrary.it/u/M_shp)\
**Post date:** [February 21, 2025, 3:17pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396/1 "2025-02-21T15:17:25Z")

</div>

I’m working on “Tunnel Cake” and I’ve successfully stolen credentials. I have 2 questions:

1- I changed target’s password using “passwd” command. Did this lab expect us to retrieve the password in another way?

2- For the second part (Nested Tunnels) I’ve tried the commands below:

```
A: ssh -fN -L 2222:172.16.2.101:22 UserHostB@172.16.1.100 -i key
       ssh -fN -L 8888:127.0.0.1:8888 UserHostB@127.0.0.1 -i key -p 2222

B: ssh -fN -L 8888:127.0.0.1:8888 UserHostB172.16.1.100 ssh -L 8888:127.0.0.1:2222 -N 172.16.2.101
C: ssh -fN -L 8888:127.0.0.1:8888 UserHostB172.16.1.100 ssh -L 8888:127.0.0.1:2222 -N 172.16.2.101 -i key -p 2222

```

For B and C I got nothing. For the second part of A I got “permission denied”. I was wondering if you could tell me what’s wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![CalmQuail2332](https://forums.cybrary.it/user_avatar/forums.cybrary.it/calmquail2332/32/33622_2.png) [@CalmQuail2332](https://forums.cybrary.it/u/CalmQuail2332)\
**Post date:** [April 7, 2025, 7:40pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396/2 "2025-04-07T19:40:25Z")

</div>

Without giving too much away, the expected solution path looks something like this:

-Use nmap with a vulnerability scan to identify a vulnerable service running on target01.

-Use metasploit to locate a module related to the vulnerable service, then run that module against the vulnerable service to compromise target01.

-After running the exploit module, you should get root access to the target01, which will allow you to obtain the first flag.

-You should also find another user account. Some exploration of this account should reveal additional information that you can use to employ a nested tunnel strategy to access target02.

If you’re having trouble with the Challenge - it is admittedly a bit more complex than some of the others in the Penetration Tester Practice section - I would recommend moving on to a different one.

---

<div class="post-metadata">

**Author:** ![M\_shp](https://forums.cybrary.it/user_avatar/forums.cybrary.it/m_shp/32/11_2.png) [@M\_shp](https://forums.cybrary.it/u/M_shp)\
**Post date:** [April 9, 2025, 7:15pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396/3 "2025-04-09T19:15:10Z")

</div>

I want to understand the concept and how it works. here is my try on this challenge:

 ![Screenshot 2025-04-09 120807](https://forums.cybrary.it/uploads/default/original/3X/a/7/a74cf9288517f10fd80feafb3240a64f9963ba27.png)

---

<div class="post-metadata">

**Author:** ![CalmQuail2332](https://forums.cybrary.it/user_avatar/forums.cybrary.it/calmquail2332/32/33622_2.png) [@CalmQuail2332](https://forums.cybrary.it/u/CalmQuail2332)\
**Post date:** [April 9, 2025, 8:00pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396/4 "2025-04-09T20:00:57Z")

</div>

I’ll clarify this in the instructions, but “key” is intended to be a placeholder for an actual RSA private key (or the file containing the key) - not the word “key”.

You can get access to the private key by exploring the second user account discovered on target01. You will then need to extract the key to the kali machine.

---

<div class="post-metadata">

**Author:** ![M\_shp](https://forums.cybrary.it/user_avatar/forums.cybrary.it/m_shp/32/11_2.png) [@M\_shp](https://forums.cybrary.it/u/M_shp)\
**Post date:** [April 10, 2025, 1:45pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396/5 "2025-04-10T13:45:08Z")

</div>

Done!  
Thank you for your time and consideration!

---

<div class="post-metadata">

**Author:** ![JosephWhite](https://forums.cybrary.it/user_avatar/forums.cybrary.it/josephwhite/32/2407_2.png) [@JosephWhite](https://forums.cybrary.it/u/JosephWhite)\
**Post date:** [April 10, 2025, 2:47pm UTC](https://forums.cybrary.it/t/tunnel-cake-challenge/409396/6 "2025-04-10T14:47:05Z")

</div>


