Git Product home page Git Product logo

mrrobot's Introduction

mrrobot

Based on the Mr. Robot show, can you root this box? Can you root this Mr. Robot styled machine? This is a virtual machine meant for beginners/intermediate users. There are 3 hidden keys located on the machine, can you find them?

First I enumerated the ip

nmap -sV -A ip

The thing was found that was : invalid digital certificate . But I knew that it is used for valid source authetication and for data integrity. This was not much usefull for me.

and That was running wordpress website.

Then enumerated the direcrtory

dirsearch -u 10.10.24.186 -w /usr/share/wordlists/dirb/big.txt In between I gone through all the instruction which was available on the website one file was found but that was not much useful for me .

Found some directory :

 alt text

gone through everyone:

Found a base64 text in /license directory

Then decoded and tried for wp-login.php web directory and It was succesful.

Shell Spawning

In Themes section ,edited the file 404.php with php-reverse-shell file's content and turned on a listener nc -lvnp 1234.

Now to run that I went at this location https://10.10.24.186/wp-content/themes/twentyfifteen/404.php

Found a shell owned by daemon

Then went to /home/ directory and found /home/robot directory .In this folder two files were available but not accesible ,as they are owned by robot user.

So decided for privilege escalation.

I got the kernal version and serached for exploit then I found a kernal vulnerability for privilege escalation and found c code , run it but not worked.

Now transfered the linPeas.sh file in /tmp and run it.

Found some command for which suid was set one of them was nmap . alt text Then run /usr/local/bin/nmap --interactive

!sh

Hurray buddy you are root now!!

mrrobot's People

Contributors

chaurasiyag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.