
웹 셸 및 명령 삽입 취약점과 상호 작용하기 위한 간단한 도구
웹 셸 클라이언트
Wshlient는 매우 간단하면서도 다재다능하게 설계된 웹 셸 클라이언트입니다. HTTP 요청이 포함된 텍스트 파일을 만들고 Wshlient가 명령을 주입할 위치를 알려주기만 하면 셸을 사용할 수 있습니다.
https://github.com/user-attachments/assets/eafcf666-4c52-4e28-a341-a03bba93fe89
위 동영상이 작동하지 않는 경우:
파이썬에 포함된 기본 라이브러리 외에 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에 기여할 수 있습니다:
자유롭게 해 주세요, 하지만 간단하게 유지하는 것을 명심하세요.