Skip to content

Instantly share code, notes, and snippets.

View saeed9321's full-sized avatar

Saeed9321 saeed9321

View GitHub Profile
@saeed9321
saeed9321 / pdf-to-text.py
Created September 16, 2024 09:48
Text extraction from PDF using 3 different methods
import pypdf
import easyocr
import pytesseract
import os
import fitz
pytesseract.pytesseract.tesseract_cmd = r"C:\Users\{USER_NAME}\AppData\Local\Programs\Tesseract-OCR\tesseract.exe"
FILE_PATH = "2024-V4.pdf"
@saeed9321
saeed9321 / solution.js
Last active October 31, 2024 01:31
Robotic leveling Coding Challenge
// Coding game challenge
// https://ide.codingame.com/21913565?id=6961426c38c52b3832ea4526f1e3554103a33c0
function solve(clawPos, boxes, boxInClaw) {
// Write your code here
// To debug: console.error('Debug messages...');
// #1 Get all available boxes
let sumOfBoxes = 0;
let numOfStacks = boxes.length;
@saeed9321
saeed9321 / frida_ctor_tracer.js
Created August 31, 2022 03:12
Trace all constructor functions calls
// Trace all calls to constructor functions in all loaded images
// * For more details - please read https://www.romainthomas.fr/post/21-07-pokemongo-anti-frida-jailbreak-bypass/
// * In case the app is crashing due to slow lanuch - please read https://github.com/opa334/WatchdogDisabler
// Image = /usr/lib/dyld
// Function Signature = ImageLoader::containsAddress(void const*)
// Symbol Name = __ZNK11ImageLoader15containsAddressEPKv
// Address = 0x1083c
@saeed9321
saeed9321 / hook_function_aarch64.c
Created January 7, 2022 08:02 — forked from liutgnu/hook_function_aarch64.c
This is a demo of function inline hook for arm64
/*
* This program is a demo of function inline hook for aarch64,
* Please compile and test in aarch64, WITHOUT any compile optimization
*
* Function sub will be hooked by hooked_sub, when invoke function sub,
* hooked_sub will be invoked first, then it can decide whether to invoke the
* original sub or not.
*/
#include <stdio.h>
@saeed9321
saeed9321 / Patch dylib to IPA.md
Created November 30, 2021 17:49 — forked from bamtan/Patch dylib to IPA.md
How to combine a dylib and an IPA file so you can use a modified IPA on jailed iOS
@saeed9321
saeed9321 / a.c
Created August 17, 2021 09:33 — forked from wiggin15/a.c
vm_region_recurse_64 / proc_regionfilename
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <libproc.h>
#include <mach/mach.h>
#include <CoreFoundation/CoreFoundation.h>
int main(void)
{