Results 1 to 15 of 15

Thread: Usb hid attacks not working

  1. #1
    Join Date
    2020-Jan
    Posts
    12

    Usb hid attacks not working

    Usb hid attacks not working for mi
    Oneplus 7
    Hid interface not enabled or something wrone with the permission

  2. #2
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    HID is still work in progress.
    Having said that, we've just had a breakthrough and are in need of betatesters before integrating the changes into the app.
    Would you mind testing a new kernel package for us? Are you on Android 10?

  3. #3
    Join Date
    2020-Jan
    Posts
    12
    Yes, I'm on android 10. I can test a new kernel for you.

  4. #4
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    Quote Originally Posted by Vitkolker View Post
    Yes, I'm on android 10. I can test a new kernel for you.
    Awesome, thanks for helping out - you're a champ!

    You only have to download the updated kernel package from here and install it in TWRP.
    That'll re-enable the init.rc file which adds userspace usb gadget functions.

    UPDATE 29/02/2020: the above link now points to the updated kernel package with rtl8812au/rtl8814au wifi injection support!

    The gadget functions have to be enabled manually for now - we're about to add a menu to the nethunter app to do that.
    To enable adb, mtp, and hid against windows targets, just run this in a root terminal session:

    Code:
    setprop sys.usb.config "win,mtp,hid,adb"
    Your HID interfaces should now be active.

    You probably want to create a custom command for that in the NetHunter app, e.g.:

    Code:
    setprop sys.usb.config "win,mtp,hid,adb", exit
    The available modes on the OnePlus 7 are:

    win,hid
    win,hid,adb
    win,hid,mass_storage
    win,hid,mass_storage,adb
    win,mass_storage
    win,mass_storage,adb
    win,mtp,hid
    win,mtp,hid,adb
    win,rndis
    win,rndis,adb
    win,rndis,hid
    win,rndis,hid,adb
    win,rndis,hid,mass_storage
    win,rndis,hid,mass_storage,adb
    win,rndis,mass_storage
    win,rndis,mass_storage,adb
    mac,ecm
    mac,ecm,adb
    mac,ecm,hid
    mac,ecm,hid,adb
    mac,ecm,hid,mass_storage
    mac,ecm,hid,mass_storage,adb
    mac,ecm,mass_storage
    mac,ecm,mass_storage,adb
    mac,hid
    mac,hid,adb
    mac,hid,mass_storage
    mac,hid,mass_storage,adb
    mac,mtp,hid
    mac,mtp,hid,adb
    mac,mass_storage
    mac,mass_storage,adb

    The difference between Windows and Mac are the device identifiers we use, i.e. we pretend to be an Apple keyboard when using "mac".
    Last edited by re4son; 4 Weeks Ago at 00:44. Reason: Update link to point to new kernel with additional wifi support

  5. #5
    Join Date
    2020-Jan
    Posts
    12
    I flash the kernel, runing the code in terminal in androidsu, correct me if I'm wrong, but this does not work for me.

  6. #6
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    Quote Originally Posted by Vitkolker View Post
    I flash the kernel, runing the code in terminal in androidsu, correct me if I'm wrong, but this does not work for me.
    Sorry for that. We found a bug in the anykernel installer. It didn't actually copy the new file across
    Would you mind trying this updated one?

    https://build.nethunter.com/contribu...020.2-rc31.zip

    Update: I've also updated the link in the above post to point to the new kernel.

    Thanks for helping with this Vitkolker. We much appreciate it.
    Last edited by re4son; 4 Weeks Ago at 00:45. Reason: Update link to point to new kernel with fix and additional wifi support

  7. #7
    Join Date
    2020-Jan
    Posts
    12
    In this time it works.

  8. #8
    Join Date
    2020-Jan
    Posts
    12
    After runing a code.

  9. #9
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    Awesome. Thanks for testing.

    We can now work on a menu for the NetHunter app so you won't have to type these commands anymore.

  10. #10
    Join Date
    2020-Jan
    Posts
    12
    Thank you for your work.

  11. #11
    Join Date
    2019-Nov
    Posts
    57
    Is this fix likely to be available to most of us eventually? Or are you just supporting Android 10?

  12. #12
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    Yes, it's going to be included in the 2020.2 release. Do you think we should release an image for Android 9? I was hoping we would only need 10 but I'm open to suggestions

  13. #13
    Join Date
    2019-Nov
    Posts
    57
    My 2 cents: Very few of your supported devices support Android 10 stock, and LineageOS 17 is still in the works - no stable images are available for any devices as of this writing. Most of your supported devices are on either Marshmallow or Oreo, etc., with a few supporting Pie by way of a custom ROM, such as LineageOS.

    Certainly get 10 working and stable, but then consider adding to 9, and maybe even 8.1.

    Furthermore, I must say that although I am adept at Linux, I'm not so experienced with Android stuff. If someone were able to create and maintain a table of what features and OS' work on which devices, it might help folks make a more informed decision as to what to buy when they consider running NetHunter.

  14. #14
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    Great point. This is supposed to be that list:

    https://www.kali.org/docs/nethunter/...vices-and-roms


    And the downloads on this page are a subset of the above table that should cover the most popular devices:


    https://www.offensive-security.com/k...nter-download/


    It's hard to maintain that table and any help is greatly appreciated.

  15. #15
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    313
    Quote Originally Posted by aaronouthier View Post
    Is this fix likely to be available to most of us eventually? Or are you just supporting Android 10?
    I was only referring to the OnePlus 7 though. The other devices should all have HID support via kernel patches.

Similar Threads

  1. AR9485 - Wps attacks not working from Kali 2017.1 and on
    By an0n1m0 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2018-08-09, 11:12
  2. HID attacks bug
    By Reginiano in forum NetHunter General Questions
    Replies: 2
    Last Post: 2016-10-18, 16:52
  3. HID and BadUSB attacks not working on NetHunter 1.1.0 and Nexus 4
    By z0o0o0oz in forum NetHunter General Questions
    Replies: 0
    Last Post: 2015-01-13, 01:24
  4. HID Attacks not working
    By koolkool887 in forum NetHunter General Questions
    Replies: 6
    Last Post: 2014-11-18, 03:37
  5. USB Attacks not working
    By outofbounds in forum NetHunter General Questions
    Replies: 1
    Last Post: 2014-11-03, 22:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •