OUTDATED
Rishabh1x said:
In this guide i will cover how to setup a successful install of kali nethunter 3.0 on Redmi Note 3(mine is 32gb) using the ported nethunter zip and the hammerhead image(nexus 5). This may or may NOT work on any other ROM because I havent tested it. I am running exodus ROM with stock kernel. Please make sure you know what you are doing before you proceed because i dont have time to answer questions like 'what is chroot and root for?'
Requirements:
1. Unlocked bootloader
2. TWRP
3. ROOT
4. Some free space in /data partition(alot actually if you install ALL the tools)
5. Basic understanding about how linux works
Things you need to grab:
1. kali nethunter zip and modules zip for our device
2. hammerhead image zip
Steps:
1. BACKUP current ROM(system, data, boot->MOST IMP)
2. After you have a backup flash the nethunter.zip(72.8m) and once its done flash modules.zip(2.1mb)
3. Now you have to restore your boot partition from the backup you took earlier. > Goto restore and tick only Boot and restore it.
4. Reboot your phone now. You should see some new apps in your app drawer if all was successful. Also you will see the nethunter bootanim(awesome).
5. Now download kmod manager and enable the modules that can be enabled and ignore the rest.
6. Now extract the hammerhead zip file anywhere. Inside that you will have a /data/local folder. There is a file named kalifs-full.tar.xz. Copy it to /sdcard.
7. Now open Nethunter app from app drawer. From left panel goto - kali chroot manager. Click install chroot > use sdcard > Full chroot.
8. Now you will see a progress bar stating decompressing ~5-10 mins. Wait till it finishes. Then you will see a metapackages thing with options to tick. Ignore by pressing back button.
9. The console(green text) should print somewhere this line - "everything went fine" to tell you no errors were encountered.
10. Now chroot is ready, this means kali is installed and running inside android. To test it, do this - Open es explorer and goto /data/local/nhsystem/kali-armhf, there u should see some directories like bin/boot/ etc.
This means the filesystem is installed. Now you can open the nethunter terminal app and choose 'kali'. If it says [email protected] in red color, it means everything went fine and you are logged in as root.
Post install notes:
1. Hammerhead zip is pretty old. You will have to change the repo to kali-rolling to get the latest stable packages.
2. I have noticed very slow speed while downloading the packages, you can either add mirrors close to your location to avoid this or you can install aria and apt-fast(requires aria) packages.
3. Wifi injection and monitoring is not supported by the internal wifi card of our device, so you will have to refer to the port thread that has a compatible wifi card listed(amazon link) which supports packet injection.
Downloads:
1. nethunter zip and modules for RN3 -> Grab from original port thread
2. Hammerhead image zip -> Hammerhead image zip
Thanks to:
Baka Guy aka Cereal Killer - for port
Offensive Security - for Nethunter
Note- Any sensible questions, feel free to ask. Sorry if I missed something, if any confusion or mistakes found in steps pls inform me.
Click to expand...
Click to collapse
Hello, this is only for 6.0 roms? like which ? RR official?
Did you read the thread?
This is for MM roms however I have not tested on cm based ROM so you can give it a try by doing as per the steps and report back if it works.
Rishabh1x said:
Did you read the thread?
This is for MM roms however I have not tested on cm based ROM so you can give it a try by doing as per the steps and report back if it works.
Click to expand...
Click to collapse
do u have test to install it on cm rom? which cm
He said exodus... I will be testing it today on rr with radon 2.5.1
Sent from my Redmi Note 3 using Tapatalk
I have tried it and it works on Mokee. It boots and many of the functions do seem to work. How ever I'm still testing it and will review later again after some more testing.
Audacity4545 said:
I have tried it and it works on Mokee. It boots and many of the functions do seem to work. How ever I'm still testing it and will review later again after some more testing.
Click to expand...
Click to collapse
Ok thanks for informing...can you check if fruitywifi is working for you or not?
Btw Radon is compatible and should not cause any problem...I will update the guide later.
Rishabh1x said:
Ok thanks for informing...can you check if fruitywifi is working for you or not?
Btw Radon is compatible and should not cause any problem...I will update the guide later.
Click to expand...
Click to collapse
I have tried radon once at Radonv2.1 on mokee but it seemed to mess with the adaptable storage which I really need. So I dont use custom kernal on mokee. I will check fruitywifi possibly tomorrow or day after that when I get the time. Ill report my results when I'm done. Also you should show how to change repos. Many people dont know.
How to change repos- first the current repos are too old. they are for sana i.e. kali 2.0. now latest version is kali 2016 i.e. Kali rolling.
Guide to changing repos and increasing download speed for update.
*OP pls add this in main post if you want.
To change your repos go to (using es explorer) device/data/local/nhsystem/kali-armhf/etc/apt/sources.list
edit it using a text editor. Delete whatever is in it. then add these lines
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Then save it.What you just did was delete old sana repos and change them with updated rolling repos. Then go to nethunter terminal using kali shell. then run
apt-get update
then
apt-get upgrade
then
apt-get dist-upgrade
if you are getting slow speed then change http in sources to repo. i.e.
deb http://repo.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
this will most likely get you better download speeda and lot easier than using aria.
This currently only contains nethunter packages, to get all packages
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install kali-linux-full -y
This installs all kali packages shown at http://tools.kali.org/tools-listing. It will require alteast 800 mb data. If you install all packages you will get mysql screen setup. So if you try to installl all check up a guide before doing it. I wont explain it all here. For any noobs this doesnt contain a GUI. Dont expect one. You will need to know atleast basic linux to use it. If you want to try I ask you to try Kali on pc as it contains Gui and easier for beginners.
Audacity4545 said:
I have tried radon once at Radonv2.1 on mokee but it seemed to mess with the adaptable storage which I really need. So I dont use custom kernal on mokee. I will check fruitywifi possibly tomorrow or day after that when I get the time. Ill report my results when I'm done. Also you should show how to change repos. Many people dont know.
How to change repos- first the current repos are too old. they are for sana i.e. kali 2.0. now latest version is kali 2016 i.e. Kali rolling.
Guide to changing repos and increasing download speed for update.
*OP pls add this in main post if you want.
To change your repos go to (using es explorer) device/data/local/nhsystem/kali-armhf/etc/apt/sources.list
edit it using a text editor. Delete whatever is in it. then add these lines
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Then save it.What you just did was delete old sana repos and change them with updated rolling repos. Then go to nethunter terminal using kali shell. then run
apt-get update
then
apt-get upgrade
then
apt-get dist-upgrade
if you are getting slow speed then change http in sources to repo. i.e.
deb http://repo.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
this will most likely get you better download speeda and lot easier than using aria.
This currently only contains nethunter packages, to get all packages
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install kali-linux-full -y
This installs all kali packages shown at http://tools.kali.org/tools-listing. It will require alteast 800 mb data. If you install all packages you will get mysql screen setup. So if you try to installl all check up a guide before doing it. I wont explain it all here. For any noobs this doesnt contain a GUI. Dont expect one. You will need to know atleast basic linux to use it. If you want to try I ask you to try Kali on pc as it contains Gui and easier for beginners.
Click to expand...
Click to collapse
I will add the steps in the main thread to change the repos to rolling...although I found that changing from http to repo does not give any difference in speed. You should find a mirror close to your location to get better speed. I find nl mirrors to be far better than repo.
Also the vnc connections work without any tweaks so its not really a cui based installation bcz you can connect through vnc and use the gui too. Btw kali-full package requires 1gb download and more than 2gb space for install.
And you should avoid running dist-upgrade. It can cause problems with install and break the chroot environment.
i am on miui 8 stable global i installed and followed the guide above.. but then i opening the nethunter terminal and chose kali then the app closing auto.. why?how to fix this
feikacab said:
i am on miui 8 stable global i installed and followed the guide above.. but then i opening the nethunter terminal and chose kali then the app closing auto.. why?how to fix this
Click to expand...
Click to collapse
try clearing the app data and cache. if it still does not work do this:
1. Install terminal emulator or try nethunter terminal as root
2. open and type following command
-> su -c bootkali
Then provide feedback if it was successful or not.
Rishabh1x said:
try clearing the app data and cache. if it still does not work do this:
1. Install terminal emulator or try nethunter terminal as root
2. open and type following command
-> su -c bootkali
Then provide feedback if it was successful or not.
Click to expand...
Click to collapse
Missing a requiring folder. Something isn't right. Thatd telling me when I writing the above command and on nethunter emulator, same think on terminal emulator. And try to clear the cache and data both of apps.s sorry if I asking again, on which rom are u using nethunter? Which kernel? CAF KERNEL? On the first topic u dont say clearly which file we supposed to install. I didn't found any files on the link which named nethunter.zip and have 72 mb
feikacab said:
Missing a requiring folder. Something isn't right. Thatd telling me when I writing the above command and on nethunter emulator, same think on terminal emulator. And try to clear the cache and data both of apps.s sorry if I asking again, on which rom are u using nethunter? Which kernel? CAF KERNEL? On the first topic u dont say clearly which file we supposed to install. I didn't found any files on the link which named nethunter.zip and have 72 mb
Click to expand...
Click to collapse
Open the nethunter app and from left menu click Chroot manager and tell me what you see there.
Rishabh1x said:
Open the nethunter app and from left menu click Chroot manager and tell me what you see there.
Click to expand...
Click to collapse
i am now on exodus rom 6.0.1 last version.. i cant understand the intstructions from the first topic.. which file is nethunter.zip 72mb? i couldnt find it..U must update the first post and rename the zip folders because i cant understand which is zip folder named nethunter and have 72mb size... help me someone
feikacab said:
i am now on exodus rom 6.0.1 last version.. i cant understand the intstructions from the first topic.. which file is nethunter.zip 72mb? i couldnt find it..
Click to expand...
Click to collapse
http://en.miui.com/thread-301258-1-1.html
you will find 2 zips here the 72mb and one 2mb
Rishabh1x said:
http://en.miui.com/thread-301258-1-1.html
you will find 2 zips here the 72mb and one 2mb
Click to expand...
Click to collapse
yes but the zip file which have size 74 mb named update-nethunter-kenzo.. anyway i remove and install again the chroot, and now the console is fine, opening again perfect, but the problem is, when i type wifite my card doesnt shows up.. why? i bought it before 2 days ago.. and the otg cable too. my card is tl-wn722n
feikacab said:
yes but the zip file which have size 74 mb named update-nethunter-kenzo.. anyway i remove and install again the chroot, and now the console is fine, opening again perfect, but the problem is, when i type wifite my card doesnt shows up.. why? i bought it before 2 days ago.. and the otg cable too. my card is tl-wn722n
Click to expand...
Click to collapse
is the card itself working with otg? if there is an led light on card check if its blinking....and run lsusb command too
Rishabh1x said:
is the card itself working with otg? if there is an led light on card check if its blinking....and run lsusb command too
Click to expand...
Click to collapse
what do u mean by itself working with otg?
feikacab said:
what do u mean by itself working with otg?
Click to expand...
Click to collapse
I have heard that it requires a y cable to work because card doesn't draws enough power....so I said to check the led light or any other indication to know if card is powered properly
Rishabh1x said:
I have heard that it requires a y cable to work because card doesn't draws enough power....so I said to check the led light or any other indication to know if card is powered properly
Click to expand...
Click to collapse
dude the card working perfect and the cable too. the problem is, how do u know that nethunter isnt fake? upload screenshot from your phone while hacking wifi with wifite.
Related
Guide to making a Raring Ubuntu-core image on a Linux PC/laptop (NOT a virtual machine (VM)) for the purpose of installing it on your TF101.
All credit goes to the time and consideration x3maniac took to assist me with doing this!
OP for Tubutnu by x3maniac
This guide allows you to create a CORE Ubuntu image on your Linux box and then install it using the Tubuntu application for Windows. ***Please note, a CORE image does not contain a GUI. The gnome-core guide in the next link will walk you through the steps of installing the gnome-core GUI after you have made your fresh Raring Ubuntu-Core image.***
http://forum.xda-developers.com/showthread.php?p=37803357
***Why do I want to do this when the OP by x3maniac already has a Raring image for download? This guide is helping you make your own UPDATED image. There are daily builds of Raring and the image in the OP by x3maniac is over 2 months old as of this last update to this post.***
Please note that I am using a stock Ubuntu 12.10 laptop. I believe any variant of Ubuntu on a laptop or PC should work with this guide just fine.
Download the files first and then open Terminal to input our commands.
Download: http://cdimage.ubuntu.com/ubuntu-core/daily/current/raring-core-armhf.tar.gz
(You may optionally choose any date time from the Ubuntu-core folders. Ensure you are using the armhf tar.gz file.
Download (Recommended): https://www.dropbox.com/s/dqn9aa94oeju9kf/modules.tar.gz
Alternate Download: http://goo.im/dev/x3maniac/mod_firm_ext.zip
Alternate Download: http://www.novaspirit.com/downloads/mod_firm_ext.zip
After the downloads are complete, open Terminal and let’s get the image built!
A side note, I did not know that using ~ represented the user folder so if you do great, if not it will help you understand that /home/thomas can be represented using ~. So any subfolders of /home/thomas are included using the ~. I will specify my full paths and you can substitute the directories you wish to use. (Linux is still new to me too, I know enough to be dangerous!)
1. mkdir /home/thomas/images/ubuntu-raring
2. cd /home/thomas/images/ubuntu-raring
3. sudo apt-get install qemu
4. sudo apt-get install qemu-user-static
5. Now type this command: qemu-img create raring.img 200M
a.The Ubuntu Raring core image is approximately 186MB. So you understand at 186MB you only have 14MB available of extra stuff you can put into the image. You can resize up later but never down. You may specify any MB size you wish to use for the image. Experiment later, for now just make it 200M.
6. fdisk raring.img (you will see an error about invalid flag, this is ok, step 7 below is w for write, do proceed to step 7)
7. Type w to quit
8. Determine the file system you want (I used ext4)
a. Now type: mkfs.ext4 raring.img (according to config file of Tubuntu app, the partition is set up as ext3, you can use that as well)
b. A warning that your image is not a block special device (when choosing ext4) hit Y to proceed.
c. From /Ubuntu-raring directory type: mkdir mount
9. Now type: sudo mount –o loop ./raring.img ./mount
10. Now type: cd mount
10a. Now type: ls (you are only listing the mount directory to verify you have the lost+found directory) Go up one directory to /home/thomas/images/ubuntu-raring
11. Now type: cp /home/thomas/Downloads/raring-core-armhf.tar.gz /home/thomas/images/ubuntu-raring
12. Now type: sudo tar xvvf raring-core-armhf.tar.gz –C ./mount (you should not be in the mount directory)
13. Now type: sudo tar xvvf modules.tar.gz -C ./mount (you should not be in the mount directory)
14. sudo cp /usr/bin/qemu-arm-static /home/thomas/images/ubuntu-raring/mount/usr/bin (enter)
15. Now type: sudo chroot mount (if successful you will see /#)
16. Now type: passwd and make a password and confirm it.
17. Now type: exit
18. Now type: sudo umount ./mount
19. You should now be in the /home/thomas/images/ubuntu-raring/ directory. From here use the ls command and see your raring.img file.
20. You will need to copy this file your Windows box and use the Tubuntu installation application OR wheelie and nvflash commands. (Wheelie and nvflash commands are for more advanced users).
21. Click on this link for the next guide: http://forum.xda-developers.com/showthread.php?p=37803357
Hi, I have no problems creating the image and mounting it. But when chrooted:
apt-get update
0% [Working]qemu: Unsupported syscall: 374
Err http://ports.ubuntu.com raring Release.gpg
Something wicked happened resolving 'ports.ubuntu.com:80' (-11 - System error)...
I am on Ubuntu 12.10 64-bit. What could it be? qemu & qemu-user-static installed, qemu-arm-static copied...
Thank you and sorry for my CZ-english
onmail said:
Hi, I have no problems creating the image and mounting it. But when chrooted:
apt-get update
0% [Working]qemu: Unsupported syscall: 374
Err http://ports.ubuntu.com raring Release.gpg
Something wicked happened resolving 'ports.ubuntu.com:80' (-11 - System error)...
I am on Ubuntu 12.10 64-bit. What could it be? qemu & qemu-user-static installed, qemu-arm-static copied...
Thank you and sorry for my CZ-english
Click to expand...
Click to collapse
I need to update my guide. After the image is created on your Linux box you then install it on your tablet using tubuntu application. From the tab is where you run apt get commands. Sorry about that.
Sent from my SGH-T999 using Tapatalk 2
TomTcom said:
I need to update my guide. After the image is created on your Linux box you then install it on your tablet using tubuntu application. From the tab is where you run apt get commands. Sorry about that.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Oh, I see, but I think I will not be able to install apt-utils wpasupplicant if the wlan0 adapter is not working (I mean when wpasupplicant is not installed in the image).
onmail said:
Oh, I see, but I think I will not be able to install apt-utils wpasupplicant if the wlan0 adapter is not working (I mean when wpasupplicant is not installed in the image).
Click to expand...
Click to collapse
Yes you will because the core image has everything you need except the supplicant. You can make your own supplicant or copy from your working dual booted prime image of android. Let me try and update the guide later tonight.
Sent from my SGH-T999 using Tapatalk 2
onmail said:
Oh, I see, but I think I will not be able to install apt-utils wpasupplicant if the wlan0 adapter is not working (I mean when wpasupplicant is not installed in the image).
Click to expand...
Click to collapse
Ok, made several changes to my guide. Here's a couple things to note in case you missed them.
1. This guide helps you make an image of Raring Ubuntu-Core. This means there is no GUI and an additional post I have linked to for installing Gnome-Core (your actual desktop environment) for Raring.
2. After the Raring.img is made, you need to start on the Raring Gnome-Core guide and follow those instructions. That installation takes about 2 hours to download and answer questions because it is such a core install.
3. About the wifi, you will be using x3maniac's Tubuntu Windows installation application and starting from fresh with Prime Android and your new Raring image and if you follow the second guide it will walk you through setting up your wifi (do make sure you boot into Prime Android and set up your wifi first before booting to Raring.
4. Please familiarize yourself with the OP I have linked to for the x3maniac Tubuntu application.
It's not as hard as it may seem. After you do it a few times it's rather quick. Installing gnome-core by yourself is kind of slow and a bit tedious but the purpose of doing this was to have complete control of your image.
Later on if you are brave you can also build your own kernel as well and make changes. See my guide in my xda signature.
Hope this helps, thanks for using my guide. Hit the thanks button a couple of times and I'll make sure you get up and running.
TomTcom said:
Ok, made several changes to my guide. Here's a couple things to note in case you missed them.
1. This guide helps you make an image of Raring Ubuntu-Core. This means there is no GUI and an additional post I have linked to for installing Gnome-Core (your actual desktop environment) for Raring.
2. After the Raring.img is made, you need to start on the Raring Gnome-Core guide and follow those instructions. That installation takes about 2 hours to download and answer questions because it is such a core install.
3. About the wifi, you will be using x3maniac's Tubuntu Windows installation application and starting from fresh with Prime Android and your new Raring image and if you follow the second guide it will walk you through setting up your wifi (do make sure you boot into Prime Android and set up your wifi first before booting to Raring.
4. Please familiarize yourself with the OP I have linked to for the x3maniac Tubuntu application.
It's not as hard as it may seem. After you do it a few times it's rather quick. Installing gnome-core by yourself is kind of slow and a bit tedious but the purpose of doing this was to have complete control of your image.
Later on if you are brave you can also build your own kernel as well and make changes. See my guide in my xda signature.
Hope this helps, thanks for using my guide. Hit the thanks button a couple of times and I'll make sure you get up and running.
Click to expand...
Click to collapse
OK, thanks a lot, I will try. I have been playing with Tubuntu for some weeks and now I just started playing with building the image (and thinking about kernel...). Just now I am on Lubuntu (with xfce4 which I prefer) with 2.6 kernel and I am trying on my son's TF101 Raring with Gnome and 3.1 kernel. I am just thinking about the possibility when one system is "fine tuned" if it would be possible to copy it from one TF to the other one (I mean just the Linux partition).
onmail said:
Hi, I have no problems creating the image and mounting it. But when chrooted:
apt-get update
0% [Working]qemu: Unsupported syscall: 374
Err http://ports.ubuntu.com raring Release.gpg
Something wicked happened resolving 'ports.ubuntu.com:80' (-11 - System error)...
I am on Ubuntu 12.10 64-bit. What could it be? qemu & qemu-user-static installed, qemu-arm-static copied...
Thank you and sorry for my CZ-english
Click to expand...
Click to collapse
Replying to my own post because I must say - sorry, I am ehm an idiot... Because the only problem was - I have not edited the /etc/resolv.conf in the mount/etc directory. So now I can easily apt-get anything in the chroot! So it seems I can easily "prepare" an image with everything inside
onmail said:
Replying to my own post because I must say - sorry, I am ehm an idiot... Because the only problem was - I have not edited the /etc/resolv.conf in the mount/etc directory. So now I can easily apt-get anything in the chroot! So it seems I can easily "prepare" an image with everything inside
Click to expand...
Click to collapse
Did it work? I couldn't not without finding a way to inject VI into the image for editing the file. You can mess with permissions but it ultimately doesn't work from the Linux box.
If you are able to do it without the tab, post the instructions and I'll add it to my OP and give you the credit.
Sent from my SGH-T999 using Tapatalk 2
TomTcom said:
Did it work? I couldn't not without finding a way to inject VI into the image for editing the file. You can mess with permissions but it ultimately doesn't work from the Linux box.
If you are able to do it without the tab, post the instructions and I'll add it to my OP and give you the credit.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
It works I am just in the middle of installing xubuntu-desktop... I have made a quick & dirty bash script which will help to set hostname for the new TF101, root password, make a new user with password and add him to sudo group, automatically enable all the deb repos (universe etc.), set cpu freqs in rc.local and install some usefull utils (sudo cpufrequtils bash-completion wpasupplicant nano mc net-tools). And there is a second script you can run on the first run on TF101 which will resize the linux partition to its limit, copy the wpa_supplicant.conf from the android partition and starts wlan0 I will send this to you asap but will test this first. Hope my English is understandable
onmail said:
It works I am just in the middle of installing xubuntu-desktop... I have made a quick & dirty bash script which will help to set hostname for the new TF101, root password, make a new user with password and add him to sudo group, automatically enable all the deb repos (universe etc.), set cpu freqs in rc.local and install some usefull utils (sudo cpufrequtils bash-completion wpasupplicant nano mc net-tools). And there is a second script you can run on the first run on TF101 which will resize the linux partition to its limit, copy the wpa_supplicant.conf from the android partition and starts wlan0 I will send this to you asap but will test this first. Hope my English is understandable
Click to expand...
Click to collapse
Xubuntu on raring is working without any problems. Now I would like to get the nvidia accelerated drivers working. I have tried 2 or 3 3.1 kernels but still without success. Googling for some help on compiling 3.1 kernel.
onmail said:
Xubuntu on raring is working without any problems. Now I would like to get the nvidia accelerated drivers working. I have tried 2 or 3 3.1 kernels but still without success. Googling for some help on compiling 3.1 kernel.
Click to expand...
Click to collapse
Awesome! If you go to the op for x3maniac, you can view his github that has 3.1 kernel source. Take a look and see of it helps.
Sent from my SGH-T999 using Tapatalk 2
TomTcom said:
Awesome! If you go to the op for x3maniac, you can view his github that has 3.1 kernel source. Take a look and see of it helps.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
By the way, I have instructions for compiling the 2.6.36 kernel in my xda signature if that helps you.
Sent from my SGH-T999 using Tapatalk 2
TomTcom said:
By the way, I have instructions for compiling the 2.6.36 kernel in my xda signature if that helps you.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Yes, I know, I have already checked that. The 2.6 kernel is ok but I would really like to see the nvidia drivers working...
Had an issue mounting raring.img in step 9, had to run sudo fsck.ext4 "path to file" afterwards it mounted smoothly, dont know why tho.
JoinTheRealms said:
Had an issue mounting raring.img in step 9, had to run sudo fsck.ext4 "path to file" afterwards it mounted smoothly, dont know why tho.
Click to expand...
Click to collapse
Hmmm...did step 8a work ok?
Sent from my SGH-T999 using Tapatalk 2
TomTcom said:
Hmmm...did step 8a work ok?
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Afaik it did, gave me the mentioned prompt, and finished without error. Might have something to do with me running a x64 vm ? as i wasnt able to chroot either. Im trying to get this running on my tf300t, but its alot different to installing it on the trusty tf101
Cheers for the guide tho, help me understand the whole process :good:
JoinTheRealms said:
Afaik it did, gave me the mentioned prompt, and finished without error. Might have something to do with me running a x64 vm ? as i wasnt able to chroot either. Im trying to get this running on my tf300t, but its alot different to installing it on the trusty tf101
Cheers for the guide tho, help me understand the whole process :good:
Click to expand...
Click to collapse
I believe our dev x3 mentioned there were differences on a VM so it probably has to do with that.
Glad the guide is helpful. Welcome!
Sent from my SGH-T999 using Tapatalk 2
Nice guide ! I just crated a 13.04 raring img. ( Used VM Kubuntu 12.04 )
Need some updates but nice
And there is a problem with actual release, wpa supplicant is not pre installed and now I'm in the begining of your second guide and cant set up wifi.
I had to download package with chroot, then install with my tab same for nano
Anyway, it's just FYI I dont really need help
Kingzak34 said:
Nice guide ! I just crated a 13.04 raring img. ( Used VM Kubuntu 12.04 )
Need some updates but nice
And there is a problem with actual release, wpa supplicant is not pre installed and now I'm in the begining of your second guide and cant set up wifi.
I had to download package with chroot, then install with my tab, and now it doesnt find iwlan0
Anyway, it's just FYI I dont really need help
Click to expand...
Click to collapse
This guide wasn't designed to use wifi, only to correctly package it for flashing 13.04 directly to the tab. The next guide adds the gui and requires your Android to be set up to copy over the wpa_supplicant file before executing those commands.
Onmail was able to script more changes to the image from "chroot" but I didn't go that far, he was able to get the supplicant and other abilities such as adding to the package better than I did.
http://nethunter.com/
Here is the first version working on the Note 3.
Not sure if there is any interest in this.
Am sure we will soon see.
Screenshots running on Note 3 SN-9005
(This thread was originally a request)
dave7802 said:
http://nethunter.com/
Got very excited when i read up on this, Does anyone know of any working projects? Or is anyone willing to have a look. Out of my depth
Thanks
Click to expand...
Click to collapse
Only for Nexus devices
Spitwista said:
Only for Nexus devices
Click to expand...
Click to collapse
Honestly...... i never knew that, Considering its plastered all over there website and everything you read about.
Thats why i Requested a PORT.
dave7802 said:
Honestly...... i never knew that, Considering its plastered all over there website and everything you read about.
Thats why i Requested a PORT.
Click to expand...
Click to collapse
Not going to happen soon for Note 3
Spitwista said:
Not going to happen soon for Note 3
Click to expand...
Click to collapse
Are you for feel, Stop spamming this thread with crap that everyone knows about already, Ghheeeze!
This is a request for a Port.
Not a users opinion on Timescale, Nor what current devices are supported!!!
Wrong , I just patched a kernel for my HTC one and complied a CM11 kernel.
viperblood said:
Wrong , I just patched a kernel for my HTC one and complied a CM11 kernel.
Click to expand...
Click to collapse
So you have a bootable Nethunter version running?
Any instructions?
Updated OP if there is any interest in this.
I would be interested have you got a patched kernel and what rom did you use?
+1 im interested too
Sent from my hlte using XDA Free mobile app
im interested too!!
Plz post the steps you took and if you can the rom and kernel. Thx!
Excuse the delayed response here:
I will update the OP with instructions and files.
As a heads up, i wont be providing the kernel, nor will i be providing instructions on how to compile your kernel.
Why do you need a custom Kernel you may ask.
One or a few of the tools in Kethunter, will allow for packet injection.
You will need a comptable Wifi device for this to work, and for it to work, you need to compile the drivers into the kernel.
I wont support this for two reasons.
I cannot make a error / hassle free way to switch Wifi devices (You can only had one active Wifi device at a time, i switch from Command line, But not so easy for your none so savvy linux users)
I do not have time to compile nor support issues that crop up with the Kernel (My work life consumes to much of my personal time / hobbys)
What i will do, is provide a compiled Flashable Zip, that will include all the Nethunter files.
This includes the APK that drives all the commands
and all the System files required.
You should be able to update Chroot etc without any issues.
Just a few tools wont work, without correct wifi device to Sniff and inject.
The flashable file is near to 1Gb and i am in work, so will not be uploading it from here.
I will do it at home later this evening.
Have a look at this: github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
The example talks about note 3 but its a little bit outdated..
Any news for Kali NetHunter port for Note 3?
Im trying porting in my N3 (N900T) based in fw for Nexus 5 with Lollipop. Im working in booting kali but, now works:
- Nethunter APK (always open but now show options, screenshots added!)
- Kali boot in terminal but now only this and works apt-get (only test this now)
- Im trying fix buttons because this dont works when i push this. Only show error in terminal and dont works but manually this load kali.
PD: (sorry for my english)
I use this in 5.0.1 here the About:
Edit:
If any need im working in this script that boot kali (in theory but executing directly dont works).
http://pastebin.com/uYRmEwcs
I run Kali in console manually running this: In Terminal Emulator first write "su" and press "Enter" and next write this:
Code:
unset LD_PRELOAD
chroot /data/local/kali-armhf /bin/bash -l
With this Kali load in console. Works apt-get and other commands but im testing this. If any want try the steps are:
First download zip image (originally is for flashing in recovery but in my phone dont works or maybe works but I DONT TRY because is for other model xD).
Second, extract zip in PC and copy respective files and folders to the phone. For example: data folder in zip have 3 subfolders, copy all this to [d]data[/b] folder in phone in /data/ and remain files and folders.
In data/app folder have apks, install this. Have NetHunter apk (showed in screenshots), VNC and others. I recommend install all apks.
Next, in folder data/local have "kalifs.tar.bz2" file, this is the kali system. Unzip this in same folder but in phone. Final destination is: /data/local/kali-armhf (inside have bin, boot, captures, and other subfolders).
Next i dont know because i testing
please can u add support for the note 3 n900
Hello boys & girls!
I want to port the Kali Nethunter rom to the OnePlus 5.
Because it is my first time i need some people who can port it together with me.
Offensive Security has a nice tutorial on their website but its getting complicated when i come to the modify kernel part.
I really need some help with that.
More info:
offensive-security.com/kali-linux-nethunter-download
Porting info:
github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
Sorry due the spam restrictions i cant post the links.
If you got some tips or advice on how to do it let me know! :good:
Greetings,
Stefjoe
Let me see...
EDIT: Ok. I can't help sorry
_MartyMan_ said:
Let me see...
EDIT: Ok. I can't help sorry
Click to expand...
Click to collapse
Damn.... too bad
Any luck with this? Having a hard time myself.
I've looked at it myself and it seems complicated to me because I've never done that before but maybe anyone here is able to do it...
stefjoe said:
Damn.... too bad
Click to expand...
Click to collapse
Any progress?
The only problem to port nethunter to the OP5 is to add HID and CDROM support to the kernel but in order to do so, those patches have to be ported to kernel version 4.4+ ...
Otherwise packet injection over usb works fine on OOS.
I'm trying to compile a kernel with packet injection for RR.
Tell me if you want the kernel ... I've modded Adin's kernel (OOS) and Lightning kernel (LOS).
You will then have to install the nethunter chroot zip and you're good to go.
Arka1n said:
The only problem to port nethunter to the OP5 is to add HID and CDROM support to the kernel but in order to do so, those patches have to be ported to kernel version 4.4+ ...
Otherwise packet injection over usb works fine on OOS.
I'm trying to compile a kernel with packet injection for RR.
Click to expand...
Click to collapse
I think you can find the patch for HID and CDROM support here:
https://forum.xda-developers.com/showthread.php?t=2196707
https://github.com/CyanogenMod/andr...mmit/46bd47757a9f34c1d95dd2620414893212fb0526
FYI I don't know anything about patching kernels so i might be wrong
Well this leads to the hid patch :
github.com/pelya/android-keyboard-gadget/blob/master/kernel-3.4.patch
And this to something about the CDROM patch for the OP3 :
github.com/binkybear/androiddevs_kernel_oneplus_msm8996/commit/fc6f4b6b5f70509fbc5d583e8315f88119acb3c2
Not yet allowed to post links...
Anyway i need some help from other devs to port those to 4.4 :silly:...
Arka1n,
Hey,
I saw the post regarding putting nethuntr on the 1+ 5.
Are you willing to give me the needed kernel too plz?
Thanks
Jazzzzz
Arka1n said:
Tell me if you want the kernel ... I've modded Adin's kernel (OOS) and Lightning kernel (LOS).
You will then have to install the nethunter chroot zip and you're good to go.
Click to expand...
Click to collapse
Most definitely would like it! Message me
Arka1n said:
Tell me if you want the kernel ... I've modded Adin's kernel (OOS) and Lightning kernel (LOS).
You will then have to install the nethunter chroot zip and you're good to go.
Click to expand...
Click to collapse
I definitely would like it too !!!
Crappy upload rate so it may take some time...
[WOOT]
Here : https://forum.xda-developers.com/oneplus-5/development/burgerhunter-t3638810 :victory:
OnePlus5
I just got mine and want to do the same. I currently have nethunter on the original oneplus one and it works great. I am hoping it's the same process. Has anyone done it on any of the oneplus phones before? I ask because it took me at least 3 weeks every day after work playing with it. I bricked it maybe 3 times and OnePlus team remotely fixed it and finally I got it working. It wasn't easy.
If somebody has, please share your experience. I will try to pull up all of the links I used and videos I watched before I finally got nethunter to boot.
I want to do this to the oneplus 5 so I can use it for nethunter then wipe the onplus one and use it as my phone. Any help/advice is greatly appreciated. I will come back and post the info I used for the oneplus one and anything I find for the oneplus 5.
cheers
Nethunter for OnePlus 5
I found a way to "port" but not the entire kernel.
I managed to create chroot and can run Kali shell after one failed trail.
IMPORTANT : I went into bootloop(only boots into twrp) once while trying to remount /system as rw. But then I figured out SElinux must be disabled. You know what to do if you went into a bootloop, but just take a backup (nandroid backup didn't work for me)
And I also lost all of my data after I flashed stock recovery.
Everything seems to be working fine. But there is a problem with the Nethunter 3.0.
The
Code:
apt-get
does not work.
However, I pinged google.com and I get replies.
So, we need to install metapackages manually. At least for now.
What I did :
1. Download OnePlus One nethunter 3.0 ROM
2. Locate the apks (<nethunter_extracted>/data/app)
3. Install in this order :
• Nhterminal
• VNC
• Nethunter app
4. Open the Nethunter app and install the chroot
( I selected full chroot, however, you may choose minimal chroot too instead )
5. From any root explorer, we need to copy the files that are under /data/data/com.offsec.nethunter/files/scripts/*
to
/system/bin
(If you don't find the .../files/scripts, open Nethunter app and try again)
6. After copying the files to /system/bin,
There are three important files :
•bootkali
•bootkali_bash
•bootkali_login
We need to symlink these ↑
Important : we need to make the system writable first.
Run from AndroidSU shell:
Code:
#setenforce 0
Code:
#mount -o rw,remount /system
Then, linking :
Code:
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali /system/bin/bootkali
Code:
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali_bash /system/bin/bootkali_bash
Code:
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali_login /system/bin/bootkali_login
You can remount /system to read-only if you wish to.
7. Next, install BusyBox to /system/bin
Usually, it is installed to /su/xbin.
But we need to install to /system/bin too.
This step is necessary.
8. Now, the Kali shell works fine.
Try running
Code:
#bootkali
in AndroidSU shell and you should be in the Kali shell
You can also open Nhterminal app and select Kali.
9. You may install the other apks now.
Enjoy ~ !!
Unable to start monitor mode error showing pls rply
Whats the problem
---------- Post added at 02:39 AM ---------- Previous post was at 02:16 AM ----------
I m using oneplus 5 naughat 7.1 rom and kali nethunter installed.
But problem in monitor mode
Error:Newly created monitor mode interface wlan0mon is *NOT* in monitor mode.
Removing non-monitor wlan0mon interface...
WARNING: unable to start monitor mode, please run "airmon-ng check kill"
I m trying this command 'airmon-ng check kill' but same problem
Okay I don't have enough time to update this whole description, no one volunteered to host the VM so now I only have a Debian Buster WSL2 (Windows 10 latest) build environment. You can make kernels and ROMs from it. It has a built in XFCE4 and all the features listed below. It will build kernels for you from source and place them in AnyKernel3 zip files ready for flashing in the ~/ directory. Build scripts are provided for Op8T 5G custom and GPUOC RadioActive Kernels from my GitHub (modded for performance + battery). You can use this guide and get full audio and a GUI and all you need to build.
Try out this build for Debian Buster for WSL2:
First you need to ensure you are on a recent build of Windows, go to windows Updates in settings and download the latest.
Next open a Powershell Command Prompt in Admin mode. Type:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Restart your PC, then get back into an Admin Powershell prompt and type:
wsl --set-default-version 2
Next you can download this tar.gz distribution, it's quite big (6GB zipped -> 14GB unzipped). Apparently you can import a tar.gz directly, so I changed it from a .zip file to .gz: https://mega.nz/file/DkARXIjD#hGu8TjxaA__YrRsfqfWJw9-2ViyyntyK5U8JdClor6A
Easily move WSL distributions between Windows 10 machines with import and export!
wsl --import <DistributionName> <InstallLocation> <Full path to .tar/.tar.gz FileName>
After import, you should type: login: user password: user (also the sudo password) change the Global Git settings to your own email and username.
Open the command line.
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "[email protected]"
Then if you want to set up SSH between your WSL2 instance and NoMachine, download NoMachine here for your host PC: https://www.nomachine.com/download/download&id=8 then follow the steps to generate an SSH key, which will be located at ~/.ssh.
ssh-keygen -m PEM -t rsa -b 4096
Use the directory default ~/.ssh/
Then copy this file: ~/.ssh/id_rsa.pub to ~/.nx/config/authorized.crt
In the NoMachine GUI, you should select Configuration, Use a key based authentication key which you provide, then provide the path to the private key \\wsl$\debian\home\user\.ssh\id_rsa and check the box Import the key to the connection file.
To get to the XFCE4 GUI, you should type login: user password: user, then run /.nomachine.sh
It will post the IPV6 address you need to enter into the configuration into NoMachine on Windows 10. It changes every time you open it (WSL2 problem).
Now you should be able to connect to the GUI and use all the dev tools built in. Or you can just use the command line if you're more comfortable there. You'll probably need to do some more Googling to get everything setup the way you like. There are 2 examples in this file for an Op8T RadioActive modded kernel from my GitHub repos with a ./Build-Clang12.sh script you can use to see how to build a kernel. It it fully automatic. It will generate the zip specified in that file in the ~/ directory which can be flashed to a device via EX Kernel Manager or FK Kernel Manager. Best of luck!
Great job mate. I hope this is the kick off and boost up kernel development on the MI9 ??
Now THAT is what XDA is all about.
I'd like to get in to this type of development but simply don't have the personal time right now.
Hope this helps boost community support a bit.
This must've taken some time. Hats off to you sir.
kickassdave said:
Now THAT is what XDA is all about.
I'd like to get in to this type of development but simply don't have the personal time right now.
Hope this helps boost community support a bit.
This must've taken some time. Hats off to you sir.
Click to expand...
Click to collapse
Thanks Dave - this is the absolute easiest way to build a kernel. Yes it took forever to get working, a lot had to do with bad Xiaomi source code and Android 9 package requirements for building kernels. You can simply download, install, click Goto Build, click on QClang8_Build, copy/paste it's text from Geany into the open terminal, sit back and wait for the build to finish. Then once it completes, you click on Built Kernels and you have your image ready. A few more steps obviously outlined in the post to transfer to the host machine (cp Image-dtb /media/sf_VMxfer) and pack via Android Image Kitchen, copy to the device, and flash via TWRP. Most features require Magisk patching as well to enable altering in a kernel manager. The mentioned repo (mrslezak) has Fsync toggle, 830GPU overclock, and F2FS file system support (Mauro TWRP has just enabled it, so I'm using it now). I should note as well that this kernel has only been tested on MIUI and Xiaomi.eu builds thus far (anything based on Xiaomi MIUI should work - MIUI Global Dev, China Dev, Xiaomi.eu, MiGlobe, RevolutionOS, etc. as long as it is Android Pie).
I'm waiting on others to jump on board!!!! Hopefully it happens
Excellent guide, will work for almost all pie devices!
Great work OP :highfive:
Regards,
acervenky
Hi, @mslezak @acervenky Can you help me to build kernel for Stock Miui 10 for K20/Mi9t . I followed your guide setup all requirement i just changed the device code name from cepheus to davinci everything went well kernel complied and also created the boot.img with AIK but after flash it is through back me to recovery.
Can you Please help me with this.
@acervenky fixed that by applying the patch in the Desktop Mi9_Build_Tools/Required_Patches_to_Compile_Xiaomi_Source/cosmin_kernel-module.c copy that to /kernel/module.c, he can chime in here. Or check out his repo he has one on Github that compiles already QUAX kernel I believe with a bunch of stuff added already over stock.
Good job. Compiled a kernel for mi9t pro (raphael) with your detailed guide.
Can you help with "make modules" command?
I need to make xt_HL.ko module, but it not compiling ((
Not needed anymore, made it successfully.
Can you compile q kernels with this?
asgardpark said:
Can you compile q kernels with this?
Click to expand...
Click to collapse
Yes! Just don't replace .dtsi and module.c files for now.
Regards,
acervenky
New Q build VM coming soon. GCC10 x64 and Arter97 GCC9 x32 toolchain.
Just a notice here I have a VM almost ready to upload that can build Mi9 source. It's a ton of patches to stock code but I'll setup a repo with them already applied.
Can i use anykernel to make a flashable zip? Or do i have to use a diffrent approach?
https://mega.nz/#!voJEGIRC!r4FcV6zUlVbFExcidhL9JmgVZlu3IscYH-S5XlnTUJI Android Q VM - expands to 40gb on your hard drive so you don't run out of space. Builds a GCC10 patched version of Xiaomi Cepheus and Raphael kernels from my repo, forked from Xiaomi and commits outlining every step needed to get it to build. https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10
Yes AnyKernel3 is the easiest
asgardpark said:
Can i use anykernel to make a flashable zip? Or do i have to use a diffrent approach?
Click to expand...
Click to collapse
Sure AnyKernel3 is easy, take someone's kernel zip, insert your Image-gz.dtb or Image-dtb into the root of the zip, delete the other kernel, and you should be able to flash it.
got some compile errors today when i tried your wm
/home/user/toolchains/aarch64-linux-elf/bin/aarch64-linux-elf-ar: kernel/resource.o: No such file or directory
I'd first try a: make clean; and: make mrproper;....
But here's more info:
Double click the GoTo Build icon, a terminal will open in the source directory. Then in the terminal: cp /home/user/Desktop/Build GCC10 Cepheus.sh .; chmod +x "Build GCC10 Cepheus.sh"; ./"Build GCC10 Cepheus.sh"; Once done the kernel will be in /home/user/Cepheus-Raphael-Q-GCC10/out/arch/arm64/boot/Image.gz-dtb. /out9TP/ for Raphael, just substitute the build script you need.
If it then still won't build, you'll have to grab the repo again. Type: git pull
Or the safest is a complete re-download: cd ..; rm -rf Cepheus-Raphael-Q-GCC10; git clone --depth=1 https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10.git and repeat the prior copying of the build script to the source directory.
I tested this last night and it worked. If I tried to just drag the script into a terminal window it failed. There could be some dirty files in there not sure how that happened, but deleting and cloning again definitely works. I built both Cepheus and Raphael kernels last night in the VM off a fresh clone of the repo. I'd update I but it literally takes 6hrs + since the files are huge and take forever to compress and upload to Mega. And I have to delete so much off my VM and SSD just to do it. This way you learn something too
I first drag n dropped the file when i got the error, then i remembered when i compiled kernels for my raspberry pi's it also failed if i draged n dropped my build script so i did it the proper way and it worked
Thanks for your WM it's working great
mslezak said:
https://mega.nz/#!voJEGIRC!r4FcV6zUlVbFExcidhL9JmgVZlu3IscYH-S5XlnTUJI Android Q VM - expands to 40gb on your hard drive so you don't run out of space. Builds a GCC10 patched version of Xiaomi Cepheus and Raphael kernels from my repo, forked from Xiaomi and commits outlining every step needed to get it to build. https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10
Click to expand...
Click to collapse
Could you upload the VM to Google Driver? Thank you!
q659503934 said:
Could you upload the VM to Google Driver? Thank you!
Click to expand...
Click to collapse
Yeah if you buy me Google drive space I'd be more than happy to upload to Google Drive. I'm out of space man. If you run Windows 10 Preview WSL2 I have a 3.2GB build that kills everything else out there.
mslezak said:
Yeah if you buy me Google drive space I'd be more than happy to upload to Google Drive. I'm out of space man. If you run Windows 10 Preview WSL2 I have a 3.2GB build that kills everything else out there.
Click to expand...
Click to collapse
Do you have WSL2 tar file that can build Kernel?
I believe someone will build a nethunter kernel for 8 and 8 pro.
Actually I found one on github and I tried to build a kernel to flash , I can't boot my phone. MY system is H2OS 10.5.12, oos and h2os can use same kernel. Oh, if anyone try to make a kernel, dont for android 11, the system has so many limits and bad experients.
Wanted to ask the same. I want to buy a new phone that works with Kali nethunter and I can't decide to buy the OnePlus 7 or the 8. Since there is an official rom for the OnePlus 7, and for the 8 there is only a kernel on GitHub that no one is able to make it work. I'm afraid to buy the OnePlus 7 and when I buy it then they make a nethunter rom for OnePlus 8 :laugh:
Figured i would chime in on this as i was able to get it up and running on my OP8P
i downgraded to 10.5.12 by flashing via fastboot from here...
Guide: Restore OnePlus 8/8 Pro Back to Stock OxygenOS Software
Guide to restore OnePlus 8/8 Pro back to the stock OxygenOS software after rooting, installing custom ROMs, etc by flashing the factory image (fastboot ROM).
www.thecustomdroid.com
Then go through the setup and root the device with magisk
once it was back to a "stock" rooted android 10 OS i installed the generic arm kalifs image via TWRP
booted back up and installed the nethunter store app apk, then nethunter apk.
NetHunter | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics
© 2010-2019 Kali Linux, F-Droid, and Contributors
store.nethunter.com
go to nethunter store first and install the nethunter terminal. once installed go back to the store and check for updates.
after the check open nethunter and it should do some more updates and you should be able to start the chroot
I have hid (rucky) and monitor mode working for internal wireless
BUT!
i did the OTA update to android 11 and rucky disappeared and sudo apt-get update no longer worked
but i found this post here
Temporary failure resolving 'http.kali.org' · Issue #913 · offensive-security/kali-nethunter
Device: OnePlus+ OS version Lollipop Output of cat /proc/version in adb shell or NetHunter Terminal: [email protected]:~# cat /proc/version Linux version 3.4.67-cyanogenmod-g399b32b ([email protected]) (gcc versio...
github.com
and that fixed the apt-get update.
rucky is still non operational unfortunately
markmn123 said:
Figured i would chime in on this as i was able to get it up and running on my OP8P
i downgraded to 10.5.12 by flashing via fastboot from here...
Guide: Restore OnePlus 8/8 Pro Back to Stock OxygenOS Software
Guide to restore OnePlus 8/8 Pro back to the stock OxygenOS software after rooting, installing custom ROMs, etc by flashing the factory image (fastboot ROM).
www.thecustomdroid.com
Then go through the setup and root the device with magisk
once it was back to a "stock" rooted android 10 OS i installed the generic arm kalifs image via TWRP
booted back up and installed the nethunter store app apk, then nethunter apk.
NetHunter | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics
© 2010-2019 Kali Linux, F-Droid, and Contributors
store.nethunter.com
go to nethunter store first and install the nethunter terminal. once installed go back to the store and check for updates.
after the check open nethunter and it should do some more updates and you should be able to start the chroot
I have hid (rucky) and monitor mode working for internal wireless
BUT!
i did the OTA update to android 11 and rucky disappeared and sudo apt-get update no longer worked
but i found this post here
Temporary failure resolving 'http.kali.org' · Issue #913 · offensive-security/kali-nethunter
Device: OnePlus+ OS version Lollipop Output of cat /proc/version in adb shell or NetHunter Terminal: [email protected]:~# cat /proc/version Linux version 3.4.67-cyanogenmod-g399b32b ([email protected]) (gcc versio...
github.com
and that fixed the apt-get update.
rucky is still non operational unfortunately
Click to expand...
Click to collapse
Thank you for documenting your experience. I attempted to install the generic Kali kalifs but the HID interface was not detected. I assume due to lack of kernel
Are there any developments in kernels for oneplus 8 pro? The following link provides a kernel builder but it is unsuccessful:
GitHub - kimocoder/nethunter_kernel_oneplus8: NetHunter kernel for OnePlus 8 / 8 Pro
NetHunter kernel for OnePlus 8 / 8 Pro. Contribute to kimocoder/nethunter_kernel_oneplus8 development by creating an account on GitHub.
github.com
Go to the nethunter app in your phone
then click USB arsenal in the hamburger menu
Click the USB function drop down and select HID
Click ADB dropdown and select disable
Finally click the "set usb function" button down below
If it works you will get a "USB function set successfully" notification
now open rucky and type away
markmn123 said:
Figured i would chime in on this as i was able to get it up and running on my OP8P
i downgraded to 10.5.12 by flashing via fastboot from here...
Guide: Restore OnePlus 8/8 Pro Back to Stock OxygenOS Software
Guide to restore OnePlus 8/8 Pro back to the stock OxygenOS software after rooting, installing custom ROMs, etc by flashing the factory image (fastboot ROM).
www.thecustomdroid.com
Then go through the setup and root the device with magisk
once it was back to a "stock" rooted android 10 OS i installed the generic arm kalifs image via TWRP
booted back up and installed the nethunter store app apk, then nethunter apk.
NetHunter | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics
© 2010-2019 Kali Linux, F-Droid, and Contributors
store.nethunter.com
go to nethunter store first and install the nethunter terminal. once installed go back to the store and check for updates.
after the check open nethunter and it should do some more updates and you should be able to start the chroot
I have hid (rucky) and monitor mode working for internal wireless
BUT!
i did the OTA update to android 11 and rucky disappeared and sudo apt-get update no longer worked
but i found this post here
Temporary failure resolving 'http.kali.org' · Issue #913 · offensive-security/kali-nethunter
Device: OnePlus+ OS version Lollipop Output of cat /proc/version in adb shell or NetHunter Terminal: [email protected]:~# cat /proc/version Linux version 3.4.67-cyanogenmod-g399b32b ([email protected]) (gcc versio...
github.com
and that fixed the apt-get update.
rucky is still non operational unfortunately
Click to expand...
Click to collapse
going back to the top, have you tried to run your internal WIFI card on monitor mode and perform packets injection at the same time, did you get any results back as your wifi card supports injection mode..? do u have a custom kernel works for Nethunter embedded by enabling external Wifi cards, monitor mode support, packet injection tested).?
let me pls know if u go successfully thru this before, and what is ur best android OS you always prefer to use with Nethunter..?
Invincible-Man said:
going back to the top, have you tried to run your internal WIFI card on monitor mode and perform packets injection at the same time, did you get any results back as your wifi card supports injection mode..? do u have a custom kernel works for Nethunter embedded by enabling external Wifi cards, monitor mode support, packet injection tested).?
let me pls know if u go successfully thru this before, and what is ur best android OS you always prefer to use with
Click to expand...
Click to collapse
So i have monitor mode working. I have set it up as a custom command using the following
echo "4" > /sys/module/wlan/parameters/con_mode
the above is all that needs to be typed. i also have exec mode to run in background
now to stop monitor mode you need another custom command
ip link set wlan0 down && echo "0" > /sys/module/wlan/parameters/con_mode
wifi operations will return to normal however packet injection does not work. then again i have only tested on wifite. I have not tried aireplay-ng
also im reading that installing nexmon from the nethunter store may add injection but i am weary of flashing wifi firmware since i dont know how to back up the existing in case it does not work
markmn123 said:
So i have monitor mode working. I have set it up as a custom command using the following
echo "4" > /sys/module/wlan/parameters/con_mode
the above is all that needs to be typed. i also have exec mode to run in background
now to stop monitor mode you need another custom command
ip link set wlan0 down && echo "0" > /sys/module/wlan/parameters/con_mode
wifi operations will return to normal however packet injection does not work. then again i have only tested on wifite. I have not tried aireplay-ng
also im reading that installing nexmon from the nethunter store may add injection but i am weary of flashing wifi firmware since i dont know how to back up the existing in case it does not work
Click to expand...
Click to collapse
Thing like that needs some patches over the kernel build, unfortunately none of them available now to match with kernel vers 4.19, so the biggest wanted part still missing "injection packets" even the monitor mode is working by default or not.
However I did one for my OP8pro and I only was able to enable some external usb wireless which is I have"rt2800, mt7601uu" at least I can do airmon-ng and activate monitor mode to do wifi attacks successfully, but still probably we need something to be specially build for this marvelous device!!
How did you get the drivers for the rt2800 on there? ive been looking for a way to get rtl8812 & rtl8814 on mine but dont know how
markmn123 said:
How did you get the drivers for the rt2800 on there? ive been looking for a way to get rtl8812 & rtl8814 on mine but dont know how
Click to expand...
Click to collapse
They're all there by default, no big deal only you need to enable them one by one from menuconfig settings, then you ready to go with compiling kernel after!
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
GitHub - flypatriot/blu-spark_kernel_oneplus_sm8250: blu_spark NetHunter kernel for OnePlus 8/Pro
blu_spark NetHunter kernel for OnePlus 8/Pro. Contribute to flypatriot/blu-spark_kernel_oneplus_sm8250 development by creating an account on GitHub.
github.com
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
flypatriot said:
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
https://github.com/flypatriot/blu-spark_kernel_oneplus_sm8250.
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
Click to expand...
Click to collapse
it's better to include what features was added/enabled on this kernel..?
flypatriot said:
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
https://github.com/flypatriot/blu-spark_kernel_oneplus_sm8250.
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
Click to expand...
Click to collapse
*EDIT*
Jumped ahead of myself before I found your repo. Excellent work! Cant wait to see what this thing is really capable of. Would love to mess around wit hbluetooth when it starts working
What features do you have working on the kernel?
The only thing i need to get working is Bluetooth (RFCOMM) and support for rtl8812au, rtl8188eus which work on this phone according to @kimocoder
I also have monitor mode on the internal wifi SoC but no injection. Is that possible?
flypatriot said:
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
https://github.com/flypatriot/blu-spark_kernel_oneplus_sm8250.
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
Click to expand...
Click to collapse
Also source link isn't available
markmn123 said:
What features do you have working on the kernel?
The only thing i need to get working is Bluetooth (RFCOMM) and support for rtl8812au, rtl8188eus which work on this phone according to @kimocoder
I also have monitor mode on the internal wifi SoC but no injection. Is that possible?
Click to expand...
Click to collapse
Negative injection mode could not be presented on wlan0 since it's required some patches and I don't believe they're available for 4.19.81 kernel versions, however mon is already enabled by default and other features you add are enough to go ahead with nethunter.. Good job.. BTW the link for source you shared isn't available can you repost it again or you can drop the flashable.zip kernel itself let me test it on my phone first
Invincible-Man said:
it's better to include what features was added/enabled on this kernel..?
Click to expand...
Click to collapse
All features are listed in repo Readme.md
Invincible-Man said:
Also source link isn't available
Negative injection mode could not be presented on wlan0 since it's required some patches and I don't believe they're available for 4.19.81 kernel versions, however mon is already enabled by default and other features you add are enough to go ahead with nethunter.. Good job.. BTW the link for source you shared isn't available can you repost it again or you can drop the flashable.zip kernel itself let me test it on my phone first
Click to expand...
Click to collapse
Sorry for source links. It's really unavailable.
Plese try this one
GitHub - flypatriot/blu-spark_kernel_oneplus_sm8250: blu_spark NetHunter kernel for OnePlus 8/Pro
blu_spark NetHunter kernel for OnePlus 8/Pro. Contribute to flypatriot/blu-spark_kernel_oneplus_sm8250 development by creating an account on GitHub.
github.com
And you're quite right about internal wifi injection mode.
markmn123 said:
*EDIT*
Jumped ahead of myself before I found your repo. Excellent work! Cant wait to see what this thing is really capable of. Would love to mess around wit hbluetooth when it starts working
What features do you have working on the kernel?
The only thing i need to get working is Bluetooth (RFCOMM) and support for rtl8812au, rtl8188eus which work on this phone according to @kimocoder
I also have monitor mode on the internal wifi SoC but no injection. Is that possible?
Click to expand...
Click to collapse
Most of features were presented by @kimocoder. But unfortunately kernel from his repo didn't work for me. So I spent time to compile a new one.
flypatriot said:
Sorry for source links. It's really unavailable.
Plese try this one
GitHub - flypatriot/blu-spark_kernel_oneplus_sm8250: blu_spark NetHunter kernel for OnePlus 8/Pro
blu_spark NetHunter kernel for OnePlus 8/Pro. Contribute to flypatriot/blu-spark_kernel_oneplus_sm8250 development by creating an account on GitHub.
github.com
And you're quite right about internal wifi
Click to expand...
Click to collapse
flypatriot said:
btw I've done build my own nehunter kernel since last year almost based on elementalx kernel since this one has alot of good stuff in it ex. battery safer, gpu and cpu optimizations tho.. Can you also send me a flashable img or zip file to try this one as well..?
Click to expand...
Click to collapse
Check this one.
And can you share your kernel version just for testing.
flypatriot said:
Check this one.
And can you share your kernel version just for testing.
Click to expand...
Click to collapse
Currently im on OS10 kernel version 4.19.81
Invincible-Man said:
Currently im on OS10 kernel version 4.19.81
Click to expand...
Click to collapse
Mine is the same cause we don't have a normal working twrp for OOS 11.