Skip to content

Instantly share code, notes, and snippets.

View richinseattle's full-sized avatar

richinseattle

View GitHub Profile
#!/bin/bash
# installs dependenies and builds ubuntu package from source
# set CC / CXX environment variables as needed
USAGE="$0 <apt package> ..."
if [ $# -lt 1 ]; then
echo "$USAGE"
exit 1
// @richinseattle
// [email protected]
#include <Windows.h>
#include <Amsi.h>
#include <stdio.h>
#pragma comment(lib, "amsi.lib")
#pragma comment(lib, "ole32.lib")
IMDISK NTFS
-----------------------------------------------------------------------
CrystalDiskMark 5.2.1 x64 (C) 2007-2017 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes
@richinseattle
richinseattle / windows10qemu.sh
Created May 20, 2017 01:41 — forked from Manouchehri/windows10qemu.sh
Running Windows 10 in a UEFI enabled QEMU environment with KVM.
# Installing
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 2048 -cdrom ~/Downloads/Win10_English_x64.iso -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -drive file=~/Downloads/virtio-win-0.1.105.iso,index=1,media=cdrom
# Running
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 4096 -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -usbdevice tablet -rtc base=utc
#!/bin/bash
# ext4 disable journal
# Create ext4 fs
mkfs.ext4 /dev/sda2
# Enable writeback mode. This mode will typically provide the best ext4 performance.
tune2fs -o journal_data_writeback /dev/sda2
@echo off
:: shields.bat - block all inbound connections on boot or with 'up' and 'down' commands
:: save somewhere permanent and run 'shields.bat install' to raise shields on boot
goto argparse
:up
netsh advfirewall set %FW_PROFILE% firewallpolicy blockinboundalways,allowoutbound
EXIT /B
@richinseattle
richinseattle / smbloris.c
Created August 3, 2017 21:11 — forked from marcan/smbloris.c
SMBLoris attack proof of concept
/* SMBLoris attack proof-of-concept
*
* Copyright 2017 Hector Martin "marcan" <[email protected]>
*
* Licensed under the terms of the 2-clause BSD license.
*
* This is a proof of concept of a publicly disclosed vulnerability.
* Please do not go around randomly DoSing people with it.
*
* Tips: do not use your local IP as source, or if you do, use iptables to block
@richinseattle
richinseattle / CVE-2012-nvidia-root.c
Last active August 3, 2017 21:19 — forked from zyxar/nvidia.c
nvidia bomb?
/* Anonymous
*
* How to use: sudo rm -rf /
*
* greetz: djrbliss, kad, Ac1dB1tch3z, nVidia!
*
* Only complete fix patch nvidia drivers and redefine
* IS_BLACKLISTED_REG_OFFSET:
#define IS_BLACKLISTED_REG_OFFSET(nv, offset, length) 1
sudo apt install build-essential git vim
sudo apt install pip python-lz4 libpython-dev xdot python-psutil
pip install --upgrade pip
sudo pip install setuptools mmh3
git clone https://github.com/richinseattle/kAFL
cd kAFL
bash install.sh
sudo apt install qemu-utils