---
title: "2a. Questions for dynamic portfwd and socks"
date: 2024-08-24
draft: false
---

SSH to 10.129.41.152 (ACADEMY-PIVOTING-LINUXPIV) with user "ubuntu" and password "HTB_@cademy_stdnt!"
```bash
You have successfully captured credentials to an external facing Web Server. Connect to the target and list the network interfaces. How many network interfaces does the target web server have? (Including the loopback interface)
```

just run ifconfig
3

# rdp with ssh dynamic port forward
```bash
 Apply the concepts taught in this section to pivot to the internal network and use RDP (credentials: victor:pass@123) to take control of the Windows target on 172.16.5.19. Submit the contents of Flag.txt located on the Desktop.
```

```bash
┌──(root㉿kali)-[~]
└─# ssh -D 9050 ubuntu@10.129.41.152
ubuntu@10.129.41.152's password:

┌──(root㉿kali)-[~/…/attacking-common/hard-assessment/IT/John]
└─# tail -4 /etc/proxychains.conf
# add proxy here ...
# meanwile
# defaults set to "tor"
socks4  127.0.0.1 9050

┌──(root㉿kali)-[~/…/attacking-common/hard-assessment/IT/John]
└─# proxychains xfreerdp /u:victor /p:'pass@123' /v:172.16.5.19

```
