Vallandingman Posted February 8, 2013 Share Posted February 8, 2013 (edited) Hey guys, I've gotten everything to work fine and I understand how the duck works. The only issue I have is that the only way I can get my payloads to run is when I click the button on the duck encoder. The program wont run just by plugging the duck in. Thoughts on how to fix this? Thanks! Edited February 8, 2013 by Vallandingman Quote Link to comment Share on other sites More sharing options...
overwraith Posted February 8, 2013 Share Posted February 8, 2013 Re-flashing the ducky might work. Do you have any special firmware installed? Quote Link to comment Share on other sites More sharing options...
Vallandingman Posted February 8, 2013 Author Share Posted February 8, 2013 I downloaded the firmware and placed it in the micro SD card(1G) along with the ducky encoder. Other than that, it's just my helloworld.txt file and the inject.bin that I created through MS powershell. Quote Link to comment Share on other sites More sharing options...
overwraith Posted February 8, 2013 Share Posted February 8, 2013 (edited) It sounds like you didn't go through the flashing process, so you sill have the stock firmware. Post the helloworld.txt file here so we can see it, there might be something there. Also, make sure you are using the encoder correctly. Typically the inject.bin is not created in power shell, but is created in the command line. example of command: J:\> java -jar J:\Encoder_V1.2\duckencode.jar -i J:\HelloWorldFolder\HelloWorld.txt -o J:\inject.bin Also, make sure the inject.bin is on the root of the SD card. Edited February 8, 2013 by overwraith Quote Link to comment Share on other sites More sharing options...
Vallandingman Posted February 8, 2013 Author Share Posted February 8, 2013 > Typically the inject.bin is not created in power shell, but is created in the command line. Sorry this sort of confused me. Power shell is the command line application I'm using. Also, what is the flashing process I need to go through? Says I currently can't upload the text file, but here is what is in it.. REM Author: - REM Description: Hello World STRING Hello World ENTER Thanks so much for the input! Quote Link to comment Share on other sites More sharing options...
overwraith Posted February 8, 2013 Share Posted February 8, 2013 Ok, I just tried to use power shell, and you're right, its just like the command line, and should work for our purposes. We are going to change the hello world you are using so we can actually see the output in a text program, so here's the hello world program I put on the duck site. DELAY 3000 GUI R DELAY 500 STRING notepad DELAY 500 ENTER DELAY 750 STRING Hello World!!! ENTER For now don't even bother with trying to flash the ducky, it isn't strictly required for learning purposes. The following is what I would type into Power shell assuming that both the encoder, and the hello world text document are both on the root of the drive: Windows PowerShell Copyright © 2012 Microsoft Corporation. All rights reserved. PS C:\Users\UserName> J: PS J:\> java -jar encoder.jar -i HelloWorld.txt PS J:\> Quote Link to comment Share on other sites More sharing options...
Vallandingman Posted February 8, 2013 Author Share Posted February 8, 2013 Okay I changed the hello world text, changed the PS script to fit the drive (K:) My PS script was PS C:\> K: PS K:\> java -jar encoder.jar -i helloworld.txt I got an error that states, > Error: Unable to access jarfile encoder.jar Quote Link to comment Share on other sites More sharing options...
Vallandingman Posted February 8, 2013 Author Share Posted February 8, 2013 Here is a picture for better reference. Quote Link to comment Share on other sites More sharing options...
Vallandingman Posted February 8, 2013 Author Share Posted February 8, 2013 I believe since you named yours 'encoder' is why it didn't work. I should place 'duckencode.jar' instead, right? Quote Link to comment Share on other sites More sharing options...
overwraith Posted February 8, 2013 Share Posted February 8, 2013 (edited) yes, replace with duckencode .jar the name of the encoder changed between versions 1.2 and 2.1. Edited February 8, 2013 by overwraith Quote Link to comment Share on other sites More sharing options...
Vallandingman Posted February 8, 2013 Author Share Posted February 8, 2013 Awesome, it worked!! I think it may have been something I was doing wrong with my -o command. Thank you so much again! Quote Link to comment Share on other sites More sharing options...
overwraith Posted February 8, 2013 Share Posted February 8, 2013 (edited) Good, and remember, the -o command is optional, if the encoder and text file is located on the root of the flash drive you don't even need to type it. Edited February 8, 2013 by overwraith Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.