how to install rtl8187 drivers on Nethunter/termux - General Topics

hello I recently installed kali nethunter but found that a driver must be installed in it for it to support a wireless USB adapter so I went and installed a Termux version and found the same problem happening I kept searching for different ways but none worked so I asked the official kali linux discord for help and someone told me that I needed to recompile the device kernel and install a kernel driver (I don't know what any of that means since I am total noobie when It comes to nethunter since it is new to me unlike regular kali linux) so i would for someone that has the time to help and guide me through the process thanks in advance

Related

Add an Specific Driver to Android 2.3

Hi, I have an Android TV device that has Android 2.3 (it's a Chinese device) and I'd like to know if someone can help me adding a driver to it. Let me explain...
I've done some research and found that there is a driver for the DVB-T that I want to add. It's here (cateee.net - linux database):
DVB_MB86A20S
So, my question is basically, it's doable without having to compile Android ? I do have root access to the device, but I don't know how to include the Linux driver to an Android device and ensure it's working....
Thanks.

Newbie Need Help About Driver Compile... :'(

Hi Everyone;
I have bought a new usb-rj45 adapter for my Samsung Galaxy Tab2 P5110 Only Wifi tablet... (its rooted and busybox pro installed on it)
After i bought, i put it in tablet via its original USB Otg Cable the i do "lsusb" in the terminal emulator but i cant see anything new in its output...
When i searched usb-rj45 adapte cd and i see linux driver there but the are three files named;
***.c
***.h
Makefile
When i search internet a little bit and i understand that i need to compile drivers with these files to make .ko file as driver...
I bought and installed c4droid and its GCC and SDL Plugin when i try compile it but i get an error that it screenshot is attached to this message... (On the other hand may be i can do this compile for tablet on my pc after i installed Android SDK but i dont know how can i do it unfortunately...)
So please help me how can i use this usb-rj45 adapter on my tablet...
Thanks so much who help me...
Best regards...

[Q] kali linux on xoom - fb* kernel issue

hello,
i've got motorola xoom MZ604 (wifi-only), and following this link from kali linux, and also this one, i've managed to install kali linux natively on my xoom.
it is booting, i can login, i can connect to internet via wpa_supplicant and other methods, but i have one big issue - i can't get the Xserver to run.
looking it up - it is related to the fb* issue on the nvidia tegra here.
but when i try to recompile the kernel with the fix on that link, the compilation fails everytime.
is there a way to apply this patch to my already installed kali?
or rather - any other way to solve this?
thanks,
Ilan
ilanp13 said:
hello,
i've got motorola xoom MZ604 (wifi-only), and following this link from kali linux, and also this one, i've managed to install kali linux natively on my xoom.
it is booting, i can login, i can connect to internet via wpa_supplicant and other methods, but i have one big issue - i can't get the Xserver to run.
looking it up - it is related to the fb* issue on the nvidia tegra here.
but when i try to recompile the kernel with the fix on that link, the compilation fails everytime.
is there a way to apply this patch to my already installed kali?
or rather - any other way to solve this?
thanks,
Ilan
Click to expand...
Click to collapse
i just planning up install
ilanp13 said:
hello,
i've got motorola xoom MZ604 (wifi-only), and following this link from kali linux, and also this one, i've managed to install kali linux natively on my xoom.
it is booting, i can login, i can connect to internet via wpa_supplicant and other methods, but i have one big issue - i can't get the Xserver to run.
looking it up - it is related to the fb* issue on the nvidia tegra here.
but when i try to recompile the kernel with the fix on that link, the compilation fails everytime.
is there a way to apply this patch to my already installed kali?
or rather - any other way to solve this?
thanks,
Ilan
Click to expand...
Click to collapse
Generally, it's bad practice to patch a compiled kernel. Occasionally I'll run into issues like this and I have to start over in a new source folder and try to recompile from scratch. If it succeeds, you know something was changed in your source other than your patch that borked it. If it fails, it sounds like the patch may not work.

help with nethunter and mulitrom

So I got twrp 3.0.2_2016-04-17 p1 multirom working. I installed a few roms in primary and have moved to secondary but can only boot while in primary slot (kexec issue I assume) Really trying to get kali up and running and not so much kexec (will move back and forth for now) . found a lots of readme which looked good but diddn't quite work out. when kali would boot the nethunter terninal app would fail saying it couldn't find bootkali_login and I could never really uninstall changeroot. from twrp file manager I deleted /data/local/nhunter* and did complete reinstalls and still same results. I installed nh-op1-kali3.0 over cm13 and also found all in one 7.1 lineageos vers 14.0-20170101-unoffical and same results. I cannot find a cm11 or cm12 compatible with kali3.0 should I step down to kali2.0? any help or direction is greatly appreciated.
@seanwlk
Why dual boot? What do you need multirom for?
You can flash LineageOS 14.1 root it, and install busybox.
Then you need the nethunter apk and install chroot from there. (Chose either minimal or full doesn't matter)
The "issue" comes now basically I've tried multiple times to make the nethunter terminal work but it doesn't connect to Kali. So I managed to find a workaround which is basically using Kali over SSH and I suggest you JuiceSSH (but every SSH client will work) just connect to 127.0.0.1 (which is localhost, where Kali runs) but since the SSH service doesn't start on boot you will need to start it manually on each reboot through the nethunter app by creating a custom command that will be sent to Kali
Code:
service ssh start
Now you'll be able to connect and use Kali terminal.
It may not be perfect but I use it on daily bases.
I do this since COS 13 days.
Here I add some useful material.
Thanks for the responses. I found flashing the cm 13.1.2 original image when my phone would keep failing installs helped when I kept getting failed installs. got it and running on cm12 5.1.1 works great.... except for when it suddenly and randomly freezes the whole system with the screen on. I ran the Y-cable service and tried it out and it worked great. wifite as normal. I will give lineage14.1 a try. thanks for the heads up. as far as using multirom..... I found it copies the files from secondary to primary faster than a nandroid restore. I think its because the partitions are not zipped. 64gb is more than enough space that speed vs disk space wins. I have been using an lg g3 for years now and I really do like opo. got my tempered screen and tpu case yesterday so it's now traveling safely with me . My only concerns with lineage14.1 is that it might not support the wifi adapters in the kernel for external wifi adapters.
seanwlk said:
Why dual boot? What do you need multirom for?
You can flash LineageOS 14.1 root it, and install busybox.
Then you need the nethunter apk and install chroot from there. (Chose either minimal or full doesn't matter)
The "issue" comes now basically I've tried multiple times to make the nethunter terminal work but it doesn't connect to Kali. So I managed to find a workaround which is basically using Kali over SSH and I suggest you JuiceSSH (but every SSH client will work) just connect to 127.0.0.1 (which is localhost, where Kali runs) but since the SSH service doesn't start on boot you will need to start it manually on each reboot through the nethunter app by creating a custom command that will be sent to Kali
Code:
service ssh start
Now you'll be able to connect and use Kali terminal.
It may not be perfect but I use it on daily bases.
I do this since COS 13 days.
Click to expand...
Click to collapse
Nice!
I was having the same issue when I was running it on cm13. every time I tried to run android terminal in chroot kali it would fail cause it couldn't find bootkali. I thought it was just a chroot issue but if it works through ssh than that works for me! come to think of it. I never even tried vnc'ing cause I assumed it was not working. ssh much better than vnc for cpu overhead for sure.
rp201 said:
Nice!
I was having the same issue when I was running it on cm13. every time I tried to run android terminal in chroot kali it would fail cause it couldn't find bootkali. I thought it was just a chroot issue but if it works through ssh than that works for me! come to think of it. I never even tried vnc'ing cause I assumed it was not working. ssh much better than vnc for cpu overhead for sure.
Click to expand...
Click to collapse
I've tried VNC for the sake of curiosity. I installed xrdp but I can't login for some reason it gets stuck on the login form. But no big deal I don't need UI.
I hope I helped somebody, not sure if this method I use got ever published on the Internet ?
I installed latest nightly of lineage14.1 5/29/2017. Debug is enable and allowed over adb. (root priv for apps not built into lineage) then after inital boot twrp install of superSUv2.82 then your busybox and your nethunter. its not working for me. ssh service wont start. chroot is installed but not working. I'm obviously doing something wrong here. I can SU in terminal but cannot run "bootkali" or "bootkali_login" which is the error nethunter app is giving me.
rp201 said:
I installed latest nightly of lineage14.1 5/29/2017. Debug is enable and allowed over adb. (root priv for apps not built into lineage) then after inital boot twrp install of superSUv2.82 then your busybox and your nethunter. its not working for me. ssh service wont start. chroot is installed but not working. I'm obviously doing something wrong here. I can SU in terminal but cannot run "bootkali" or "bootkali_login" which is the error nethunter app is giving me.
Click to expand...
Click to collapse
Are you sure that the chroot is correctly installed?
Should be mounted here
Code:
/data/local/nhsystem/kali-armhf
Also when you boot the phone does the nethunter notification popup saying the boot went all OK?
How are you starting the SSH service?
Here check these screenshots: https://imgur.com/a/TYqoc
Also remember that Kali has an user and password so connect to SSH with the following credentials:
Code:
Host: 127.0.0.1
User: root
Pass: toor
seanwik,
yes to all of that I got everything the same. I was connecting as root to 127.0.0.1 but I was also thinking sshd.conf needed to be set to allow for root access possibly? but I never had to before so I have to guess sshd did not launch at start up. are you using a thrid party kernel?
rp201 said:
seanwik,
yes to all of that I got everything the same. I was connecting as root to 127.0.0.1 but I was also thinking sshd.conf needed to be set to allow for root access possibly? but I never had to before so I have to guess sshd did not launch at start up. are you using a thrid party kernel?
Click to expand...
Click to collapse
None of those commands start at startup, for the same reason nethunter terminal doesn't work, to have to run that custom command from within the app, only that way works. Also I don't use SuperSU but the root enabler for LineageOS so I used privacy guard as root manager. Don't think that's the issue, was just saying.
I'm currently running LineageOS kernel, but this method worked even with Boeffla
Look:
(sorry for my ****ty voice ? )
I fully clean reinstalled my ROM like 2 days ago and did this as usual and works.
thanks for the video and your time. did a new install. stilll same results. ssh service wont start.
thanks!
rp201 said:
thanks for the video and your time. did a new install. stilll same results. ssh service wont start. is privacy guard an app or settings in lineageOS?
thanks!
Click to expand...
Click to collapse
Developer options > manage root access. (Screenshot attached)
But it doesn't matter, I used Kali with SuperSU and magisk and it worked.
Does it tell you something when you tap on RUN on the custom command ?
Quick recap:
1-Flash Lineage
2-root
3-boot and install BusyBox and nethunter app
3-through nethunter app install Kali chroot (it will download the image and mount it in /data/local/nhsystem)
4-Reboot
5-Create custom command to start SSH service
6-Run SSH service
7-Connect to SSH with a client
I also just remembered you can see if the service is up from the nethunter app, check attachments.
LineageOS just updated to 5th june I updated and the chroot still works.
okay so I reinstalled and enabled the use of privacy guard in lineageOS first boot setup. when I go under privacy I dont see any settings to give busybox installer root access. dev-options only has settings to give root access to "enable root adb only" it does not have the usual "enable root adb and apps" any help would be great.
in my previous installs nethunter full not miniimal is installed. I have the ablility to install chroot and remove it. after reboot I would get status bar message like you saying nh service system is up and running. created entry like you the same. Thank you for helping. trying to figure out how to enable root without installing supersu in twrp like you.
rp201 said:
okay so I reinstalled and enabled the use of privacy guard in lineageOS first boot setup. when I go under privacy I dont see any settings to give busybox installer root access. dev-options only has settings to give root access to "enable root adb only" it does not have the usual "enable root adb and apps" any help would be great.
Click to expand...
Click to collapse
Because you didn't root with the LineageOS root zip
But as I said I don't think that's the issue.
I attach you the needed zips, the installer and the remover. Just flash through TWRP instead of using SuperSU.
Then go to developer options and in that menu it will appear more options select apps and ADB (check screenshot in the attachments)
This is just to put you in my same conditions but I don't believe it will fix the issue.
After much help from seanwik and 24 nhinstall.logs...its up and running connecting over ssh. I didn't stop there. After a little playing I got nhterm to work with Kali term instead of suandroid. Found a setting in dev options. Still does not launch within nethunter but I'm working on it.
I remember reading you have to uninstall nhterm.apk nh.apk vnc.apk and install nhterm vnc then nh in that order. Some of my playing included manually installing all the nh.apks from the nh.zip using xplore .
Nhterm
rp201 said:
Nhterm
Click to expand...
Click to collapse
Glad it works, but I'll stick to JuiceSSH because I love the interface and it's features. And since I use for remote accessing my servers it's much easier for me to have everything in the same library ?

Problem with my TL-WN722N V 1.10 on Nexus 5 6.0.1 plugged with OTG

Hello,
I have the 1.10 model of the TL-WN722N plugged in with a standard OTG adapter and it doesn't work.!
I installed Nethunter via the TWRP method by installing the image file in recovery mode, after unlocking the OEM via windows with adb.
I have version 6.0.1 of Android on Nexus 5 and I connect the key with a standard OTG adapter.
Currently I have done a lot of research and I can't figure out how to fix the problem.
I also try to install applications that manage and enable the OTG.
Here are screenshots of the commands I tried and with the version of my Android.
sorry i can't put an external link
The biggest problem is that the modules do not install, I have already tested some kernel and none install the modules so we get the problem cited above.
sorry i can't put an external link
I have spent whole days looking for a solution, looking at forum pages and I don't understand.
I managed to understand that there is a bone for the phone + the kernel and the full kali pack (tell me if I'm wrong).
But I don't know why the modules don't want to install.
The phone works very well in OTG.
I tested with several OTG cables and it works perfectly with a USB key.
I'm on Nexus 5 with original android 6.0.1 in marshmallow and I'm trying to connect a TL-WN722N 1.10 to the phone.
In short I hope you can help me because I am surpassing, I am completely neophyte but that fascinates me.
Sorry for the translation, I'm French.
Here is the name to my gitlab issue:
"Problem with my TL-WN722N V 1.10 on Nexus 5 6.0.1 plugged with OTG"
I tested the kernel that I was offered and it doesn't work.
Especially since I can't understand in what order I should install each file and if I should "reboot" between each "install".
Thank you for taking the time to read this block and I hope you can help me.
If any info is missing, tell me.
Thank you
A +
andurilmike
andurilmike said:
Hello,
I have the 1.10 model of the TL-WN722N plugged in with a standard OTG adapter and it doesn't work.!
I installed Nethunter via the TWRP method by installing the image file in recovery mode, after unlocking the OEM via windows with adb.
I have version 6.0.1 of Android on Nexus 5 and I connect the key with a standard OTG adapter.
Currently I have done a lot of research and I can't figure out how to fix the problem.
I also try to install applications that manage and enable the OTG.
Here are screenshots of the commands I tried and with the version of my Android.
sorry i can't put an external link
The biggest problem is that the modules do not install, I have already tested some kernel and none install the modules so we get the problem cited above.
sorry i can't put an external link
I have spent whole days looking for a solution, looking at forum pages and I don't understand.
I managed to understand that there is a bone for the phone + the kernel and the full kali pack (tell me if I'm wrong).
But I don't know why the modules don't want to install.
The phone works very well in OTG.
I tested with several OTG cables and it works perfectly with a USB key.
I'm on Nexus 5 with original android 6.0.1 in marshmallow and I'm trying to connect a TL-WN722N 1.10 to the phone.
In short I hope you can help me because I am surpassing, I am completely neophyte but that fascinates me.
Sorry for the translation, I'm French.
Here is the name to my gitlab issue:
"Problem with my TL-WN722N V 1.10 on Nexus 5 6.0.1 plugged with OTG"
I tested the kernel that I was offered and it doesn't work.
Especially since I can't understand in what order I should install each file and if I should "reboot" between each "install".
Thank you for taking the time to read this block and I hope you can help me.
If any info is missing, tell me.
Thank you
A +
andurilmike
Click to expand...
Click to collapse
You didn't mean the whole time the 6.1 factory image, or did you?
It was to 90 % over the thread of Lineage the talk.
Anyhow, anything which you got linked by the fellow user and me, were apart from the official image from Offensive's site, solely for Lineage meant.
Before I forget, here the newly build chroot, with all the new apps, wallpaper, boot animation from the nightlys:
https://mega.nz/#!9MZ3nAKJ!oQFguK9vltGN5TNjxcfZmQvM2xg3_EzNWTz5roBN-Hk
What do you not understand about the flash procedure in particular?
PS
As re4son wrote does the hammerhead kernel not install any modules.
I don't know what you flashed before though.
What did happen with Lineage+Opengapps+root+installer+kernel(or together, as my previous upload..?
I haven't the best experiences with Lineage, but it depends.
May I ask if you had time to take a look from the rom I linked you at the beginning?
It's the most reliable, although a bit outdated rom named NetHunter OS.
https://gist.github.com/binkybear/8f0f4eee292d5263372f47c3c3edd08e
Post your questions as detailed as possible..so let's wrap it up.
469/5000
A miracle happened there and installing nethunteros-nethunter-hammerhead-cm-14.1-hammerhead and then kalifs-armhf-full.tar.xz for the chroot and it works well.
The only problem is that when I try to install packages:
E: unable to locate kali-linux nethunter package
E: unable to locate kali-linux package
E: unable to locate kali linux-all package
But other than that, everything works.
Victory.
Thank you all for your patience and your advice.
andurilmike said:
469/5000
A miracle happened there and installing nethunteros-nethunter-hammerhead-cm-14.1-hammerhead and then kalifs-armhf-full.tar.xz for the chroot and it works well.
The only problem is that when I try to install packages:
E: unable to locate kali-linux nethunter package
E: unable to locate kali-linux package
E: unable to locate kali linux-all package
But other than that, everything works.
Victory.
Thank you all for your patience and your advice.
Click to expand...
Click to collapse
No need to thank me.. I am glad, that you were able to get it to work finally, after that number of failed attempts..
I went with the NetHunterOS rom version, which I linked you in gitlab
https://build.nethunter.com/nethunt.../LOS-hammerhead-14.1-20170102-nethunteros.zip
SuperSU has already been integrated in this variation as well.
After you flash the obligatory OpenGapps version for the same Android version and architecture 7.1 [arm], you are basically good to go.
I prefer the package size 'pico' - but this goes after your personal liking.
In my experiences is it better to use the "older" kalifs filesizes and not the newer ones with ~ 1,3 GB -- it seems to break somehow the rom/kernel if you use the newer ones
https://build.nethunter.com/kalifs/kalifs-20171118/kalifs-armhf-full.tar.xz
I don't know if you can use the internal wifi chipset, as well as a external adapter for wireless pentesting with the version wich you choose, but this is possible with the one I linked yesterday and again above.
A problem is that
(sudo) apt-get (dist-)upgrade
Click to expand...
Click to collapse
and seemingly further package upgrades are breaking the rom.
Although theoretically should you be able to install stuff.
Did you try it over the terminal, or just the NetHunter.apk?
Best regards l
Thank you.
I use an external wifi antenna, the TL-WN722N v 1.10 in USB OTG.
I tried to install metapackages via nethunter.apk
Nethunter cannot detect a HID interface.
Duckhunter HID does not work.
Thank you
A +
andurilmike said:
Thank you.
I use an external wifi antenna, the TL-WN722N v 1.10 in USB OTG.
I tried to install metapackages via nethunter.apk
Nethunter cannot detect a HID interface.
Duckhunter HID does not work.
Thank you
A +
Click to expand...
Click to collapse
Yeah, I just meant with the mentioned rom/setup, are you able to use the internal Wifi chipset (Broadcom4339) in monitor mode and could forgo the external adapter.
HID should work as well.
No, I cannot use the internal wifi card in monitor mode or the HID device.
I don't understand why?
Thank you

Categories

Resources