Jump to content

STRING " " - use with numbers?


spywill

Recommended Posts

Hi

been play around with payloads with my keyCroc

when i use the STRING " " with numbers it will not print the number.

as you can see with the output no numbers get printed 

I tried without the quotient and i get the same result

so how do you get to print number in a string?

this is the payload 

MATCH 12
QUACK STRING "1"
QUACK ENTER
QUACK STRING "2"
QUACK ENTER
QUACK STRING "3"
QUACK ENTER
QUACK STRING "100"
QUACK ENTER
QUACK STRING "\100"
QUACK ENTER
QUACK STRING "\$300"
QUACK ENTER
QUACK STRING "\$1"
QUACK ENTER
QUACK STRING "$1"
QUACK ENTER

this is the output in terminal
└──╼ $12 - this is the match
└──╼ $
└──╼ $~
└──╼ $^[[2~
└──╼ $\^[[2~
└──╼ $$~^[[2~
└──╼ $$

this is the output in text editor notepad

12

 

 

 

 

 

\

$

$

 

I know about

"1234"   - str - string

1234     -int - intrgers

int()        -convert a str to a int

and so on

does this work the same for the croc?

 

can anyone else get the 

QUACK STRING " " with any numbers between the quotient to print back or is it just my croc?

any help thanks

 

 

 

 

 

 

 

Link to comment
Share on other sites

Iam having trouble with all my payloads because they will not print any numbers at the STRING lines

Iam doing something wrong?

Is anyone else have the same problem with adding numbers to the STRING?

Link to comment
Share on other sites

I just tested my Croc for number typing and it works just fine. 

Payload

MATCH 12

QUACK ENTER
QUACK STRING "1"
QUACK ENTER
QUACK STRING "2"
QUACK ENTER
QUACK STRING "3"
QUACK ENTER

typed 

12

1

2

3

In fact when i typed twelve above it auto ran the Payload and typed the 1 2 3. 

 

Link to comment
Share on other sites

2 minutes ago, Cribbit said:

Is num lock on i had this trouble.


For some reason when I do a QUACK STRING “8” it send the KEYPAD 8 (00,00,60) not the top row 8 (00,00,25) and if Num lock is off getting the UP ARROW

yes you nailed it when num lock is on i get

12

1

2

3

When num lock is off i get

12

 

 

 

Nothing as you can see but the enters. 

Link to comment
Share on other sites

Spywll this must be a bug. Hopefully the Hak5 team are working on this for 1.4. after all if you are quacking a number you want a number. And you can stop a large proportion of payloads working just by turning NumLock off.

@Darren Kitchen (sorry to ping you but just bring this issue to your attention)

Link to comment
Share on other sites

5 hours ago, Cribbit said:

Spywll this must be a bug. Hopefully the Hak5 team are working on this for 1.4. after all if you are quacking a number you want a number. And you can stop a large proportion of payloads working just by turning NumLock off.

@Darren Kitchen (sorry to ping you but just bring this issue to your attention)

totally agree this needs to be fixed in firmware version 1.4

Link to comment
Share on other sites

A work around for this is to swap the order of the lines in the language file. The Q and QUACK scripts seem to take the last instance in the file and 'quack' out that key code.

The files are in the languages folder on the udisk. Try using to attached file instead to see if it helps. Make sure to unplug and re-connect the KeyCroc to enable the changes.

us.json

Link to comment
Share on other sites

  • 1 month later...

It appears that in the language.json files that there are two entries for the number characters. I am thinking that one entry is the key scan code for the keys on the number key pad and the other is for the top row numbers.  Really same names for two things?  Quacking a string should behave as if typing that string.  Of course there should be a way of quacking numeric key pad keys as numbers or commands.  What we have here is wrong and if there is some theory it was right - not documented.

I lost a chunk of my life realizing this problem - I should have checked in to this forum sooner. I do feel a little foolish not figuring it out sooner on my own. I don't like to feel foolish even when I was.  I am thinking that this could be solved with a new language.json file but I think Hak5 should provide the file.

Link to comment
Share on other sites

PS - I hit this when playing with the crocctl-ipinfo address identifying example provided with the product?  Did Hak5 actually try their own examples with this firmware release? I foolishly thought that an example would work.   Here is an idea - use quack scripts to test your releases.

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...