Skip to content

Instantly share code, notes, and snippets.

Alexey Melnichuk moteus

Block or report user

Report or block moteus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile


ELF Header

The first portion of any ELF file is the ELF header. This generally provides offsets to other headers (program headers and section headers) within an ELF.

typedef struct {
  unsigned char e_ident[EI_NIDENT];
  uint16_t e_type;
Wack0 / upwned247.php
Last active Jan 23, 2019
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others IoT webcams : remote code exec: reverse shell PoC. (works only in qemu usermode)
View upwned247.php
Updated version, 2016-12-02: fixed shellcode so it *actually* works on QEMU
usermode emulation (seems I pushed an old version), and removed debug output.
If anyone wants to fix this, go ahead (no pun intended).
However, I don't have a vulnerable product and am unwilling to acquire one.
ipbastola /
Last active Nov 19, 2019
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64


Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
rwohleb / badips.conf
Created Feb 4, 2014
Fail2ban action for reporting to
View badips.conf
# Fail2Ban action for reporting to
# Author: Robert Wohleb
# Option: actionstart
# Notes.: command executed once at the start of Fail2Ban.
# Values: CMD
mkfmnn / callback-bench.lua
Created Sep 15, 2012
Benchmark of LuaJIT FFI callbacks from C into Lua
View callback-bench.lua
local ffi = require("ffi")
typedef void (*cb)(void);
void call(int n, void (*)(void));
void loop(int n);
void func(void);
local callback = ffi.load("./")
local timeit = require("timeit")
You can’t perform that action at this time.