You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automate converting webshells into reverse shells.
13
13
@@ -22,15 +22,16 @@ options:
22
22
--ip IP IP address of your own listener (skips listener setup if both IP and port are set)
23
23
--port PORT port of your own listener
24
24
--nc NC path to local nc binary
25
+
--verbose verbose command output
25
26
```
26
27
27
-
The only **required** flag is the `url.`
28
+
Providing an IP and port will cause the program to skip the listener setup and assume you already have netcat/a comparable listener running at that address.
28
29
29
30
Please note: this program currently is only intended to be used on and against Linux machines.
30
31
31
32
## Requirements
32
33
33
-
Install the required python modules with pip (`pip3 install -r requirements.txt`.) You will need a local copy of `nc`. The program will attempt to find it automatically. If it can't, please specify the path with the `--nc` flag.
34
+
Install the required python modules with pip (`pip3 install -r requirements.txt`.) You will need a local copy of `nc`. The program will attempt to find it automatically. If it can't (it might not be in your `$PATH`), please specify the path to the binary with the `--nc` flag.
34
35
35
36
## Adding New Payloads
36
37
@@ -45,7 +46,7 @@ The included payloads have all been tested on a simple webshell and work. If you
45
46
Example execution on local Docker image (see `demo/README.md`)
Copy file name to clipboardExpand all lines: demo/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
1. Build the docker image (`docker build . --tag webshell`)
4
4
2. Run the image (`docker run -it -p 8080:80 webshell`)
5
-
3. Use web2shell to secure a remote connection on the docker0 interface (`python3 web2shell.py --url http://127.0.0.1:8080/cmd.php?cmd=SHELL --interface docker0`)
5
+
3. Use web2shell to secure a remote connection on the docker0 interface (`python3 web2shell.py --interface docker0 http://127.0.0.1:8080/cmd.php?cmd=SHELL`)
6
6
7
7
Note: This Docker container has the binaries for all supported reverse shells. They are as follows:
0 commit comments