Skip to content

Instantly share code, notes, and snippets.

View richyk1's full-sized avatar
💭
Studying

koolkid richyk1

💭
Studying
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@richyk1
richyk1 / gist:4909d6c16a44894c82fa2ba3faf44432
Created November 30, 2018 18:19
Decompiling and reversing SL.apk
This gist is assuming that the user who reads this has knowledge of aligning & signing their modified APK's whilst also the ability of writing & reading .smali code.
To succesfully modify price & duration of bought tickets you have to complete two essential steps.
Upon analysing this apk I found out that it does not have any anti tamper, which made decompiling in .smali much easier.
After decompiling the apk file into .smali you will be presented with the smali folder
Upon starting, the application requests all the dynamic information from their server.
Using jadx-gui and opening classes.dex com.sl.SlBilijetter.Backend.ServerCommunication class makes calls to:
* /sl-appserver/services/appversion/getappversion
* /sl-appserver/services/generateUserToken
#include <Windows.h>
#include <d3d11.h>
#pragma comment(lib, "d3d11.lib")
#include "FW1FontWrapper.h"
#include <BeaEngine.h>
#pragma comment(lib, "BeaEngineCheetah64.lib")
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
@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.
@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 / 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 / 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 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 / 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