PDA

View Full Version : Nethunter 3.0 Nexus 5 Lollipop 5.1.1 HID Attack Not Typing "g" key.



CeEe4
2016-09-16, 15:34
Hi everyone

I have a strange problem with the HID attack, i am using Nethunter 3.0 on a Nexus 5 on Lollipop 5.1.1

I can start and run a very basic script.



DELAY 1000
GUI r
DELAY 500
STRING cmd
ENTER
DELAY 500
STRING ipconfig
ENTER
DELAY 7000
STRING exit
ENTER


When this runs it executes and loads cmd and only types "ipconfi" and then enter and obviously it can not find any program and fails because it is misspelled. I have tried it again using notepad and in the script tell it to type the alphabet, it does this all apart from the letter "g".:confused:

Has anyone experienced this before and can help me out please.

Thanks to everyone for making nethunter such a great piece of software.

CeEe4
2016-10-13, 08:52
For future reference i managed to fix the problem with the following info

modify your keyseed.py file in nh_files/modules.

In 'uk' : {...}:
Add this line to define the UK \ "\x5C": "\\x00\\x00\\x00\\x64\\x00\\x00\\x00\\x00",
Add this line to define the UK | "\x7C": "\\x02\\x00\\x00\\x64\\x00\\x00\\x00\\x00",

In 'uk_bin' : {...}:

Add this to define letter G and g (not sure why for this one) - only if you're having issues with it.
"\x47": "left-shift g", "\x67": "g",

Hope it helps someone.