Skip to content
/ webwrap Public

🌯 Give me a web shell, I'll give you a terminal.

Notifications You must be signed in to change notification settings

mxrch/webwrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delicious Wrap

Description

Webwrap is a simple script that will use your web shell to simulate a terminal, and makes you gain speed.

Features

  • Naviguate in the file system as if you were in it, using cd
  • You can use &&, |, everything you like
  • Browse your commands history and re-use them (not really a feature, it uses rlwrap)

Usage

Just replace your cmd field with "WRAP".

With the quick install :

$ webwrap http://<LINK>/my_verycool_webshell.php?cmd=WRAP

Not quick install :

$ rlwrap python3 webwrap.py http://<LINK>/my_verycool_webshell.php?cmd=WRAP
  • Just remove the rlwrap from the command if you didn't install it.
  • On Windows, remove rlwrap and replace python3 by py.

Installation

Please use Python 3, I don't know how it looks on Python 2.

Linux (Quick install)

curl -s https://raw.githubusercontent.com/mxrch/webwrap/master/install.sh | sudo sh

Linux (normal install)

git clone https://github.com/mxrch/webwrap;
cd webwrap;
python3 -m pip install -r requirements.txt

(Optional) You can also install rlwrap :

sudo apt install rlwrap

It will give you the ability to reuse your commands through the commands history.

Windows

git clone https://github.com/mxrch/webwrap;
cd webwrap;
py -m pip install -r requirements.txt

Credits

Thanks Hexabeast for the idea.
You can find his wrapper here : https://gist.github.com/hexabeast/fb6b5cf0cd4a51ca93fa300c9bb7a3e2