This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob, json, os, sys, urlparse, hashlib, urllib | |
CRATES_IO_GIT = "https://github.com/rust-lang/crates.io-index" | |
DOWNLOAD_BASE = "https://crates.io/api/v1/crates" | |
def parse_index(): | |
if os.path.exists("crates.io-index"): | |
print "Updating crates.io-index git repo" | |
os.system("cd crates.io-index ; git pull") | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Generate a hash using the values in Zmm0 and return Zmm0 | |
/// | |
/// Clobbers Zmm1!!! | |
fn hash_zmm0(outasm: &mut falkasm::AsmStream, conststore: &mut ConstStore) | |
{ | |
let kmask = Operand::KmaskRegister(KmaskType::Merge(KmaskReg::K1)); | |
let thirt = Membc(Some(R10), None, conststore.add_const(13) | |
.unwind("Out of room for constant storage") as i64 * 4); | |
let sevent = Membc(Some(R10), None, conststore.add_const(17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::sync::atomic::{AtomicUsize, Ordering}; | |
// Usage: Make a 4 KiB file located at /mnt/tmpfstest/test.bin and run the | |
// tool with `cargo run --release` | |
/// Runs multiple threads at a time incrementally displaying the syscall | |
/// throughput of 4-KiB random reads to a `tmpfs` hosted mountpoint | |
fn benchmark_random_read_scaling() { | |
for num_threads in 1..=256 { | |
/// Lock to wait for all threads to spawn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from binaryninja import * | |
import re | |
NODE_RE = re.compile("NODE (node_[0-9]+)") | |
INST_RE = re.compile("INST (.*)") | |
EDGE_RE = re.compile("([A-Z]+) (node_[0-9]+) -> (node_[0-9]+)") | |
def graph_falkil(binaryview): | |
# Parse the file | |
file_contents = open(r"D:\binjagraph.txt", "r").read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim with all enhancements | |
source $VIMRUNTIME/vimrc_example.vim | |
" Remap a few keys for Windows behavior | |
source $VIMRUNTIME/mswin.vim | |
" Mouse behavior (the Windows way) | |
behave mswin | |
" Use the internal diff if available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
int | |
main(void) { | |
int ii; | |
uint8_t buf[8192] = { 0 }; | |
// Worlds most impressive exploit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"111111" | |
"222222" | |
"333333" | |
"555555" | |
"571119" | |
"620201" | |
"630327" | |
"631208" | |
"ADDRESSERROR" | |
"AMPRODUCT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Address difference 0b0000000000000000000000000000000000000001000000010000000000000000 | 57.336050 cycles | |
Address difference 0b0000000000000000000000000000000000000010000000100000000000000000 | 57.306609 cycles | |
Address difference 0b0000000000000000000000000000000000000011000000110000000000000000 | 57.327845 cycles | |
Address difference 0b0000000000000000000000000000000000000100000001000000000000000000 | 57.311997 cycles | |
Address difference 0b0000000000000000000000000000000000000101000001010000000000000000 | 57.293425 cycles | |
Address difference 0b0000000000000000000000000000000000000110000001100000000000000000 | 57.331232 cycles | |
Address difference 0b0000000000000000000000000000000000000111000001110000000000000000 | 57.352519 cycles | |
Address difference 0b0000000000000000000000000000000000001000000010000000000000000000 | 57.340593 cycles | |
Address difference 0b0000000000000000000000000000000000001001000010010000000000000000 | 57.317394 cycles | |
Address difference 0b0000000000000000000000000000000000001010000010100000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last change: 2019 Jan 26 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc | |
" for OpenVMS: sys$login:.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last change: 2019 Jan 26 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc | |
" for OpenVMS: sys$login:.vimrc |
OlderNewer