Skip to content

Instantly share code, notes, and snippets.

View gist:d0d50b25b6660445a08ff14c1f8ecc7d
00000000 05 00 00 00 00 00 00 69 0a 00 00 00 00 00 69 db |.......i......i.|
00000010 0f 00 00 00 00 69 db b6 05 00 00 00 69 db b6 6d |.....i......i..m|
00000020 0a 00 00 69 db b6 6d db 0f 00 69 db b6 6d db b6 |...i..m...i..m..|
00000030 05 69 db b6 6d db b6 6d 63 db b6 6d db b6 6d db |.i..m..mc..m..m.|
00000040 de b6 6d db b6 6d db 69 ba 6d db b6 6d db 69 9a |..m..m.i.m..m.i.|
00000050 63 db b6 6d db 69 9a a6 de b6 6d db 69 9a a6 69 |c..m.i....m.i..i|
00000060 ba 6d db 69 9a a6 69 9a 63 db 69 9a a6 69 9a a6 |.m.i..i.c.i..i..|
00000070 de 69 9a a6 69 9a a6 69 65 9a a6 69 9a a6 69 9a |.i..i..ie..i..i.|
00000080 93 a6 69 9a a6 69 9a fb a9 69 9a a6 69 9a fb b9 |..i..i...i..i...|
00000090 65 9a a6 69 9a fb b9 9f 93 a6 69 9a fb b9 9f fb |e..i......i.....|
View gist:e93f6b367d93b4374f3cbb82fd969cc3
TEXT main.genDataChunk(SB) /home/jes/rdspam/main.go
main.go:64 0x4b2c00 4883ec08 SUBQ $0x8, SP
main.go:64 0x4b2c04 48892c24 MOVQ BP, 0(SP)
main.go:64 0x4b2c08 488d2c24 LEAQ 0(SP), BP
main.go:64 0x4b2c0c 488b442410 MOVQ 0x10(SP), AX
main.go:64 0x4b2c11 488b4c2420 MOVQ 0x20(SP), CX
main.go:64 0x4b2c16 488b542418 MOVQ 0x18(SP), DX
main.go:64 0x4b2c1b 31db XORL BX, BX
main.go:65 0x4b2c1d eb0e JMP 0x4b2c2d
binary.go:90 0x4b2c1f 48893c08 MOVQ DI, 0(AX)(CX*1)
View jesrdspam.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <inttypes.h>
// lfsr64 from https://github.com/russm/lfsr64/blob/master/lfsr64.c
uint64_t byte_feedback[256] = {
0x0000000000000000, 0xc70000000000000b, 0x8e0000000000000d, 0x4900000000000006,
View jesrdspam.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
int main() {
srand(time(NULL));
short *buf = malloc(1048576);
for (int i = 0; i < 1000; i++) {
View jesmarkov.js
'use strict';
class Markov {
constructor() {
this.minLength = 6;
this.maxLength = 30;
this.dict = {};
}
addSentence(text) {
@jes
jes / measurement.go
Created Oct 26, 2018
Tor measurement program
View measurement.go
package main
import (
"fmt"
"golang.org/x/net/proxy"
"net"
"os"
"strconv"
"time"
)
View markov.js
'use strict';
class Markov {
constructor() {
this.maxLength = 30;
this.dict = {};
}
addSentence(text) {
// '\0' is a sentinel marking the beginning + end of sentences
View andy-bauch-$60-solver
#!/usr/bin/perl
use strict;
use warnings;
use bytes;
my $input = 'BYGRBLBYBLBLBYBRBLGYBYYYBLBYBYBLBYFYBLGYBGRGBGRRBGFRBLBFBLBYBYFLBLBGBYYBBLYYBGRLBYYFBYGRBYFRBLBFBGYFBYRRBGRYBGYFBGRRBLGG';
for my $b (0 .. 5) {
@jes
jes / protoproxy.go
Last active Mar 20, 2018
Run SSH and HTTP on the same port
View protoproxy.go
package main
import (
"fmt"
"net"
"os"
"strings"
)
func main() {
View xorimg
#!/usr/bin/perl
use strict;
use warnings;
use GD;
my $filename1 = shift or die "usage: xorimg ONE.PNG TWO.PNG > OUTPUT.PNG\n";
my $filename2 = shift or die "usage: xorimg ONE.PNG TWO.PNG > OUTPUT.PNG\n";
You can’t perform that action at this time.