Skip to content

Instantly share code, notes, and snippets.

View M0nteCarl0's full-sized avatar
🎰

Alex M0nteCarl0

🎰
View GitHub Profile
@mivade
mivade / zmq_auth.py
Last active June 17, 2025 08:22
ZeroMQ Curve authentication demo
"""Simple demonstration of using ZMQ's Curve authentication.
This demo is adapted from the examples given in the `PyZMQ repository`__. Key
differences include:
* Using ``setsockopt`` to set Curve parameters instead of setting attributes
directly (help out your IDE!)
* Integration with ``asyncio``
__ https://github.com/zeromq/pyzmq/tree/master/examples
@cerebrate
cerebrate / README.md
Last active October 23, 2025 04:01
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

WARNING

THIS GIST IS EXTREMELY OBSOLETE. DO NOT FOLLOW THESE INSTRUCTIONS. SERIOUSLY.

IF YOU IGNORE THE ABOVE WARNING, YOU AGREE IN ADVANCE THAT YOU DIDN'T GET THESE INSTRUCTIONS FROM ME, THAT I WARNED YOU, AND THAT I RESERVE THE RIGHT TO POINT AND LAUGH MOCKINGLY IF AND WHEN SOMETHING BREAKS HORRIBLY.

I'll do a write-up of current custom-kernel procedures over on Random Bytes ( https://randombytes.substack.com/ ) one day soon.

NOTE

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active October 30, 2025 09:59
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@icecr4ck
icecr4ck / idapython_cheatsheet.md
Last active October 22, 2025 01:52
Cheatsheet for IDAPython
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
@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
"""
@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.

@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
@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);
@MrHallows
MrHallows / fastboot_help.md
Last active November 1, 2025 12:09
fastboot commands

Command:

$ fastboot help

Output:

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

flashing: