-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ps12bat | ||
Powershell script to batch script | ||
|
||
This will encode and embed as ps1 script in a batch script using | ||
base64 encoding. | ||
|
||
upon execution on target system it will extract the base64 encoded | ||
script to a base64 encoded file, then it will create a userland registry | ||
key to run a powershell command to load the encoded file and execute it | ||
upon user login. | ||
|
||
# use | ||
``` | ||
ps C:\>.\ps12bat.ps1 | ||
``` | ||
Then enter the path of the script you wish to convert. |