
Webシェルやコマンドインジェクションの脆弱性と対話するためのシンプルなツール
Webシェルクライアント
Wshlient は、非常にシンプルでありながら多用途に設計されたWebシェルクライアントです。HTTPリクエストを含むテキストファイルを作成し、Wshlient がコマンドを注入する場所を指定するだけで、シェルを楽しむことができます。
https://github.com/user-attachments/assets/eafcf666-4c52-4e28-a341-a03bba93fe89
上記の動画が機能しない場合:
Python標準ライブラリ以外では、Wshclient は requests のみを使用します。直接インストールするか、requirements.txt を使用してインストールしてください。
$ git clone https://github.com/gildasio/wshlient
$ cd wshlient
$ pip install -r requirements.txt
$ ./wshlient.py -h
または、$PATH にシンボリックリンクを作成して、システム内のどこからでも直接使用することもできます。
$ ln -s $PWD/wshlient.py /usr/local/bin/wshlient
$ ./wshlient.py -h
usage: wshlient.py [-h] [-d] [-i] [-ne] [-it INJECTION_TOKEN] [-st START_TOKEN] [-et END_TOKEN] req
positional arguments:
req File containing raw http request
options:
-h, --help show this help message and exit
-d, --debug Enable debug output
-i, --ifs Replaces whitespaces with $IFS
-ne, --no-url-encode Disable command URL encode
-it INJECTION_TOKEN, --injection-token INJECTION_TOKEN
Token to be replaced by commands (default: INJECT)
-st START_TOKEN, --start-token START_TOKEN
Token that marks the output beginning
-et END_TOKEN, --end-token END_TOKEN
Token that marks the output ending
Wshlient への貢献方法:
自由にやってください。ただし、シンプルに保つことを心がけてください。