Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View richyk1's full-sized avatar
💭
Studying

koolkid richyk1

💭
Studying
View GitHub Profile
@richyk1
richyk1 / extract-symbol-info-in-macho.py
Created December 30, 2023 15:37 — forked from integeruser/extract-symbol-info-in-macho.py
Extract symbols information (e.g. addresses) from Mach-O files
#!/usr/bin/env python3
import ctypes
LC_SYMTAB = 0x2
class mach_header_64(ctypes.Structure):
_fields_ = (
("magic", ctypes.c_uint32),
("cputype", ctypes.c_uint32),
@richyk1
richyk1 / Microsoft.PowerShell_profile.ps1
Created July 14, 2022 19:55
My Powershell Config /w Oh My Posh
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\atomicBit.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
Import-Module -Name PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows
@richyk1
richyk1 / README.md
Last active March 8, 2022 11:06 — forked from NoahCardoza/README.md
Discord: Spotify Pause Blocker

Spotify Pause Blocker

Disclaimer

I love both of you Discord and Spotify, but this new 30 seccond rule gets pretty annoying when my music gets turned off while just talking "to much." I mean talking kind of is the whole point of Discord...

Reason

@richyk1
richyk1 / README.md
Created August 3, 2021 01:49
ANSI escape sequence recognition for Windows 10
In latest Windows 10, you can enable ANSI in conhost via the following reghack 
-- in HKCU\Console create a DWORD named VirtualTerminalLevel and set it to 0x1;
then restart cmd.exe. 

-- You can test it with the following powershell 
?[1;31mele ?[32mct ?[33mroni ?[35mX ?[36mtar ?[m".Replace('?', [char]27);
@richyk1
richyk1 / Huffman.hs
Created February 6, 2021 22:50
Huffman tree in Haskell
Shoutout till ettorna som går i DV!! dsvdv
@richyk1
richyk1 / README.md
Created January 2, 2021 19:35
ViEmu patch for VS

Reversing ViEmu for Visual Studio!

Hi! The goal of this task is to look into ViEmu source code and patch code that would allow you to use ViEmu past it's trial time. It's very good at what it does, the best even. If you can afford the license then support them! Nonetheless, it's a nice exercise for beginners getting into reverse engineering.

Required files

  • dnSpy
  • ViEmuVS2013-x.x.x
@richyk1
richyk1 / README.md
Last active October 10, 2020 00:38
Bus eller bregott

Bus eller bregott

Description

Campaign on https://kampanj.bregott.se/home/ranking to promote their dairy products during the halloween period. First place is guaranteed to get a nice pair of earphones. The game itself is built on Construct 2 engine which is a game engine for people new to programming. Seems generally clunky, but not that relevant for this reversing task. The goal here is to disable generation of obstacles so that no actual brain cells are required to achieve a relatively high score.

Initial moves

By looking at the network tab you can see two files being generated - c2runtime.js and bmg_loader.js. The obvious first assumption here is that the first file is the actual engine and whatever code is in the other file is code that belongs to the game logic.

By observing some of the code in bmg_loader.js you can notice that console.log gets undefined on the first line, which means that the developer doesn't want the user to see all the log messages. Understandable, because th

@richyk1
richyk1 / a-simple-socket-io-test.md
Created September 30, 2020 00:35 — forked from janusnic/a-simple-socket-io-test.md
A simple Socket.io test with client and server (Node.js) parts.
personExists :: Person -> Bool
personExists (Person id name lastname password) = do
let
database = "database.txt"
contents <- readFile database
if (contents > 0) then do
let
(x:xs) = splitOn "\n" contents
person = id ++ ";" ++ name ++ ";" ++ lastname ++ ";" ++ password
#include <Windows.h>
#include <d3d11.h>
#pragma comment(lib, "d3d11.lib")
#include "FW1FontWrapper.h"
#include <BeaEngine.h>
#pragma comment(lib, "BeaEngineCheetah64.lib")