HaydenM Posted December 29, 2016 Share Posted December 29, 2016 Hey everyone I made a toolkit for the Rubber Ducky featuring an emulator, code validator and encoder. It's currently in beta but is ready to be tested! You can download it from here; https://drive.google.com/open?id=0B7z_QzobhrFDXzRpMVBfOTlfOUE Source code is available here: https://github.com/HaydenMeloche/USB-Rubber-Ducky-Toolkit (plz dont copy and paste :) ) Leave any questions you have below :) Quote Link to comment Share on other sites More sharing options...
xcoder Posted December 30, 2016 Share Posted December 30, 2016 Hey You Do Great Job first of all I take tow part from Your early project I make some change and convent it t vb.net and Add it to my ProjectValidate Code _ Credit to HayDenMExecute Script _ Credit to HayDenM Do You Mind ? I`ll Check Your project and give you rview Quote Link to comment Share on other sites More sharing options...
xcoder Posted December 30, 2016 Share Posted December 30, 2016 ##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"); } Quote Link to comment Share on other sites More sharing options...
xcoder Posted December 30, 2016 Share Posted December 30, 2016 Execute Script Need Fix try it to console windows it`s dos`t workALT 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) 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.