[HW 정보]

LG Nexus 5(LG-D821 hammerhead)


[OS 정보]

2017년 2월 현재 Android 6.01 marshmallow


[NetHunter 설치 방법]

우분투에 다음과 같은 명령어로 adb와 fastboot를 설치한다.

apt install adb

apt install fastboot


https://github.com/offensive-security/nethunter-LRT


여기에 있는 순서대로 설치하면 된다. 다만 Recovery Tool을 설치할 때 TWRP를 이용하게 되면 NetHunter 설치과정에서 90% Progressive Bar Hang이 걸리는 버그가 존재한다. 이를 위해서 TWRP 이미지가 아닌 CWM 이미지를 Recovery Tool로 사용하도록 한다.

http://download2.clockworkmod.com/recoveries/recovery-clockwork-touch-6.0.4.5-hammerhead.img


아래는 설치를 시작하기 이전에 받아 놓은 이미지 파일명들이다.


1. 공장 출시 이미지

stockImage/hammerhead-m4b30z-factory-625c027b.zip


2. superSU

superSu/BETA-SuperSU-v2.60-20151205163135.zip


3. Recovery 툴

twrpImage/twrp-3.0.3-0-hammerhead.img recovery-clockwork-touch-6.0.4.5-hammerhead.img


4. Kali NetHunter
kaliNethunter/nethunter-hammerhead-marshmallow-3.0.zip



[chroot 재설치]

1~4번의 과정을 거치고 나서 재부팅 이후에 NetHunter를 실행해 보면 일부 command의 설치가 제대로 안되어 있는 경우가 많다(iw 명령어를 입력하면 작동해야 하는데 설치가 안되어 있다든지). 이 경우 chroot를 삭제하고 다시 설치해 주면 된다.

    1. NetHunter Menu - Kali Chroot Manager - REMOVE CHROOT 를 선택하여 재부팅 이후 chroot를 삭제

    2. nethunter zip 파일(nethunter-hammerhead-marshmallow-3.0.zip) 내에 있는 kalifs-full.tar.xz 파일을 스마트 폰에 풀어 놓기

    3. Nethunteer Menu - Kali Chroot Manager - ADD METAPACKAGES 에서 를 kalifs-full.tar.xz 파일을 선택하여 INSTALL & UPDATE 



    [sources.list 변경]

    apt update나 apt upgrade에서 "404 Not Found"가 뜨는 경우가 있다. 이럴 때 apt repository를 바꿔 주도록 한다.


    vi /etc/apt/sources.list


    deb http://http.kali.org/kali kali-rolling main contrib non-free


    #deb http://http.kali.org/kali sana main non-free contrib

    deb http://old.kali.org/kali sana main non-free contrib

    #deb-src http://http.kali.org/kali sana main non-free contrib


    #deb http://security.kali.org/ sana/updates main contrib non-free

    deb http://old.kali.org/kali-security sana/updates main contrib non-free

    #deb-src http://security.kali.org/ sana/updates main contrib non-free


    https://docs.kali.org/general-use/kali-linux-sources-list-repositories