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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
PyRat — PyRat、python xmlrpcによるRAT | Kitploit
ツール/GitHubGitHub/anhkgg/pyrat
ポストエクスプロイトペネトレーションテストコマンド&コントロールレッドチーミングリモートアクセスツールペイロード開発
GitHubanhkgg/pyrat

PyRat

PyRat、python xmlrpcによるRAT

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

人気

すべて見る →

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

すべてのツールを探索

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

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

PyRat

PyRat は、Python の XmlRPC に基づいて作成されたオープンソースの遠隔操作プロジェクトで、クライアントとサーバー(コントロール側とも呼びます。以下、総称してサーバーと呼びます)を含みます。

声明:本プロジェクトは技術交流のみを目的としています。商用利用や不正な目的には使用しないでください。万一、法的紛争が発生しても、作者とは一切関係ありません。

  1. XmlRPC は http プロトコルに基づいているため、PyRat はファイアウォールを無視して、よりエレガントに通信・制御を行うことができます。
  2. Python のクロスプラットフォーム特性により、PyRat クライアントは Windows/Linux/Macos などのさまざまなプラットフォームをサポートできます。現時点では Windows/Ubuntu/Macos プラットフォームで動作確認済みです。
  3. サーバーはコマンドラインで制御・管理でき、とてもクールです。
  4. 現在、クライアントは基本情報、アップロード、ダウンロード、cmdshell、ソフトウェア実行、プロセス終了、更新、アンインストールなどの機能をサポートしています。

依存関係

  1. python2.7
  2. colorama (サーバー)

TODO

  1. より多くの機能を追加: ファイル操作、バッチ対応のレジューム付きファイル転送、リモートデスクトップ、スクリーンショット、アカウント操作など
  2. サーバー側の可視化
  3. 対話型シェル
  4. 暗号化トンネル
  5. SSH / SCP
  6. PR歓迎

基本的な使い方

クライアント

root@kitploit:~
> python .\pyratcli.py localhost 80

サーバー

root@kitploit:~
> python pyratsvr.py 80
--------------------Python RAT-----------------------
--------------------anhkgg---------------------------
--------------------Copyright (c) 2018---------------

软件仅供技术交流,请勿用于商业及非法用途,如产生法律纠纷与本人无关!

--------------------Task command---------------------
--|(l)ist (a)live (k)ill (s)elect (p)rint (c)mdshell (n)ew (d)ownload (r)unexec (u)pload (t)erminate (q)uit (h)elp|--

cmd >

クライアントがオンラインになるとサーバー側に通知され、最新にオンラインになったクライアントがデフォルトの操作対象に設定されます。

root@kitploit:~
cmd >test-3333333 is online.
Auto set target test-3333333

helpまたはhで、サーバーがサポートするすべてのコマンドを一覧表示できます。

root@kitploit:~
cmd >help
(l)ist:     list all clients
(a)live:    list alive clients
(k)ill:     delete client
(s)elect:   select target client
(p)rint:    show current client
(c)mdshell: create a cmdshell, type q to exit cmdshell
(n)ew:      update client version
(d)ownload: let client download a file
(r)unexec:  let client run a exe
(u)pload:   upload a file to client
(t)erminate:terminate process
(q)uit:     quit server

クライアント管理

サーバーは sqlite を使用してクライアントの基本情報とタスク情報を保存し、コマンドを使ってクライアントを管理できます。

root@kitploit:~
//枚举所有客户端
cmd >l
test-3333333 offline 2018-03-20 22:46:59!
id     | client_id                  | version  | localip              | remoteip             | username             | osversion  | firsttime            | lasttime             | status
10     | test-3333333     | 0.1.0    | 192.168.149.1        | 114.245.47.12        | test            | Windows10.0.16299 | 2018-03-17 12:39:56  | 2018-03-20 22:46:59  | 0
cmd >
//枚举在线客户端
cmd >a
no alive client
//删除客户端数据库记录或者卸载客户端
cmd >k
target cid(or ALL):test-3333333
Do you want to uninstall client?(Y/N)

クライアントを制御する必要がある場合は、selectまたはsで操作対象のクライアントを選択します。

root@kitploit:~
cmd >c //想进入cmdshell,提示无目标
Please first set target client by (s)elect command.
cmd >s //设置目标
client_id:test-3333333
Set target client: test-3333333
//查看当前目标
cmd >p
test-3333333

cmdshell

cmdshellまたはcで cmdshell に入ります。明示的にqを入力しない限り、cmdshell の操作ディレクトリで作業し続けます。

cmdshell は操作ディレクトリを記録します。たとえば cd c:\ を実行すると、次回の操作はそのディレクトリで行われ、パイプ接続のような cmdshell を実現します。

また、cmdshell からプロセスを起動すると、一部のプロセスがメッセージの返信をブロックする可能性があるため、お勧めしません。代わりにrunexecを使用してください。

root@kitploit:~
cmd >c
RAT-CMD > dir
RAT-CMD > test-3333333 do cmdshell(195) dir True
 驱动器 D 中的卷是 gitrepo
 卷的序列号是 EB2F-5AC0

 D:\PyRat\client 的目录

2018/02/24  09:40    <DIR>          .
2018/02/24  09:40    <DIR>          ..
2018/03/20  22:46             4,919 pyratcli.py
2018/03/20  23:01                28 cmd.log
2018/03/17  12:39             1,322 pyratfc.py
2018/03/17  11:19             2,500 osver.py
2018/03/17  12:39             2,161 pyratfc.pyc
               5 个文件         10,930 字节
               2 个目录 647,836,565,504 可用字节

RAT-CMD > ver
RAT-CMD > test-3333333 do cmdshell(196) ver True

Microsoft Windows [版本 10.0.16299.309]

RAT-CMD > tasklist
RAT-CMD > test-3333333 do cmdshell(197) tasklist True

映像名称                       PID 会话名              会话#       内存使用
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          8 K
System                           4 Services                   0      3,564 K
smss.exe                       360 Services                   0        412 K
csrss.exe                      492 Services                   0      1,700 K
Calculator.exe               21656 RDP-Tcp#85                 1     56,772 K
RAT-CMD > tasklist |findstr Cal
RAT-CMD > test-3333333 do cmdshell(200) tasklist |findstr Cal True
Calculator.exe               21656 RDP-Tcp#85                 1     51,856 K
RAT-CMD > taskkill /IM Calculator.exe
RAT-CMD > test-3333333 do cmdshell(201) taskkill /IM Calculator.exe True
成功: 给进程 "Calculator.exe" 发送了终止信号,进程的 PID 为 21656。
RAT-CMD > taskkill /PID 21656
RAT-CMD > test-3333333 do cmdshell(202) taskkill /PID 21656 True
成功: 给进程发送了终止信号,进程的 PID 为 21656。

ファイル操作

ファイルのアップロードとダウンロードをサポートします。ダウンロードでは、ネットワーク上のファイルとサーバー側のローカルファイルの両方をダウンロードできます。現時点では単一ファイルのアップロード・ダウンロードのみ対応しています。

root@kitploit:~
cmd >d
url(type N to download local file):N //选择下载本地文件
local file:db.db
dest path:db.db
cmd >test-3333333 do download(203) local db.db db.db True
download success

cmd >d
url(type N to download local file):https://dl.360safe.com/360/inst.exe //下载网络文件
dest path:inst.exe
cmd >test-3333333 do download(204) net https://dl.360safe.com/360/inst.exe inst.exe True
download success

ソフトウェアの実行

root@kitploit:~
cmd >r
run target:inst.exe
runexec inst.exe

プロセスの終了

root@kitploit:~
cmd > t
Select type(name/pid):name
process name:notepad.exe
cmd >test-3333333 do terminate(212) name notepad.exe True
成功: 给进程 "notepad.exe" 发送了终止信号,进程的 PID 为 25416。

問題

  1. テスト中にエンコーディングの問題が発生する可能性があることが判明しました。

クライアントが Linux 上で動作し、サーバーが Windows プラットフォームの場合、中国語が文字化けする可能性があります。これは、2つのプラットフォームで使用されるエンコーディングが異なるためです。現在は未対応です。

寄付

img

ツールをダウンロード