Skip to content

Instantly share code, notes, and snippets.

View mgp25's full-sized avatar
๐Ÿ”’
GPG: 0xDA570C7A

mgp25 mgp25

๐Ÿ”’
GPG: 0xDA570C7A
View GitHub Profile
@KaoRz
KaoRz / main.c
Last active December 24, 2018 00:21
Write-up: El Ninja Contrarreloj - CTF SecAdmin 2018 (Reversing Challenge)
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include "solver.h"
char *msg = "secadmin{THISISATESTX}"; // The flag has "secadmin{}" format (22 chars)
char j[64]; // .bss:0000000000004160 ; char j[64]
int tiempo = 0; // .bss:000000000000414C tiempo
@katopz
katopz / setup-zeromq.sh
Last active December 8, 2025 19:47 — forked from cdjhlee/zeromq_install.sh
Setup zeromq in Ubuntu 16.04
#!/usr/bin/bash
# Download zeromq
# Ref http://zeromq.org/intro:get-the-software
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
# Unpack tarball package
tar xvzf zeromq-4.2.2.tar.gz
# Install dependency
@marcan
marcan / linux.sh
Last active July 26, 2025 08:39
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <[email protected]>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@plugnburn
plugnburn / LICENSE.txt
Last active March 14, 2018 01:13 — forked from 140bytes/LICENSE.txt
Whitespace text decoder
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2013 plugnburn
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@awidegreen
awidegreen / vim_cheatsheet.md
Last active November 9, 2025 17:45
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close