Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError attempting to execute duckencoder.py #12

Open
hazryder opened this issue Oct 10, 2018 · 1 comment
Open

TypeError attempting to execute duckencoder.py #12

hazryder opened this issue Oct 10, 2018 · 1 comment

Comments

@hazryder
Copy link

hazryder commented Oct 10, 2018

I have my .duck script and duckencoder.py in the same directory.

When I run this command:

python duckencoder.py -i rickroll.duck -o rickroll.bin

I get the following TypeError:

E:\Data\Dev\RubberDucky\Scripts>python duckencoder.py -i rickroll.duck -o rickroll.bin
Traceback (most recent call last):
  File "duckencoder.py", line 571, in <module>
    main(sys.argv[1:])
  File "duckencoder.py", line 555, in main
    result = DuckEncoder.generatePayload(source, lang)
  File "duckencoder.py", line 380, in generatePayload
    payload = DuckEncoder.parseScript(source, keyboard, language)
  File "duckencoder.py", line 346, in parseScript
    l = l.strip().replace("\r\n", "").replace("\n", "")
TypeError: a bytes-like object is required, not 'str'

The contents of the .duck script are:

GUI r
STRING chrome.exe
ENTER
DELAY 2000
STRING youtube.com
ENTER
TAB
TAB
TAB
STRING never gonna give you up
ENTER
@thrust3d
Copy link

thrust3d commented Aug 12, 2023

Did you solve it?

EDIT: use python 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants