Open notepad and edit the script. Rem is equivalent to the annotation, which is the same as the script language.
Rem Hello worldgui rdelay 300 string notepadenterdelay 1000 string Hello world !!
Here, the GUI is equivalent to the Windows key, so the first command is win + R, which is equivalent to opening and running
Next, the latency is 300 milliseconds. String is the analog input string notepad.
Then press Enter.
In this way, the notepad is opened, and then input Hello world in the simulated string !!
This is the execution process, but it cannot be edited. It also needs to be converted to the corresponding binary file. duckencode is officially provided. jar is a Java program that must run to install the Java Virtual Machine or directly install JDK.
Let's look at this program.
The basic command is duckencode-I export source file .txt]. Then, you can compile and generate inject. bin in the current directory.
If-O is used to specify the output file, the following are some key descriptions. You can see that the last windows button is equivalent to the GUI.
Enter Java-jar duckencode. jar-I Hello world.txt to see that an inject. Bin is generated in the source directory.
Copy this to the SD card and insert rubber ducky to automatically run it !!!
The first script "Hello world! "