Skip to content

Instantly share code, notes, and snippets.

View hexbitCTF's full-sized avatar
🏠
Working from home

Nassim Jurdi hexbitCTF

🏠
Working from home
View GitHub Profile
@hexbitCTF
hexbitCTF / anytype-get-key.ps1
Created September 29, 2025 18:19 — forked from requilence/anytype-get-key.ps1
powershell script to retrieve the anytype account key from the Credential Manager on Windows
# Prompt the user for the credential name (Target)
$account = Read-Host "Enter the anytype account id (starts with A)"
# Define necessary structs and functions using P/Invoke
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class NativeMethods
{
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]