Skip to content

Instantly share code, notes, and snippets.

View M0nteCarl0's full-sized avatar
🎰

Alex M0nteCarl0

🎰
View GitHub Profile
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@00p513-dev
00p513-dev / commands.md
Last active August 13, 2025 16:21
Useful fastboot commands
Command Purpose
fastboot devices Lists attached devices, along with their serial number
fastboot oem unlock Unlocks bootloader on most phones
fastboot oem unlock UNLOCK_CODE Use this if you have an unlock code
fastboot flashing unlock May be needed on older devices and some weird mtk phones (Tecno ke5k needed this for some reason)
fastboot flash PARTITION_NAME PATH_TO_IMAGE Flashes the partition with the image file
--disable-verity --disable-verification Add to a vbmeta flash command to disable verified boot
fastboot erase PARTITION NAME Erases the partition USE WITH CAUTION
fastboot -w
@tomtzook
tomtzook / CMakeLists.txt
Created January 16, 2021 11:15
Compiling C++ EFI application with CMake and GNU-EFI, and running in QEMU
cmake_minimum_required(VERSION 3.16.3)
project(cppefi C CXX)
if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
endif()
if (NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
endif()
@MrHallows
MrHallows / fastboot_help.md
Last active November 1, 2025 20:21
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@GroupDocsGists
GroupDocsGists / AddImageWatermarkToImage.cs
Last active September 24, 2022 17:42
Add Image Watermark to Images using C# & Java
// Add PNG Image Watermark on an Image using C#
using (Watermarker watermarker = new Watermarker("filePath/image.png"))
{
using (ImageWatermark watermark = new ImageWatermark("filePath/watermarkLogo.png"))
{
// Set Watermark Properties
watermark.X = 20;
watermark.Y = 80;
// Add watermark on image file and save the output
watermarker.Add(watermark);
@simonemainardi
simonemainardi / disassemble-and-modify-a-binary-to-change-a-function.md
Last active February 13, 2025 07:33
Disassemble and Modify an Binary To Change a Function

Disassemble and Modify an Binary To Change a Function

In this gist I show how to disassemble and modify a Linux executable binary to change the body of a function. This will allow you to control how a binary behaves, even when you don't have access to the source code and you can't recompile it.

In my case, I was asked to try and bypass the protection mechanism implemented. The protection mechanism implemented was meant to only allow a binary to be run in presence of a valid license.

So basically my activity involved:

  • Finding the function which performs the protection check
  • Disassembling the binary
@trietptm
trietptm / idapython_ctree.md
Created May 1, 2020 13:56 — forked from icecr4ck/idapython_ctree.md
Notes on CTREE usage with IDAPython

IDAPython CTREE

Important links

Description

The CTREE is built from the optimized microcode (maturity at CMAT_FINAL), it represents an AST-like tree with C statements and expressions. It can be printed as C code.

@alexander-hanel
alexander-hanel / gui.py
Created April 16, 2020 21:27
IDAPython PYQT Example
from idaapi import PluginForm
from PyQt5 import QtCore, QtGui, QtWidgets
import sip
class MyPluginFormClass(PluginForm):
def OnCreate(self, form):
"""
Called when the widget is created
"""
pkg install golang
pkg install neovim
pkg install nodejs
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@icecr4ck
icecr4ck / idapython_cheatsheet.md
Last active October 22, 2025 01:52
Cheatsheet for IDAPython