This file contains hidden or 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 sys | |
from struct import Struct | |
from argparse import ArgumentParser, FileType, Action | |
from collections import namedtuple | |
from zlib import crc32 | |
from time import time | |
from shutil import copyfileobj |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
# File dates extracted from ZIP archives and sorted. Some garbage data | |
# is likely, note the first and last few entries. | |
19800101.000000 ah_dream.xm | |
19800101.000000 ah_move.xm | |
19800101.000000 creacion.it | |
19800101.000000 cypress_mill.mod | |
19800101.000000 DANCEDAY.MOD | |
19800101.000000 ENDLESS.MOD | |
19800101.000000 fsx-alk1.mod | |
19800101.000000 fsx-alk2.mod |
This file contains hidden or 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/perl | |
use strict; | |
use warnings; | |
package Positioner; | |
use Mojo::Base 'Mojo::EventEmitter'; | |
use Mojo::IOLoop; |
This file contains hidden or 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
package main | |
import ( | |
"log" | |
"net" | |
"net/http" | |
"regexp" | |
"io" | |
"strconv" | |
) |
This file contains hidden or 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 sys, re | |
if len(sys.argv) != 2: | |
sys.exit("Usage: {0} <MAC address>".format(sys.argv[0])) | |
mac = bytearray(sys.argv[1].lower().translate(None, '-:')) | |
# straight from /bin/AutoWPA | |
alphabet = bytearray("2345679abcdefghjklmnopqrstuvwxyzACDEFGHIJKLMNPQRSTUVWXYZ") |
This file contains hidden or 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
#define _GNU_SOURCE | |
#include <dlfcn.h> | |
#include <netdb.h> | |
#include <string.h> | |
typedef int (*getaddrinfo_t)(const char *node, const char *service, | |
const struct addrinfo *hints, | |
struct addrinfo **res); | |
int getaddrinfo(const char *node, const char *service, |
This file contains hidden or 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 perl | |
use warnings; | |
use strict; | |
use Mojo::Template; | |
my $out = Mojo::Template->new->render_file(shift // '/dev/stdin', @ARGV); | |
if(ref $out) { |
This file contains hidden or 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
def &FORWARD($interface, $port, $dest) = { | |
table nat chain PREROUTING interface $interface proto tcp dport $port mod comment comment "forward $port" DNAT to $dest; | |
table filter chain FORWARD interface $interface proto tcp dport $port daddr $dest ACCEPT; | |
} | |
@hook post "pmp-request-forwards 86400"; | |
&FORWARD(eth0, 49152, 192.0.2.1); | |
&FORWARD(eth0, 49153, 192.0.2.2); |
This file contains hidden or 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 idc | |
# When setting up a new stack frame, r0 is used to store the old link | |
# register, and r1 is the stack pointer. Some compilers create the | |
# following function prologue: | |
# stwu r1, d(r1) | |
# mflr r0 | |
prologue = "94 21 ? ? 7C 08 02 A6" | |
ea = MinEA() |
This file contains hidden or 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 idc | |
import idautils | |
strings = idautils.Strings() | |
strings.setup(strtypes=idautils.Strings.STR_C, ignore_instructions=True, minlen=8) | |
strings.refresh(ea1=MinEA()) | |
for s in strings: | |
if not idc.GetStringType(s.ea): | |
idc.MakeStr(s.ea, s.ea + s.length) |