Skip to content

Instantly share code, notes, and snippets.

@illusion0001
illusion0001 / is_bad_mem_ptr.cpp
Last active February 23, 2025 07:09 — forked from rkr35/is_bad_mem_ptr.cpp
Re-wrote Boldarev's C-like version into C++. Compile for Clang CL. Description from Artem Boldarev's original Gist: "A safer replacement for the obsolete IsBadReadPtr() and IsBadWritePtr() WinAPI functions on top of VirtualQuery() which respects Windows guard pages and does not use SEH."
// https://gist.github.com/rkr35/79264c540856849a4cfa7f9edcbc493e/
// Adjusted and fixed to compile on clang-cl (missing address())
// Static usage for including in multiple files
/*
Copyright (c) 2017 Artem Boldarev <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files(the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
# Install the GitHub CLI tool by following the instructions in the official documentation: https://cli.github.com/manual/installation
# Make sure you auth first to github with 'gh auth login'
# Powershell version
$REPO_OWNER = "OWNER"
$REPO_NAME = "REPO_NAME"
$PAGE = 1
while ($true) {
# Retrieve a page of artifacts
$ART_EXIST = gh api "repos/$REPO_OWNER/$REPO_NAME/actions/artifacts?per_page=100&page=$PAGE" | ConvertFrom-Json
@illusion0001
illusion0001 / nativeUpdater.java
Created June 21, 2024 07:09 — forked from ethylamine/nativeUpdater.java
Analyzes and updates native addresses for GTA V on PS4, based on 2much4u's IDA script
//Analyzes and updates native addresses for GTA V on PS4, based on 2much4u's IDA script
//@author ethylamine
//@category Analysis
import ghidra.app.script.GhidraScript;
import ghidra.program.model.util.*;
import ghidra.program.model.reloc.*;
import ghidra.program.model.data.*;
import ghidra.program.model.block.*;
import ghidra.program.model.symbol.*;

How to copy and upload PS4 save game

  1. Go to Settings and Application Saved Data Management

image

  1. Click on Saved Data in System Storage

image

#include <opencv2/opencv.hpp>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include "rapidcsv.h"
#include <numeric>
int main()
{
std::string doc_file = "C:\\Users\\ME\\source\\repos\\opencv-test\\opencv-test\\test.csv";
@illusion0001
illusion0001 / test.smali
Created October 31, 2022 19:14
Invoke `Request_Jpeg_Quality`
sget-object v0, Lcom/samsung/android/camera/core2/MakerPublicKey;->REQUEST_JPEG_QUALITY:Landroid/hardware/camera2/CaptureRequest$Key;
const/4 v1, 0x64
invoke-virtual {p1, v0, v1}, Lcom/sec/android/app/camera/engine/request/MakerPublicSettings;->set(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;)V
@illusion0001
illusion0001 / rldcrx.txt
Created September 22, 2019 12:32
Unimplemented CPU instructions from Batman Telltale and Minecraft Story Mode Season 2
82A26C28 7BDEE7F2 rldcrx
82A26CC4 7BDE5FF2 rldcrx
82A26E8C 7BDEE7F2 rldcrx
82A26F28 7BDE5FF2 rldcrx
82A270CC 7BDEC7F2 rldcrx
82A27104 7BDE57F2 rldcrx
82A272E8 795ED7F2 rldcrx
82A273A4 7BDED7F2 rldcrx
82A274D8 7BCBD7F2 rldcrx
82A274E0 797ECFF2 rldcrx
@illusion0001
illusion0001 / gflags.txt
Last active April 5, 2019 23:39
List of gflags available to user.
Updated 04/07/2019
xenia: usage: xenia some.xex
Flags from xenia_main.cc:
--apu (Audio system. Use: [any, nop, xaudio2])
type: string default: "any"
--content_root (Root path for content (save/etc) storage.)
type: string default: ""
--fullscreen (Toggles fullscreen)
type: bool default: false