mirror of https://github.com/hak5/omg-payloads.git
Update README.md
parent
a6c4f0b1b1
commit
d6719f8e9d
|
@ -78,9 +78,9 @@ ALTSTRING "%TEMP%\script.hex"
|
||||||
Replace `<hexadecimal_code>` with the actual hexadecimal code generated in the previous step. I used a combo ALT F and STRING S for save the file using `"%TEMP%\script.hex"` that save it in a `TEMP` directory
|
Replace `<hexadecimal_code>` with the actual hexadecimal code generated in the previous step. I used a combo ALT F and STRING S for save the file using `"%TEMP%\script.hex"` that save it in a `TEMP` directory
|
||||||
|
|
||||||
## Decoding Hexadecimal Code and Executing the Program
|
## Decoding Hexadecimal Code and Executing the Program
|
||||||
Now, we need to decode the hexadecimal code and execute the program. We can use the `certutil` command again to accomplish this.
|
Now, we need to decode the hexadecimal code and execute the program. We can use the `certutil` command to accomplish this.
|
||||||
|
|
||||||
Save the DuckyScript file as `script.hex` and run the following command in the Command Prompt:
|
Once saved the file with a hex extension, run the following command in the Command Prompt:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
certutil -f -decodeHex "%TEMP%\script.hex" "%TEMP%\script.exe"
|
certutil -f -decodeHex "%TEMP%\script.hex" "%TEMP%\script.exe"
|
||||||
|
@ -92,4 +92,4 @@ Finally, run the executable on the computer, or any other compatible device, to
|
||||||
|
|
||||||
These are the steps required to create an executable program with Python, generate the hexadecimal code, and automate its execution. Feel free to modify the instructions to suit your specific needs or programming language preferences.
|
These are the steps required to create an executable program with Python, generate the hexadecimal code, and automate its execution. Feel free to modify the instructions to suit your specific needs or programming language preferences.
|
||||||
|
|
||||||
Happy Hacking!
|
Happy Hacking!
|
Loading…
Reference in New Issue