PDA

View Full Version : Htc One M7 Porting Question



zinister
2014-10-22, 00:31
Hello , i would like to build and add support for my phone , HTC ONE M7 , i am really excited and have been constantly researching what i would need to be able to port / bring this to my device .

If you would like to test the rom, please post below or send me a message.
If enough people are interested i will release the build :)

Update 1:

Turns out building nethunter is a lot easier than I would have thought .

Update 2:

Read comment number 3

muts
2014-10-22, 08:26
Hi Zinister,

Good luck! Basically, you need to build a working kernel for your device, then patch it with HID and wifi injection patches, while maintaining a sane kernel config file. Once you have a working kernel you can embed it in the NetHunter rootfs or build script. I've seen a couple of ports for the Oneplus and HTC devices, perhaps you want to ping the devs behind those ports to hear their experiences. Check http://cyberkryption.wordpress.com/2014/10/13/the-quest-for-kali-nethunter-part1/ and https://github.com/l0rdg3x

zinister
2014-10-22, 22:26
Hi Zinister,

Good luck! Basically, you need to build a working kernel for your device, then patch it with HID and wifi injection patches, while maintaining a sane kernel config file. Once you have a working kernel you can embed it in the NetHunter rootfs or build script. I've seen a couple of ports for the Oneplus and HTC devices, perhaps you want to ping the devs behind those ports to hear their experiences. Check http://cyberkryption.wordpress.com/2014/10/13/the-quest-for-kali-nethunter-part1/ and https://github.com/l0rdg3x


Thank you ! That is very help full , i know how to run the emulators for custom roms , so hopefully i can get good at this and help others . Thank you so much for your help.

simonpunk2016
2015-02-13, 10:08
zinister, any news updated? I also want the kali nethunter porting to my htc one. But apparently I am not developer, and I am just seeking answers by googling.
What I have now is only the full kali linux-armel installed in my phone, and with the badusb script 80% working(As I don't how to setup the hosts file....) So, I think I have installed all the usable functions of kali except the HID attack.. And I have been seeking the way to complie the HID function to my phone for almost two weeks, but still nothing works...So, I am looking for someone to teach me how to configure the HID function when compiling the kernel....hope someone can help me out of this shxt...

zinister
2015-02-22, 05:17
Hey , I have a kernel I comiled its for m7spr , but it should work for m7 as well . Here's the kernel , you'll need to build yourself a new Kali Linux chroot . You can follow the tutorial in the readme on the git page .

Note that only the rt2800usb drivers on there and to make sure you install cm12 as that's what the kernel is for.

Flash this in recovery , remember to make a backup just in case! Everything else works in the kernel , incudling the bad USB and HID attacks , support for mutiboot as well.

https://docs.google.com/file/d/0B6dre0hp81f-TE5TaHBBLTJxalk/edit?usp=docslist_api

simonpunk2016
2015-02-25, 13:30
Thx for your reply, actually I have also compiled cm11 for my htc one m7(GSM) with custom kernel supports badUSB script, HID function, kon-boot(drivedroid), wn722n and awus036h usb drivers, except multiboot. And what I am doing now is using the traditional method--linux deploy to run kali linux image in stead of kali nethunter, as so far I don't know how to compile it by myself. And I still have to figure out how the HID attacks works with the python scripts as I will look for those necessary script by google......btw, what is multiboot used for???

zinister
2015-03-11, 23:20
Thx for your reply, actually I have also compiled cm11 for my htc one m7(GSM) with custom kernel supports badUSB script, HID function, kon-boot(drivedroid), wn722n and awus036h usb drivers, except multiboot. And what I am doing now is using the traditional method--linux deploy to run kali linux image in stead of kali nethunter, as so far I don't know how to compile it by myself. And I still have to figure out how the HID attacks works with the python scripts as I will look for those necessary script by google......btw, what is multiboot used for???

Take a look at the git source , then run the command and choose 88 to build rootfs

DixonCider
2015-04-15, 07:55
Hey , I have a kernel I comiled its for m7spr , but it should work for m7 as well . Here's the kernel , you'll need to build yourself a new Kali Linux chroot . You can follow the tutorial in the readme on the git page .

Note that only the rt2800usb drivers on there and to make sure you install cm12 as that's what the kernel is for.

Flash this in recovery , remember to make a backup just in case! Everything else works in the kernel , incudling the bad USB and HID attacks , support for mutiboot as well.

https://docs.google.com/file/d/0B6dre0hp81f-TE5TaHBBLTJxalk/edit?usp=docslist_api

Where is this tutorial you're talking about? Can you please post the link to the git? Gonna try and get this working on my m7 tonight, just don't know how to build a new chroot

bahador_b_92
2015-05-11, 14:10
Hi,

I have a HTC One (m7) with ElementalX Kernel and Revolution HD ROM. I have installed Linux Deploy and downloaded Kali image. In Kali I have installed "wifite" (uses "reaver"). when I run "wifite" command it shows me:

1. PHY Interface Driver Chipset
2. phy0 p2p0 bcmsdh_sdmmc unable to detect for sdio 0x02d0:0x4335
3. phy0 wlan0 bcmsdh_sdmmc unable to detect for sdio 0x02d0:0x4335

after connecting my TP-Link TL-WN722N wireless adapter to my HTC , I can confirm that Kali recognizes the wireless adapter by using "lsusb" command, however "wifite" or "reaver" cannot recognize it and asks me to select the number of devices to put into monitor mode (1-3) which basically shouldn't work, since they are both internal devices (I think p2p0 should be my bluetooth!) and their chipsets can not be detected.

Any ideas?

zinister
2015-07-20, 06:46
You need a kernel that has the support for your wireless adapter . The biggest thing in nethunter is the kernel and that's what you need to build for yourself.

superaldo
2015-08-27, 20:29
Hello,

I also have a HTC one m7 with cm11s rom android 4.4.4, is posible to share your kernel or rom? is posible to do that?
I try to fallow this guide http://forum.xda-developers.com/android/software-hacking/guide-convert-phone-tablet-pwn-phone-t2852652/post54925307#post54925307 (Convert Any Phone/Tablet into KaliPwn Phone/Tablet) but I confuse in the part of "<username> must be replaced by the actual username of the user who is authorized to access the phones over USB." and "Download Source (any kernel source can be used)"
can you help me with some tips?

Greetings,