Jump to content

Bruteforce encoder issue

Go to solution Solved by TeNeX,

Recommended Posts

hi, well i'm new about it and i saw that many people want to bruteforce windows login screen, so i was trying to create a script to do this but the script don't compile :(

root@kali:/tmp# java -jar duckencode.jar -i bruter.txt
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NullPointerException
at Encoder.main(Encoder.java:111)
... 5 more
root@kali:/tmp# wc -l bruter.txt
73664533 bruter.txt

root@kali:/tmp# head bruter.txt
DELAY 1000
STRING aaaaa
DELAY 1000
STRING aaaab
DELAY 1000
root@kali:/tmp# tail bruter.txt
DELAY 5000
DELAY 1000
STRING zzzzz
DELAY 1000

can anyone help me, i think or accidentally found a vuln, or :P the encoder can't support long files than X KB or MB

Link to comment
Share on other sites

Try working with the online Duck Toolkit by 411. Click Online Encoder and see if that works there. If I've missed my guess, I'd say that you haven't specified the output. This just generates the inject.bin and it will save you from going through the command line/terminal with multiple errors.

Link to comment
Share on other sites

  • 3 weeks later...

root@kali:/media/A87B-A154# java -jar duckencode.jar
Hak5 Duck Encoder 1.2

usage: duckencode -i [file ..] encode specified file
or: duckencode -i [file ..] -o [file ..] encode to specified file

-i [file ..] Input File
-o [file ..] Output File

Script Commands:
ALT [Char | END | (ESCAPE | ESC) | F1...F12 | SPACE | TAB]
CONTROL | CTRL [(BREAK | PAUSE) | Char | F1...F12 | (ESCAPE | ESC)]

and with the new encoder:

root@kali:/media/A87B-A154# cd DuckEncoder_2_6_3/
root@kali:/media/A87B-A154/DuckEncoder_2_6_3# ls
encoder.jar README resources
root@kali:/media/A87B-A154/DuckEncoder_2_6_3# java -jar encoder.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Encoder : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: Encoder. Program will exit.
root@kali:/media/A87B-A154/DuckEncoder_2_6_3# java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)

Link to comment
Share on other sites

  • Solution

ok i found the mistake:

the new compiler CAN'T RUN WITH OPENJDK, only works with sun java i test it on a windows machine with oracle java :(

F:\DuckEncoder_2_5>java -jar encoder.jar
Hak5 Duck Encoder 2.6.2

Usage: duckencode -i [file ..] encode specified file
or: duckencode -i [file ..] -o [file ..] encode to specified file

-i [file ..] Input File
-o [file ..] Output File
-l [file ..] Keyboard Layout (us/fr/pt or a path to a

Script Commands:
ALT [key name] (ex: ALT F4, ALT SPACE)
CTRL | CONTROL [key name] (ex: CTRL ESC)
CTRL-ALT [key name] (ex: CTRL-ALT DEL)
CTRL-SHIFT [key name] (ex: CTRL-SHIFT ESC)
DEFAULT_DELAY | DEFAULTDELAY [Time in millisecond * 10] (change the de
DELAY [Time in millisecond * 10] (used to overide temporary the defaul

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.

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.

  • Recently Browsing   0 members

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