Skip to content

Instantly share code, notes, and snippets.

View im-alfa's full-sized avatar
🦀
Doing the Rusty thing

alfa im-alfa

🦀
Doing the Rusty thing
View GitHub Profile
@im-alfa
im-alfa / dms_to_dd.py
Last active September 4, 2023 09:22
DMS to DD coordinate converter
"""
This script is used to convert coordinates in DMS format to decimal degrees.
Example:
convert_coordinates("N051.50.34.300;W008.11.42.101;")
"""
def convert_coordinates(coord):
lat, lon, _ = coord.split(";")
lat_sign, lon_sign = 1, 1
#define memcpy 0x3C15B0
#define memcmp 0x207E40
#define malloc 0xD7A0
#define ptrace_patch 0x10F82F
#define kpanic 0x2074C0
#define rootvnode 0x496030
#define disable_aslr 0x3CEC8A
// offsets for 6.72 2much4u's gtav native caller
// note: no offset has been tested since I'm on vacation, if anyone can check it out and tell me if it works I'd appreciate it: D
#define KERN_XFAST_SYSCALL 0x1C0
#define KERN_PROCESS_ASLR1 0x3CEC8A
#define KERN_PRISON_0 0x0113E518 // https://github.com/OpenOrbis/mira-project/blob/master/kernel/src/Utils/Kdlsym/Orbis672.hpp
#define KERN_ROOTVNODE 0x496030
#define KERN_PTRACE_CHECK 0x10F82F