Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
printf("%#x\n", getenv(argv[1]));
return 0;

Keybase proof

I hereby claim:

  • I am rasta-mouse on github.
  • I am rasta_mouse ( on keybase.
  • I have a public key ASDdfXATXOdgG0AVemBJUOTM1rTjZmEa8gDu07AhfFx4qwo

To claim this, I am signing this object:

Windows Server 2016
Windows Server 2012 R2
Windows 10 LTSB
rasta-mouse / PowerView
Last active April 11, 2018 21:20
Some helpful PowerView commands
Find-DomainLocalGroupMember -GroupName Administrators | Select-Object ComputerName, MemberName | Export-Csv -NoTypeInformation -Path local-admins.csv
Get-DomainGPO | % { Get-DomainObjectAcl -Identity $ -ResolveGUIDs }
1. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:library C:\Tools\shellcodeLauncher.cs
2. DotNetToJScript.exe --lang=JScript --ver=v4 -c ShellCodeLauncher.Program C:\Tools\shellcodeLauncher.dll
Exchange Online
Type Priority Host name Points to address or value TTL
MX 0 @ <domain>-<tld> 1 Hour
TXT - @ v=spf1 -all 1 Hour
CNAME - autodiscover 1 Hour
Skype for Business
Invoke-Expression 'AMSI Test Sample: 7e72c3ce-861b-4339-8740-0ac1484c1386'
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace BlockDllTest
class Program
static void Main(string[] args)
rasta-mouse / Program.cs
Created January 31, 2021 14:52
Modifying self with dnlib
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using System;
using System.IO;
using System.Linq;
using System.Reflection;
namespace ConsoleApp1
rasta-mouse / NtCreateUserProcess.cs
Created December 20, 2022 22:19
Attempt at NtCreateUserProcess in C# (not working)
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace CreateProcess;
internal static class Program
public static void Main(string[] args)