Skip to content

Instantly share code, notes, and snippets.

@jabb3rd
jabb3rd / tgAPI
Created February 24, 2017 05:13
Set global variables and functions for Telegram BotAPI
:global tgAPI "https://api.telegram.org/bot123456789:ABCDEF0123456789abcdef0123456789ABC"
:global tgID "123456"
# Telegram BotAPI sendMessage method
# Example: $tgSendMessage $chatid $text
:global tgSendMessage do={
:global tgAPI
:local url ($tgAPI . "/sendMessage\?chat_id=" . $1 . "&text=" . $2)
/tool fetch keep-result=no url="$url"
}
@jabb3rd
jabb3rd / LogTrap-Parse
Last active December 16, 2023 10:00
Log parser for RouterOS
# tgSendMessage is set by tgSetEnvironment script which runs at startup by the scheduler,
# contains Telegram BotAPI string for sendMessage method.
:global tgSendMessage
:global tgID
# This is used to track already shown log entries
:global lastLogID
# Log buffer name
:local logName "LogTrap"
@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 / mikrotik-bittwiste
Last active December 10, 2019 21:50 — forked from anonymous/mikrotik-bittwiste
Convert tcpdump from MikroTik wireless sniffer into airodump-ng friendly format (remove TZSP headers)
1. Set up streaming server:
/interface wireless sniffer set streaming-server=X.X.X.X
/interface wireless sniffer set streaming-enabled=yes
/interface wireless sniffer set multiple-channels=yes
2. Set up scan list or specific channel(s) (frequencies in MHz):
/interface wireless set scan-list=default
3. Start up the sniffer:
/interface wireless sniffer sniff interface=wlan1
@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