Reverse shell that lets you connect to others computers through the shell when they run the client.
Urchin is a reverse shell that is writen in Python 2
. It uses socket
to send commands over the Internet. Urchin is a reverse-shell, meaning that a server can host a server and get the client to run the client script. The client will connect the user to the server, which will grant the server shell access to the client's computer.
Firstly, on any OS, you would navigate to https://github.com/keeganjk/urchin. Once on this page, click the button that says "Clone or Download" and then "Download as ZIP".
![]()
If you are on Unix (Linux, macOS, or BSD), you can typegit clone https://github.com/keeganjk/urchin
into the terminal to clone this repository and thenmv
into the directory. If you do this, skip to step 3.
Nextly, extract the ZIP file and then move into the
urchin
folder.
Navigate to Python Downloads and download
Python 2
for your OS.
To run
urchin.py
, the process is different depending on your operating system. On Windows:
- Click on
urchin.py
and Python will run it. On MacOS/Linux:- Open the terminal.
- Navigate to
urchin.py
- Type
chmod +x *
to allow ex
ecution of all files in the directory.- You will have to remove the
.py
extension or replace it with.command
.- You can run
urchin
by any of the below methods:
- Click on
urchin
- Run
./urchin
- Run
python urchin
Edit
client.py
. Find the line that sayshost = 127.0.0.1
. Replace127.0.0.1
with the server's IP Address.
After building the client, you will need to give it to a client. The client will need to have
Python 2
installed, unless you use the methods below:
If the client is using Windows:
1. Download and install py2exe.
2. Open CMD and run this command:python filename.py py2exe
3. Send EXE to client, put it in a ZIP file if you can't send an EXE.If the client is using MacOS:
1. Open the terminal and typechmod +x filename
2. Put the file in a folder
3. Open Disk Utility.
4. From the top menu, selectFile
>New Image
>Image from Folder...
5. A DMG will be generated.
6. Send it to your client.If the client is on Linux, you're just about out of luck on compilations. They'll have to
chmod
and run by themself.
Run
urchin
before the client runs the file. Once the client has connected, you will be notified and you will have a command prompt of$
. From here, you can enter commands to run on the client. Typequit
to close the connection.