goscp
Set of tools created during my OSCP preparation. They include:
- gosheller - terminal based interface for cmdasp.aspx webshell. It provides interactive terminal, as well as history savings.
- gotfp - simple tftp server, once spawned files accessible from the running directory will be available
gosheller
$ gosheller --help
Usage of ./gosheller:
-l list the history
-t int
timeout for server (default 5)
-u string
url for the webshell
After you have uploaded the webshell, you can use gosheller to interact with it, all you have to do is pass the -u
parameter to the gosheller. If your connection sucks, you can increase the timeout to something like 20(20 seconds).
$ gosheller -t 20 -u http://127.0.0.1:4167/cmdasp.aspx
> whoami
root
> hostname
lateralusd
> exit
Exiting
To view the history, simply pass the -l
flag.
$ gosheller -l=true
+-------------------------------------------------------------------------------------------+
| Command history |
+-------------------------------+-----------------------------------+----------+------------+
| TIME | HOST | COMMAND | OUTPUT |
+-------------------------------+-----------------------------------+----------+------------+
| 0001-01-01 00:00:00 +0000 UTC | http://127.0.0.1:4167/cmdasp.aspx | whoami | root |
| 0001-01-01 00:00:00 +0000 UTC | http://127.0.0.1:4167/cmdasp.aspx | hostname | lateralusd |
+-------------------------------+-----------------------------------+----------+------------+
gotfp
$ gotftp
6 bytes received
For test, in another terminal:
$ echo test > bb.txt
$ tftp 127.0.0.1
tftp> put bb.txt