
वेब शेल और कमांड इंजेक्शन कमजोरियों के साथ बातचीत करने का एक सरल उपकरण
वेब शेल क्लाइंट
Wshlient एक वेब शेल क्लाइंट है जिसे काफी सरल फिर भी बहुमुखी बनाया गया है। बस एक टेक्स्ट फ़ाइल बनानी होती है जिसमें एक 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 में योगदान दे सकते हैं:
बेझिझक करें, लेकिन ध्यान रखें कि इसे सरल रखें।