Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: |Tutorial| How to build and install the new NetHunter|Marshmallow 6.0.1|

  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    3

    |Tutorial| How to build and install the new NetHunter|Marshmallow 6.0.1|

    Hi guys.
    Hope you all had a good Christmas , today i have a tutorial for you.
    I will show you how to build the new version of NetHunter and install it to your device(must be a supported device,,see the list below)
    • Nexus 4(mako)
    • Nexus 5(hammerhead)
    • Nexus 6(shamu)
    • Nexus 7 2012(nakasi) and 2013 model(razor)
    • Nexus 9(volantis)
    • Nexus 10(mantaray)
    • One Plus One(bacon)

    For my build setup i have Kali Linux installed in vmware, you could use virtualbox also.
    If you have it installed on your pc,,more power to you.
    So the requirements are:
    • Have Kali Linux in a vm or installed on your pc(you could do the same thing on ubuntu,,but for the sake of it i use kali)
    • A rooted supported android device(for marshmallow you should root your device with supersu 2.64 , as of the day i write this tutorial it's the latest)https://drive.google.com/file/d/0B74...ew?usp=sharing <=link to SuperSu here

    Please note: this tutorial will not show you how to install linux neither how to root your android device.
    I tested on a nexus 5 (my phone) and i have the latest marshmallow 6.0.1 on it and device is rooted.
    It's not very complicated, if you ever built android roms or aosp from source it's a lot easier, the Nethunter guys made a script that pretty much
    does it all by itself.

    First thing , we will make a folder to work in, name it the way you want , i will just call it nethunter:
    • mkdir ~/nethunter

    Then change directory into the folder you created:
    • cd ~/nethunter

    Once inside the folder type:
    • Code:
      git clone https://github.com/offensive-security/gcc-arm-linux-gnueabihf-4.7

    After that we are going to clone the repo of the new installer branch like so:
    • Code:
      git clone https://github.com/offensive-security/kali-nethunter.git -b newinstaller-fj

    What we just done will created a folder named AnyKernel2 so we are going to change directory into it:
    • cd ~/nethunter/kali-nethunter/AnyKernel2

    Then we are ready to build:
    • python build.py -d hammerhead -m (the -d means the device you are building for in my case it's a nexus 5 codename hammerhead,,and the -m means
      marshmallow)


    Once it's done,,you will have a zip file into the AnyKernel2 folder, and this is what you are going to flash in recovery to install NetHunter to your device.
    The new installer is using aroma so you will be able to choose what to install.
    On the first page or so you will be asked to install a version of SuperSu older than the one i provided you , untick this boxs, you don't want this to install and replace the version of SuperSu you curently have(2.64 ++)
    When aroma will install it's probable that it will stuck at 40% for a couple of minutes, don't worry, let it do his things,,but if you are stuck there for more than
    lets say 10 minutes just force shudown your device by holding the power button down and reboot,,Kali NetHunter should have been installed correctly anyway.
    Make sure that once you boot with your new KaliNethunter go into the Kali app and update the chroot.

    That's about it, if you have any question feel free to ask i will take a look at the thread everyday.

    **Big thanks to Binkybear and Jmingov who provided me usefull info**
    Last edited by xorion33; 2015-12-29 at 01:04 AM.

  2. #2
    Junior Member
    Join Date
    Mar 2015
    Posts
    7
    Did this a little bit ago, not sure if anyone else will have this problem but I noticed that when I flashed the ZIP that the kernel didnt change for some reason. Used AnyKernel to make the kernel and just flashed that and no problems except for some reason hid attack isnt working on the N6.

  3. #3
    Junior Member
    Join Date
    Dec 2015
    Posts
    3
    Quote Originally Posted by emorrowdf View Post
    Did this a little bit ago, not sure if anyone else will have this problem but I noticed that when I flashed the ZIP that the kernel didnt change for some reason. Used AnyKernel to make the kernel and just flashed that and no problems except for some reason hid attack isnt working on the N6.
    It means something wasn't done right , I know I had the same error the first time.
    Make sure to git clone the newinstaller branch.

  4. #4
    Junior Member
    Join Date
    Mar 2015
    Posts
    7
    Quote Originally Posted by xorion33 View Post
    It means something wasn't done right , I know I had the same error the first time.
    Make sure to git clone the newinstaller branch.
    Weird you were absolutely right. I had done NOTHING different and yet it was still bugged. Restored to stock and tried again and everything worked perfectly.

  5. #5
    Junior Member
    Join Date
    Dec 2015
    Posts
    3
    Quote Originally Posted by emorrowdf View Post
    Weird you were absolutely right. I had done NOTHING different and yet it was still bugged. Restored to stock and tried again and everything worked perfectly.
    That's good

  6. #6
    Junior Member
    Join Date
    Dec 2015
    Posts
    4
    Anyone try this out on a nexus 9 yet? Everything installs and runs great except wifi monitor mode appears to no longer work for me. It worked great when I had it running g on my nexus 9 with the lollipop build. This time I reflashed stock marshmallow 6.0.1, built the zip off the newinstaller-fg branch and monitor mode fails.
    I can post again later with better details but was just wondering about other's experience using this method for nexus 9/marshmallow 6.0.1.
    Overall, this is seriously great work done by binkybear and the offsec team! Great job!

  7. #7
    Junior Member
    Join Date
    Dec 2015
    Posts
    4
    Figured out what the issue was with getting my USB WiFi card into monitor mode on my nexus 9/marshmallow/nethunter build and thought I'd share. For some reason, the firmware files weren't getting copied into /system/etc/firmware (copied or symlinked or otherwise). Once I got the firmware over in there and rebooted it worked like a charm.

  8. #8
    Junior Member
    Join Date
    Jan 2016
    Posts
    1
    Hi,

    Thanks for the awesome tut. One thing that i ran into is that im trying to compile the Nakasi hethunter but comes up with this.

    root@kali:~/nethunter/kali-nethunter/AnyKernel2# python build.py -d nakasi -m
    Traceback (most recent call last):
    File "build.py", line 525, in <module>
    main()
    File "build.py", line 325, in main
    aroma_enabled = Config.get(args.device, 'aroma')
    File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
    ConfigParser.NoSectionError: No section: 'nakasi'

    root@kali:~/nethunter/kali-nethunter/AnyKernel2# python build.py -d grouper -m
    SEPOLICY not found at: kernels/marshmallow/grouper/sepolicy
    Kernel not found at: kernels/marshmallow/grouper/zImage



    Maybe something I can fix or if you know something please let me know. Thanks

  9. #9
    Junior Member
    Join Date
    Apr 2015
    Posts
    1
    Figured out what the issue was with getting my USB WiFi card into monitor mode on my nexus 9/marshmallow/nethunter build and thought I'd share. For some reason, the firmware files weren't getting copied into /system/etc/firmware (copied or symlinked or otherwise). Once I got the firmware over in there and rebooted it worked like a charm.

    Think I may have a similar problem with the nexus 10 on lollipop. Everything else is working fine as far as i can see, just get an error when trying to bring up wlan1 (external usb wifi). I would be really gratefull to anyone who could provide a little extra info as to how to copy/symlink the firmware files over to system/etc/firmware. (mainly where to copy from but any other info would be much appriciated)
    thanks.

  10. #10
    Junior Member
    Join Date
    Dec 2015
    Posts
    4
    If you don't already have the firmware files you can grab them from the git repo (https://github.com/offensive-securit...m/etc/firmware). Then you can use a file manager like ES File Explorer to copy them into /system/etc/firmware. With ES File Explorer just make sure you enable "Root Explorer" and "Show hidden files" in settings.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •