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
#!/usr/bin/env python | |
from __future__ import print_function | |
from __future__ import unicode_literals | |
import os | |
import tempfile | |
import subprocess | |
import sys | |
if not 'SSH_KEY' in os.environ: |
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
# Remove parent of commit 9c747fd659803ab7406b55fe38f752a03b9157d3 | |
git filter-branch --parent-filter 'test $GIT_COMMIT = "9c747fd659803ab7406b55fe38f752a03b9157d3" || cat' HEAD |
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
#!/usr/bin/env python2 | |
import os | |
import re | |
import sys | |
vulnerable = frozenset([ | |
'/usr/lib/i386-linux-gnu/i686/cmov/libssl.so.1.0.0', | |
'/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0', | |
]) |
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 <asm/types.h> | |
#include <linux/netlink.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
int main() { | |
int res; |
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
#!/usr/bin/env python | |
class Hello(object): | |
@staticmethod | |
def _hello_impl_1(): | |
print 'Hello world!' | |
_hello_impl = None | |
@staticmethod | |
def hello(): | |
if Hello._hello_impl == None: | |
Hello._hello_impl = Hello._hello_impl_1 |
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 <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#define IFNAMSIZ 16 | |
#define ULOG_PREFIX_LEN 32 | |
#define ULOG_MAC_LEN 80 | |
typedef struct ulog_packet_msg { |
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
#!/usr/bin/env python | |
import platform | |
import socket | |
import struct | |
import sys | |
_ULOG_NL_EVENT = 111 | |
class _NetlinkHeader: | |
SIZE = 16 |
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
#!/bin/bash | |
for ((C=0;C<=7;C++)) do echo -e "\e[0;$((30+C))mcolor$C\e[0m \e[1;$((30+C))mcolor$((C+8))\e[0m"; done |
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
<?php | |
function getRandomBits($bits) { | |
assert('is_int($bits)'); | |
/* First load some random bytes. */ | |
$numBytes = ($bits - 1) / 8 + 1; | |
$bytes = openssl_random_pseudo_bytes($numBytes); | |
/* Convert it to an integer. */ |
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
#!/usr/bin/env python | |
import ctypes | |
import ntplib # wget https://ntplib.googlecode.com/hg/ntplib.py | |
import sys | |
import time | |
# struct timespec { | |
# time_t tv_sec; /* seconds */ | |
# long tv_nsec; /* nanoseconds */ |
OlderNewer