Skip to content

Instantly share code, notes, and snippets.

@jabb3rd
jabb3rd / proxy-checker.py
Last active November 24, 2021 07:48
A multi-threaded http/socks4/socks5 proxy checker based on urllib3
#!/usr/bin/env python3
import urllib3
import urllib3.contrib.socks
import threading
from queue import Queue
import sys
import argparse
TIMEOUT = 5.0
@jabb3rd
jabb3rd / creds.sh
Created January 5, 2021 00:33
Build a frequency-sorted dictionary from <address>\t<login>\t<password> with optionally given minimal and maximal occurencies.
#!/bin/bash
usage() {
echo "Usage: $(basename $0) <file.creds> [<min> [max]]"
exit 0
}
[ -f "$1" ] || usage
if [ "$2" == "" ]; then

Keybase proof

I hereby claim:

  • I am jabb3rd on github.
  • I am jabberd (https://keybase.io/jabberd) on keybase.
  • I have a public key ASAzKXFOP5jnntPXre5gSVHIa5zBtyDFByjDYX8UntE9rQo

To claim this, I am signing this object:

@jabb3rd
jabb3rd / dns.py
Created March 13, 2020 08:42
DNS server python implementation
#!/usr/bin/env python
# coding=utf-8
import argparse
import datetime
import sys
import time
import threading
import traceback
import socketserver
@jabb3rd
jabb3rd / npk-format.ksy
Created June 20, 2019 11:02
MikroTik RouterOS NPK
meta:
id: npk
file-extension: npk
endian: le
seq:
- id: magic
type: u4
enum: npk_types
- id: npk_size
type: u4
@jabb3rd
jabb3rd / service-test.py
Created May 24, 2019 22:58
RouterOS sermgr interaction via winbox Message protocol
#!/usr/bin/env python3
# https://github.com/jabberd/winbox
from winbox.common import *
from winbox.session import *
from winbox.service import *
import argparse
from getpass import getpass
def parse_args():
@jabb3rd
jabb3rd / wbx.ksy
Created May 20, 2019 11:15
Winbox WBX export file (Kaitai Struct)
meta:
id: wbx
file-extension: wbx
endian: le
seq:
- id: magic
contents: [0x0f, 0x10, 0xc0, 0xbe]
- id: records
type: record
repeat: eos
#!/usr/bin/env python
import json
import sys
asn_file = 'asn.json'
if len(sys.argv) < 2:
print('Usage: %s <name> [country]' % sys.argv[0])
exit(1)
@jabb3rd
jabb3rd / qwerty.py
Created December 8, 2017 00:14
Keyboard walker
#!/usr/bin/env python
layout = [
['1234567890-=', 'qwertyuiop[]', 'asdfghjkl;\'\\', 'zxcvbnm,./'],
['!@#$%^&*()_+', 'QWERTYUIOP{}', 'ASDFGHJKL:"|', 'ZXCVBNM<>?']
]
def get_char(xy, shift = 0):
x, y = xy;
return layout[shift][x][y]
@jabb3rd
jabb3rd / rsc_read.py
Last active August 31, 2017 12:37
Read RouterOS .rsc file
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
def read_config(filename):
config = None
try:
f = open(filename, 'r')
except: