Jump to content

xcoder

Active Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by xcoder

  1. DEFAULT_DELAY 100
    DELAY 5000
    GUI r
    DELAY 50
    STRING cmd /Q /D /T:FE /F:OFF /V:ON /K mode con lines=1 cols=10
    ENTER
    DELAY 200
    STRING for /f %d in ('wmic volume get driveletter^, label ^| findstr "DUCKY"') do set usb=%d
    ENTER
    DELAY 300
    STRING %usb%
    ENTER
    DELAY 100
    STRING START HelloWorld.exe
    ENTER
    DELAY 100
    STRING Exit
    ENTER

    This is my short way to run file from SD

    folks
    share us your Creative

  2. DEFAULT_DELAY 100
    DELAY 5000
    GUI r
    DELAY 100
    STRING cmd /Q /D /T:FE /F:OFF /V:ON /K mode con lines=1 cols=10
    ENTER
    DELAY 200
    STRING for /f %d in ('wmic volume get driveletter^, label ^| findstr "DUCKY"') do set usb=%d
    ENTER
    DELAY 300
    STRING %usb%
    ENTER
    DELAY 200
    STRING powershell Set-ExecutionPolicy 'Unrestricted' -Scope CurrentUser -Confirm:$false
    ENTER
    DELAY 200
    STRING powershell.exe -File %usb%\config-21642.ps1
    ENTER
    DELAY 200
    STRING Exit
    ENTER

    Rubber Ducky  Twin Duck Firmware
    Your PowerShell inside [USB FLASH DISK]  config-21642.ps1

  3. Execute Script Need Fix

    try it to console windows it`s dos`t work
    ALT SPACE " send Alt+space to console window"

    You Need
    Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
    Private Const KEYEVENTF_KEYUP = &H2
    Private Const VK_LMENU = &HA4
    Private Const VK_SPACE = &H20

    and Pass Command Like This:

    keybd_event(VK_LMENU, 56, 0, 0)
    keybd_event(VK_SPACE, 57, 0, 0)
    keybd_event(VK_SPACE, 57, KEYEVENTF_KEYUP, 0)
    keybd_event(VK_LMENU, 56, KEYEVENTF_KEYUP, 0)

  4. ##btnEncodeForm_Click
    File.Copy(FilePath, AppDomain.CurrentDomain.BaseDirectory + "script.txt", true);//copy the script to
    formEncoding formEncoding = new formEncoding();
    formEncoding.ShowDialog(); //show encoding form

    ##EncodeToBin

    string outputfilename = txtboxFileName.Text;
                Process JavaProc = new Process();
                ProcessStartInfo JavaProcInfo = new ProcessStartInfo("java", "-jar " + '\"' + AppDomain.CurrentDomain.BaseDirectory + "duckencode.jar" + '\"' + " -i " + '\"' + AppDomain.CurrentDomain.BaseDirectory + "script.txt" + '\"' + " -o " + '\"' + outPutFilePath + '\"');

                JavaProcInfo.UseShellExecute = false;
                JavaProcInfo.RedirectStandardError = true;
                JavaProcInfo.CreateNoWindow = true;

                JavaProc.StartInfo = JavaProcInfo;
                JavaProc.Start();
                JavaProc.WaitForExit();

                string sOutput;
                using (System.IO.StreamReader sReader = JavaProc.StandardError)
                {
                    sOutput = sReader.ReadToEnd();
                }

                if (sOutput.Length > 0)
                {
                    MessageBox.Show(sOutput);
                }
                else
                {
                    MessageBox.Show("Success");

                }

  5. To Do:

    • Change All Error Message To Flat Message UI Style
    • Show Where Error Line are
    • Add Effect FlashWindow
    • Add DragDrop
    • Add ALT SPACE " send Alt+space to console window"
    • Add REPEAT,REPLAY
    • Add CAPSLOCK,NUMLOCK
    • Add SCROLLOCK,COMMAND = NOTHING
    • Always Encode From Script.txt (All code will save it in "App.Path\Script.txt" and then Encode it)
    • Relase Caps Lock
    • Fix CopyToUSB

    all suggestions are welcome

  6. 1 hour ago, Tamasco said:

    This is the second project I see about Ducky Encoder! I love this community. Guess I wasn´t the only one that thought about building one :grin: I haven´t finish the multi language UI yet (just Spanish and English).

    Good Work VB.NET :wub:
    I got error because didn't chose language
    let "us" Lang is default


    You Can Hide dos command if use this:

     Dim JavaProcInfo As New ProcessStartInfo("Java", "-jar " & Chr(34) & directorioTemporal + encoderPath & Chr(34) & " -i " & Chr(34) & FilePathInput & Chr(34) & " -o " & Chr(34) & sfd.FileName & Chr(34) & " -l " & languagePath )
                    With JavaProcInfo
                        .UseShellExecute = False
                        .CreateNoWindow = True
                    End With

                    With JavaProc
                        .StartInfo = JavaProcInfo
                        .Start()
                        .WaitForExit()
                    End With

×
×
  • Create New...