Skip to content

Instantly share code, notes, and snippets.

View AndrewSav's full-sized avatar

Andrew Savinykh AndrewSav

View GitHub Profile
<Query Kind="Program">
<NuGetReference>YamlDotNet</NuGetReference>
<Namespace>YamlDotNet.Serialization</Namespace>
<Namespace>YamlDotNet.Core</Namespace>
<Namespace>System.Security.Cryptography</Namespace>
<Namespace>System.Runtime.InteropServices</Namespace>
</Query>
void Main()
{
@AndrewSav
AndrewSav / Get-GoogleServiceToken.ps1
Last active February 28, 2025 09:13
Get access token from Google Service Account credentials file
[CmdletBinding()]
Param(
# https://console.cloud.google.com/iam-admin/serviceaccounts
[Parameter(Mandatory,Position=0,HelpMessage='Enter path to Google Service Account credentials json file')][string]$serviceCredentialsJsonPath,
# https://developers.google.com/identity/protocols/oauth2/scopes
[Parameter(Mandatory,Position=1,HelpMessage='Enter required Google API scopes')][string[]]$scopes,
[Parameter(Position=3,HelpMessage='Enter token duration in seconds')][int]$duration=3540
)
Set-StrictMode -Version 3.0
@AndrewSav
AndrewSav / i2cpp_ghidra.md
Created April 23, 2025 06:49 — forked from BadMagic100/i2cpp_ghidra.md
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper