Showing posts with label Android device. Show all posts
Showing posts with label Android device. Show all posts

Wednesday, January 10, 2018

Install Kali NetHunter On Any Android Device - Universal Method



I have covered some methods to make Kali NeHunter work on some specific devices. As a continuation to that, I have made a tutorial to install and run Kali NetHunter on any android device. So this is the universal method to install Kali Nethunter on Android devices. So if the previous methods of how to install Kali NetHunter on Android devices did not work or your phone is not supported, follow this process. Do it at your own risk. Some functionalities might be limited.

Pre-Requisites:
  • There are certain requirements that are to be met before installing NetHunter using this method.
  • The device should be properly rooted. If rooted with KingRoot, replace KingUser with SuperSu
  • BusyBox installed. Install it from play store.
  • Ample Storage
  • Custom ROMs like CM12 CM12.1 CM13. (Desired, not mandatory)
Procedure to Install Kali NetHunter On Any Android Device
  • Download any Nethunter ROM from Offensive Security Web Site according to your Android Version.
  • Extract the Zip file and go to /data/app. Install the apps present in that folder one by one.
  • Now with any root explorer app, go to /data/data/com.offsec.nethunter/files/scripts. Then copy all the files and paste into /system/bin (Note: If you don't see the folder or content in files/scripts, open NetHunter app and then close it and check again)
  • Next, open the Nethunter App and Go to the Kali Chroot Manager and install the "Minimal Chroot". You can also select "Full Chroot" but this is not recommended.
  • Open Terminal Emulator or NH-terminal and choose "KALI". This will open up Kali shell. You may be prompted to allow root permission. Just grant it and you will be good to go.
  • After that, run these commands one by one in the terminal:
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install kali-Linux-nethunter

How To Setup Metasploit In Kali NetHunter

To enjoy the full functionalities of Kali NetHunter, setting up and enabling Metasploit is very essential. This step is necessary for using the features of Metasploit and other tools which make use of Metasploit Modules. Follow the below-given steps.

Initialize the database: run this command msfdb init (Alternatively goto Kali Services Tab on Nethunter App and set it to "Start at boot")

To run Metasploit: use this command msfconsole or open any tool which uses Metasploit like toolkit




This should install everything required to run Kali NetHunter on Any Android Device. You can access most of the Kali Linux tools from the terminal. However, If you want to try the GUI tools, follow the below steps.

How to install and Enable VNC in Kali NetHunter.

VNC Viewer is required to work on GUI tools. For this, VNC server needs to be installed in the Kali NethHunter. This can be done by following the below-given steps.
  • Open Terminal and execute the following command in Kali Terminal
apt-get install tightvncserver

  • To run VNC Server type the following command

vncserver :1 -geometry 1280x720 -depth 16

Explanation of switches: -

:1 (Display 1,2,3,4 etc..)*

-geometry (Resolution width x height)

-depth (16, 24, Color Depth, use 16)
  • Now Install any VNC app from PlayStore and open it. I suggest using this App called VNC Viewer by RealVNC Limited We will use it to connect to Kali NetHunter GUI. Setup VNC app with the below details.
Alias: Kali Linux

Password: The password you set before

Address: 127.0.0.1 or your Private IP

Port: 5901 (Depends on display i.e., for display 2, Port will be 5902 and so on)

Username: root
  • Click connect and now you can enjoy the NetHunter Tools in GUI.
More


Tuesday, January 9, 2018

How to easily root an Android device

Free utility KingoRoot makes it a snap to take total control of just about any Android smartphone. Here's how to use it.

nexus-5-developer-7447.jpg
Tapping into Developer mode with Android 4.4.James Martin/CNET
Rooting is the Android equivalent of jailbreaking, a means of unlocking the operating system so you can install unapproved apps, deleted unwanted bloatware, update the OS, replace the firmware, overclock (or underclock) the processor, customize anything and so on.
Of course, for the average user, this sounds like -- and can be -- a scary process. After all, "rooting" around in your smartphone's core software might seem like a recipe for disaster. One wrong move and you could end up with bricked handset.
Thankfully, there's a utility that makes rooting a one-click affair: KingoRoot. It's free and it works -- though not with all devices.
I originally tested Kingo on a Virgin Mobile Supreme and Asus Nexus 7; the process proved quick and easy. More recently, I used it to root a OnePlus One, and this time it was even easier -- because an app did all the work.
However, I couldn't get the utility to work on a Verizon Samsung Galaxy S6. Your mileage may vary, of course, and I definitely recommend checking the compatibility list before proceeding. (Even if your device isn't on it, the utility may work with it.) Here's how to get started.

The app version

The easiest way to use KingoRoot is to install the app version, which literally performs the root process with just one tap.
In fact, the only complicated part is actually getting that app onto your Android device. That's because it's not available in the Google Play Store; instead, you must download the KingoRoot APK and manually install it.
kingoroot-android-with-border.jpg
Screenshot by Rick Broida/CNET
Ideally, you'll just point your device's mobile to the KingoRoot Android page and download it directly. If that doesn't work for some reason, or you're working from your PC, download the APK and email it to yourself as an attachment. Then, on your device, open that e-mail and download that attachment.
To install it, however, you'll need to make sure your device is set to allow apps from unknown sources. In most versions of Android, that goes like this: Head to Settings, tap Security, scroll down to Unknown Sources and toggle the switch to the on position.
Now you can install KingoRoot. Then run the app, tap One Click Root, and cross your fingers. If all goes well, your device should be rooted within about 60 seconds. (On my aforementioned Galaxy S6, the process made it to 90 percent, then the phone crashed and rebooted. Luckily, no harm done.)

The desktop version

Kingo's support pages suggested I might have better luck with the Galaxy S6 if I tried the Windows version of KingoRoot. Here's that process:
kingo-root-no-adware.jpg
No adware! Leave this box unchecked and be sure to click Decline during installation.
Screenshot by Rick Broida/CNET
Step 1: Download and install KingoRoot for Windows, making sure to leave unchecked the option to "Install Yahoo powered Chromium browser" and then click Decline to prevent any other adware incursions.
Step 2: Enable USB debugging mode on your phone. If it's running Android 4.0 or 4.1, tap Settings, Developer Options, then tick the box for "USB debugging." (You may need to switch "Developer options" to On before you can do so.) On Android 4.2, tap Settings, About Phone, Developer Options, and then tick USB debugging." Then tap OK to approve the setting change.
Screenshot by Rick Broida/CNET
On Android 4.3 and later (including 5.0, though this also applies to some versions of 4.2), tap Settings, About Phone, then scroll down to Build Number. Tap it seven times, at which point you should see the message, "You are now a developer!"
With that done, tap Settings, About Phone, Developer Options, and then tick USB debugging." Then tap OK to approve the setting change.
Step 3: Run Android Root on your PC, then connect your phone via its USB sync cable. After a moment, the former should show a connection to the latter. Your device screen may show an "Allow USB debugging?" pop-up. Tick "Always allow from this computer," then tap OK.
Screenshot by Rick Broida/CNET
Step 4: Click Root, then sit back and wait while the utility does its thing. After a few minutes, my Galaxy S6 got to 70 percent, and then the phone once again crashed and rebooted. Again, your mileage can (and most likely will) vary.
And that's all there is to it. If you decide you want to reverse the process, just run Android Root again, connect your phone, then click Remove Root. (Same goes for the app version, more or less.)
Now, what should you do with your rooted phone? Hit the comments to share your favorite options.
Related Post

Configuring Kali Linux