[Xperia SP Android Development] dic1911:
​

Welcome to the thread on Kali NetHunter for the Sony Xperia SP

If you don't know what Kali NetHunter is, well, it's the entire Kali Linux operating system in a chroot on your phone, plus a bunch of awesome apps for executing exploits, fixing things, doing cool things. It goes on, I suppose.

I'm gonna be honest guys, I'm not a security person. When it comes to security, I'm more of a Paul Blart.

What I do know though, is that there is apt-get, and apt-get is life.

Find much more information here: https://github.com/offensive-securit...nethunter/wiki

The answer to all your questions, generally the answer is YES, IT CAN DO THAT.

Most AOSP based ROMs should be supported!

The updater zip will add a few files to your /system partition, and install all of the NetHunter apps to your /data partition.

The chroot is located in /data/local, so you don't have to worry about your system partition being full. It's full read/write capable.

Understand that the zip will replace your current kernel with a completely different one.

This is necessary because most stock or custom kernels don't provide the drivers needed to operate most of Kali NetHunter's features.

DOWNLOAD

Current version: 0.1 (beta, 2016-11-15)

Please be careful to download the right version based on this table:

Xperia SP: huashan

CyanogenMod 13.0 & SlimRom 6.0: marshmallow

Download from this AFH folder: https://www.androidfilehost.com/?w=files&flid=114915

BEFORE INSTALLING

Please make sure your phone boots fine and runs fine before flashing NetHunter. It's confusing when people report bugs that exist in CyanogenMod by itself.

The Kali chroot and apps are installed on your data partition (in /data/local for chroot). To initialize the chroot and install Kali Linux, you need to start the Kali NetHunter app.

The NetHunter installer will automatically install SuperSU in system mode, which I consider to be more stable. Since NetHunter already modifies your system partition, there is no need to use systemless SuperSU anyways.(not for huashan, I disabled this for giving you guys choices, also to prevent any possible problem caused by SuperSU.)

FULL FRESH INSTALL STEPS

Optional: Flash CyanogenMod/SlimRom installer zip

Optional: Flash Gapps if you want them (preferably OpenGapps pico)

Boot into device

Complete setup wizard

Reboot into recovery

Flash kernel-nethunter-hlte* and nethunter-generic-armhf-kalifs-full-rolling zips in any order.

Flash the only Kali Nethunter installer zip(update-nethunter......)

Boot into device

Open the NetHunter app

Use the Kali Chroot Manager to finish the installation

You're done!

UPDATING TO A NEWER BUILD

Going from 3.0.0 and up, all you have to do is flash the new build in recovery and wipe dalvik cache.

UPDATING YOUR ROM

To get all your NetHunter and SuperSU functions back after flashing a new ROM, just flash the ~60 MB update-nethunter-* zip again.

RUNNING WIFI PENETRATION TESTS

The internal WiFi chipset of the Xperia SP is not capable of running services which use monitor mode such as Wifite. For this, you will need to use a monitor mode capable WiFi adapter through a microUSB OTG adapter.

As for compatible adapters, I highly recommend the Alfa Networks AWUS036NEH (eBay) which uses the Ralink RT3070 chipset. There are currently no monitor mode supported Wireless-AC adapters available.

Once plugged in, you can run the command from Kali terminal to turn on your adapter:

root@kali:~# ip link set wlan1 up

RAN INTO AN ISSUE OR BUG?

In order for me to help you, you have to at minimum reply with:

The link to the exact zip you downloaded

Your device model (hlte, hltecan, hltesovietrussia, etc.)

The name of the ROM you're flashing it on

The version and build date of the ROM you're flashing it on

A complete description of your problem

Optional: An audio recording of you reading this entire post

If your issue is with a specific app, it might be better to contact the developer of that app.

If your issue is during the installation (ex. flashing the NetHunter zip), then please collect a TWRP recovery.log for me.

If you found a problem and were able to fix it, and no one's mentioned it in the thread already, it would be kind to state the issue and your fix for others to make use of as well.

You can join me and the other NetHunter developers on IRC at the #nethunter room on freenode to more handily diagnose problems together.

I apologize, but I can't do house calls at this time.

KNOWN ISSUES

USB Keyboard & VNC - Google Keyboard, AOSP Keyboard, CM Keyboard do not work due to a depth bug, use Hacker's Keyboard as a workaround.

Terminal App - Full screen programs like nano or vi are unusable unless you use the resize command. (always type resize when opening a new terminal window)

DEVELOPMENT

For the kernel included in NetHunter for the Sony Xperia SP, you can find the sources here:

https://github.com/AdrianDC/android_kernel_sony_msm8960t/tree/cm-14.1

See the Kali NetHunter installer source here: https://github.com/offensive-security/kali-nethunter

See the Kali NetHunter app source here: https://github.com/offensive-security/nethunter-app

DISCLAIMER

I am not affiliated with Offensive Security. They seem like cool guys though.

I'm not even a novice when it comes to security and penetration. I'm just a simple system administrator with a passion for breaking Android.

Please restrain yourselves from asking me security related questions.

NOT SO MUCH AS SEEN ON MR. ROBOT, BUT PROBABLY EVEN BETTER

XDA:DevDB Information

Kali Nethunter for huashan, Kernel for the Sony Xperia SP

Contributors

dic1911

Kernel Special Features:

Version Information

Status: Testing

Current Beta Version: 0.1b

Beta Release Date: 2016-09-18

Created 2016-09-18

Last Updated 2016-11-15