[Xperia Z5 Compact General] Joeisgood99:
Thread no longer supported by Dev. I no longer have a Z5C and do not work on this project

View attachment 4353598
​

Hey guys.

I spent a little bit of time porting the Kali Net Hunter Project to the Sony Z5C.

Despite not being fully functional yet I decided to upload it anyway mainly so I don't forget what I'm up to and so if others are interested now or in the future they can pick up where I have left off.

****************************************************

A project by Offensive Security

The Kali NetHunter is an Android penetration testing platform targeted towards Nexus and OnePlus devices built on top of Kali Linux, which includes some special and unique features. Of course, you have all the usual Kali tools in NetHunter as well as the ability to get a full VNC session from your phone to a graphical Kali chroot, however the strength of NetHunter does not end there. We've incorporated some amazing features into the NetHunter OS which are both powerful and unique. From pre-programmed HID Keyboard (Teensy) attacks, to BadUSB Man In The Middle attacks, to one-click MANA Evil Access Point setups, access to the Offensive Security Exploit Database... And yes, NetHunter natively supports wireless 802.11 frame injection with a variety of supported USB NICs.

Documentation and Attack Descriptions

Attack descriptions as well as some documentation to get you started with the installation and setup of Kali NetHunter can be found at https://github.com/offensive-security/kali-nethunter/wiki.

Is Kali NetHunter an Android ROM?

Kali Linux NetHunter is not a ROM but is meant to be installed over an existing stock/factory image of Android. It can also be installed over some Cyanogenmod based ROMs depending on device support. It is heavily based on using custom kernels and only supports a select number of devices. We're relying on you, the community, to port your devices for the full Kali NetHunter experience.

Frequently Asked Questions

Q - Does NetHunter support Marshmallow, or Nexus 9 devices?

A - Yes, check our wiki for more information on supported devices and ROMs https://github.com/offensive-security/kali-nethunter/wiki#10-supported-devices-and-roms

**Q** - What kind of attacks does NetHunter support?

A - Our wiki has a list of included attack tools https://github.com/offensive-security/kali-nethunter/wiki#60-kali-nethunter-attacks-and-features

**Q** - NetHunter is awesome! How do I install it?

A - Follow the instructions on the wiki https://github.com/offensive-security/kali-nethunter/wiki#40-installing-nethunter-on-top-of-android

**Q** - What is the best wireless card for NetHunter?

A - A list of supported devices and chipsets is on the wiki https://github.com/offensive-security/kali-nethunter/wiki/Wireless-Cards

Fri Jan 15 02:09:40 EST 2016

*****************************************************

My end goal with this was to get the Z5C to be one of the supported devices for NH.

I have run out of time.

Porting the kernel was the easy part. Modifying the NH installer is a little more involved.

At the moment you can down load this .zip. (link below) (1GB)

https://mega.nz/#!QsZCjazY!2tou3dQzhpmN9Y_M0c--ASUQx1422TSvP3nlf44HdC8

it contains my kernel.img modified to run kali for Z5C

A Kali chroot/app/binary/script installer

A (kernel) module/ boot screeninstaller

an un-installer

Unzip, save all on your phone. Flash the boot.img via fastboot, boot in to your unofficial version of TWRP flash kali installer then the modules zip. Reboot.

Open terminal

type

[COLOR="Purple"]su
bootkali
apt-get install kali-linux-nethunter
apt-get update[/COLOR]

I recommend

[COLOR="purple"]apt-get install kali-linux-wireless
apt-get install kali-linux-pwtools[/COLOR]

when this is done open the NetHunter App and have a look.

Note **The auto package installer doest work in this kernels current state because the NetHunter Terminal cant find root.

This has to do with type of SU binary/rooting method used.

My kernel source : https://github.com/joeisgood99/Z5C-Copyleft-Kernel/tree/NetHunter-N.3

-Copy left 33.3.A.2.33

-modified to boot and run kali including external hardware support ie wireless cards, usb keyboard.

-rooted

-BB installed

-DRM fix installed

-dm-verity is disabled

-Sony RIC disabled

-alucard, zzmoove, elementalx CPU goveners.

What doest work.

-The auto package installer in the NetHunter app doest work in this kernels current state because the NetHunter Terminal cant find root. If anyone can get ChainFires SuperSU to work on android 7.0 for Z5C that might fix the problem. Or simlink a binary to where the terminal is looking for su.

Here is a non rooted NetHunter boot.img for those that wanna test superSU latest boot patch for xperia devices

https://mega.nz/#!0gJARLDY!fGJunpddv0J7gCNW-5gucnjH9XDTNF8yQO0_-drFnFo

-NetHunter terminal wont open (as above)

-Driverdroid attacks don't work on stock kernel because the “detect usb device” function keeps getting in the way.

These problems most likely wont exist if someone ports this to an AOSP kernel. I would but I don't use vanilla AOSP, CM, linage OS or Omni Rom atm.

For those that get in to this and clone the project from offensive-security will quickly find that any install.zip built for z5c from the installer will break parts of the phone if flashed over stock. (levels of brokenness depend on who's unofficial version of TWRP you are using)

I listed the issues here

https://xdaforums.com/z5-compact/help/request-kali-nethunter-t3505788/post71687707#post71687707

Feel free t peruse my github repos to look at how I temporally went around the easy problems.

Feel free to submit proper fixes.

Do NOT Harass NetHunter devs with issues for NetHunter on Z5C as the device is not officially supported.

Enjoy.

Screen shots​

View attachment 4353630View attachment 4353631View attachment 4353632View attachment 4353633