Skip to content

Instantly share code, notes, and snippets.

View SeeMirra's full-sized avatar
💭
I may be slow to respond.

SeeMirra

💭
I may be slow to respond.
View GitHub Profile
@SeeMirra
SeeMirra / bpf.c
Created February 21, 2018 05:57 — forked from msantos/bpf.c
Example of using bpf to capture packets
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <err.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>

Keybase proof

I hereby claim:

  • I am seemirra on github.
  • I am chrismirra (https://keybase.io/chrismirra) on keybase.
  • I have a public key ASA7M6_OIvhCg_tUp4_WHjjdgx886wytH-l7EgXICsCvKgo

To claim this, I am signing this object:

function Get-ClrReflection
{
<#
.SYNOPSIS
Detects memory-only CLR (.NET) modules
Author: Joe Desimone (@dez_)
License: BSD 3-Clause
import socket
import time
import ast
def main():
backlog = open("eternalblue.replay").read().split("\n\n")
backlog = [ast.literal_eval(i) for i in backlog]
connections = []
start = time.monotonic()
for i in backlog:
@SeeMirra
SeeMirra / linux.sh
Created January 12, 2017 22:16 — forked from marcan/linux.sh
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 <marcan@marcan.st>
# 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
'''
IDA plugin to display the calls and strings referenced by a function as hints.
Installation: put this file in your %IDADIR%/plugins/ directory.
Author: Willi Ballenthin <william.ballenthin@fireeye.com>
Licence: Apache 2.0
'''
import idc
import idaapi
import idautils