Jump to content

Can't understand this error I'm getting


Anti_SS
 Share

Recommended Posts

Hi,

I'm new to using the Rubber Ducky, and when i compile the script I wrote, this is the output I get:

Hak5 Duck Encoder 2.6.4



Loading File ..... [ OK ]

Loading Keyboard File ..... [ OK ]

Loading Language File ..... [ OK ]

Loading DuckyScript ..... [ OK ]

Error on Line: 8

java.lang.NumberFormatException: For input string: "3500\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 11

java.lang.NumberFormatException: For input string: "100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 13

java.lang.NumberFormatException: For input string: "100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 15

java.lang.NumberFormatException: For input string: "100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 17

java.lang.NumberFormatException: For input string: "3100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 19

java.lang.NumberFormatException: For input string: "100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 21

java.lang.NumberFormatException: For input string: "100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

Error on Line: 23

java.lang.NumberFormatException: For input string: "100\"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:580)

at java.lang.Integer.parseInt(Integer.java:615)

at Encoder.encodeToFile(Encoder.java:240)

at Encoder.main(Encoder.java:134)

DuckyScript Complete..... [ OK ]

 

 

 

Here's the script itself, it's quite simple.

REM this script is for OSX.

DELAY 3500

GUI M

GUI SPACE

DELAY 100

STRING photo booth

DELAY 100

ENTER

DELAY 100

ENTER

DELAY 3100

GUI SPACE

DELAY 100

STRING terminal

DELAY 100

STRING say you just got your picture taken

DELAY 100

ENTER

 

I am using OSX. When I compile the .txt file, it still saves as inject.bin. However, when I put the sd in the ducky and try to run it, nothing happens. I'm assuming it's because of the errors when I compile, so how would I fix these?

 

Thank you in advance!

Link to comment
Share on other sites

Update: I never flashed my Ducky. However, I'm encountering a separate error now. When I flash it, I get:

There was an error flashing, make sure your Ducky is in DFU mode

However, it is in DFU mode. I inserted it with the button held down, and the light is red. How can I fix that?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

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