I hereby claim:
- I am rgerganov on github.
- I am rgerganov (https://keybase.io/rgerganov) on keybase.
- I have a public key whose fingerprint is 5837 D10B AA3E 24E1 FA26 FE85 DCEB 64AA 28EC 50FC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env sh | |
if [ "$#" -ne 5 ]; then | |
echo "Usage: $0 <host> <user> <pwd> <vm-id> <dev-id>" | |
exit 1 | |
fi | |
echo "attach $1 $2 $3 $4 $5" | nc localhost 9999 |
#!/usr/bin/env python | |
import os | |
import socket | |
import threading | |
import SocketServer | |
class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler): | |
def send_response(self, resp): | |
self.request.sendall("HTTP/1.1 200 OK\r\n") |
#!/usr/bin/env python | |
def is_bigger(a, b): | |
aa = a.split('.') | |
bb = b.split('.') | |
for x,y in zip(aa, bb): | |
if int(x) > int(y): | |
return True | |
return False |
#include <stdio.h> | |
#include <linux/input.h> | |
#include <linux/uinput.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> |
#!/bin/bash | |
wake_time="2018-03-04.02:30:00" | |
wake_time_epoch=$(date -j -f %Y-%m-%d.%H:%M:%S $wake_time +%s) | |
while [ 1 ]; do | |
now_epoch=$(date +%s) | |
if [ $now_epoch -ge $wake_time_epoch ]; then | |
break | |
fi |
#include <stdio.h> | |
#include <linux/input.h> | |
#include <linux/uinput.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <wiringPi.h> |
#!/usr/bin/python | |
import sys | |
for line in sys.stdin: | |
if 'url:' in line: | |
print line | |
sys.stdout.flush() |
#!/bin/sh | |
tpm2_createprimary -c primary.ctx | |
tpm2_create -C primary.ctx -G ecc -u key.pub -r key.priv | |
tpm2_load -C primary.ctx -u key.pub -r key.priv -c key.ctx | |
tpm2_readpublic -f pem -o key.pem -c key.ctx | |
echo "my message" > message.dat | |
sha256sum message.dat | awk '{ print "000000 " $1 }' | xxd -r -c 32 > message.dat.digest | |
tpm2_sign -c key.ctx -g sha256 -d -f plain -o message.dat.sig message.dat.digest | |
openssl dgst -verify key.pem -keyform pem -sha256 -signature message.dat.sig message.dat |
#!/bin/bash | |
VMDK_FILE="syzkaller.vmdk" | |
VMDK_SIZE="3GB" | |
NBD_DEV="/dev/nbd0" | |
NBD_DEVP1="${NBD_DEV}p1" | |
MOUNT_DIR="/tmp/vmdk" | |
ROOTFS="${1:-stretch.img}" | |
echo "Using ROOTFS=$ROOTFS" |