hak5/bashbunny-payloads

CH Layout not working as expected

C0N5T-RUCT0R opened this issue · 7 comments

I don't know what layout the ch layout is, but it doesn't work for me. I'am working with an QWERTZ CH-DE Layout. CAn you fix this or ad a new Layout please?

What i expect:

STRING normal
ENTER
STRING § 1 2 3 4 5 6 7 8 9 0 ' ^
ENTER
STRING q w e r t z u i o p ü ¨
ENTER
STRING a s d f g h j k l ö ä $
ENTER
STRING < y x c v b n m , . -
ENTER
STRING normal end
ENTER
STRING shift
ENTER
REM everything shift
STRING + " * ç % & / ( ) = ? `
ENTER
STRING Q W E R T Z U I O P è !
ENTER
STRING A S D F G H J K L é à £
ENTER
STRING > Y X C V B N M ; : _
ENTER
STRING shift end
ENTER
STRING alt-gr
ENTER
REM everything alt gr
STRING ¦ @ # ° § ¬ | ¢ ´ ~
ENTER
STRING € [ ]
ENTER
STRING { }
ENTER
STRING
ENTER
STRING alt gr end

What i get...

result.txt

I can reproduce this. The characters 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, . are a numpad issue. It should work fine if you activate the numlock key. Obviously, this is not intended behaviour and it should prefer the normal keys over the numpad ones. Maybe it's better to remove them from the language file, I don't know. I'll research a bit about this.
The other two characters, which did not work as expected, were $ and {. These just had wrong keycodes, I don't know why. Maybe the layout changed or I just typed it in wrong. I'll provide a fix in a PR.
These were all the wrong characters, right?

Hi C0N5T-RUCT0R,
I encounter the same problems as you, except that you managed to make the symbol \ (AltGr key + ><)
In the result.txt we see that the \ is present while in the script there is only one space... I couldn't reproduce that!
Can you tell me how you manage to do that?
Thanks !!!
Sorry for my bad english.

Hi,
Well, I didn't use the numpad. I went through every line of my Keyboard. First without shift or alt-ground, then with shift and than with alt-grnd.

You are right, I have forgotten to add \ at the last line.

Thank you,
I didn't use the numpad either, but it's still crazy that I can't write the \ with my bash bunny and its "ch" language...
impossible to write a simple command like C:\ etc... I'm desperate..
Are you getting there?

No, the BashBunny uses the Numpad. It preferres the keycodes of the numbers on the numpad over the keycodes of the numbers located on the second top row of the keyboard. If you instruct the BashBunny to print 1, it will simulate a 1 press on the numpad. Thus, for it to work, the Numlock key needs to be activated.
As I already stated above, I think the best way to work around that is to remove the Numpad keycodes from the language file.

at githubkuyaya:
For me the numbers work well, only these two symbols \ { does not print...
An idea?