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

[fixed?] duckhid types ">>" before writing a string #127

Closed
ugu11 opened this issue Oct 1, 2017 · 13 comments
Closed

[fixed?] duckhid types ">>" before writing a string #127

ugu11 opened this issue Oct 1, 2017 · 13 comments

Comments

@ugu11
Copy link

ugu11 commented Oct 1, 2017

I've been using the P4wnP1 and recently I noticed that if I just want to write something, let's say "Hello World!", on the notepad for example, it writes ">>Hello World!" instead of just "Hello World!". Is it normal and what can I do to fix this??

@ugu11
Copy link
Author

ugu11 commented Oct 1, 2017

And also it ignores the "-" character for example in the portuguese layout

@mame82
Copy link
Collaborator

mame82 commented Oct 4, 2017

Could you provide steps to reproduce?
Are you using SendKeys from the backdoor payload or outhid from an SSH shell or payload?

Or are you refering to a DuckyScript used with outduck from Shell/payload or SendDuckyScript from backdoor payload?

@mame82
Copy link
Collaborator

mame82 commented Oct 4, 2017

Sorry, I ignored the duckhid in the title. Could you please provide a sample of a DuckyScript which causes this error?

@ugu11
Copy link
Author

ugu11 commented Oct 5, 2017

assign custom drivelabel to UMS

UMSLABEL="HUG4ND"
fatlabel $wdir/USB_STORAGE/image.bin $UMSLABEL

=============================

USB setup

=============================

USB_VID="0x1d6b" # Vendor ID
USB_PID="0x1002" # Product ID
USE_ECM=false # we need no Linux/Mac networking
USE_RNDIS=true # RNDIS network device to enable hash stealing
USE_HID=true # HID keyboard to allow entering cracked password
USE_UMS=true # enable USB Mass Storage

use LED based HID keyboard test, to fire callback to onKeyboardUp()

HID_KEYBOARD_TEST=true

overwrite defaul keyboard language

lang="pt"

function onKeyboardUp()
{

cat <<- EOF | duckhid
	DELAY 2000
	STRING Hello World! -
	ENTER
	DELAY 1000
EOF

echo "Just testing - _ %" | outhid

}

@ugu11
Copy link
Author

ugu11 commented Oct 5, 2017

for example

@mame82
Copy link
Collaborator

mame82 commented Oct 6, 2017

I'll try to reproduce this next week

@ugu11
Copy link
Author

ugu11 commented Oct 6, 2017

ok

@ugu11
Copy link
Author

ugu11 commented Oct 12, 2017

So @mame82 , how's this issue going? Any progress?

@mame82
Copy link
Collaborator

mame82 commented Oct 12, 2017

I'm able to reproduce and preparing fix

mame82 added a commit that referenced this issue Oct 12, 2017
@mame82
Copy link
Collaborator

mame82 commented Oct 12, 2017

Should be fixed, in fact this was caused by a very small typo ... only one "comma" has to be removed.

@ugu11
Copy link
Author

ugu11 commented Oct 13, 2017

Oh nice! I'll try it when I get home.

@mame82 mame82 changed the title duckhid types ">>" before writing a string [fixed?] duckhid types ">>" before writing a string Oct 13, 2017
@ugu11
Copy link
Author

ugu11 commented Oct 14, 2017

It works like a charm!!! Great job!

@mame82
Copy link
Collaborator

mame82 commented Oct 14, 2017

Thx for reporting

@mame82 mame82 closed this as completed Oct 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants