Skip to content

Instantly share code, notes, and snippets.

@jabb3rd
jabb3rd / keybase.md
Last active August 29, 2015 14:13
keybase.md

Keybase proof

I hereby claim:

  • I am jabberd on github.
  • I am jabberd (https://keybase.io/jabberd) on keybase.
  • I have a public key whose fingerprint is EC32 8333 C8DD A991 C9DC DEE1 F337 A17B D2B3 0C61

To claim this, I am signing this object:

@jabb3rd
jabb3rd / scan.ps1
Created January 24, 2015 00:41
Get list of files and directories of current logged on user on each machine from scan.list
function get-loggedonusers
{
param([Array]$Computer)
$computers = get-wmiobject Win32_Computersystem -computername $Computer
$report = @()
foreach ($c in $computers) {
$temp = "" | Select Computer, Username
$temp.Computer = $c.name
$temp.Username = $c.username
$report += $temp
@jabb3rd
jabb3rd / TrueImages.pm
Created October 11, 2015 12:36
Shutter plugin for uploading images to trueimages.ru
#! /usr/bin/env perl
###################################################
#
# Copyleft (C) 2014 @jabberd
#
# This file is part of Shutter.
#
# Shutter is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
@jabb3rd
jabb3rd / synology-pushall.php
Created November 1, 2015 11:44
PushAll.Ru support for Synology DSM
<?php
echo time();
if ($_SERVER['HTTP_HOST'] != 'localhost') {
die;
}
$options = array(
'type' => 'self',
'id' => isset($_GET['id']) ? $_GET['id'] : false,
'key' => isset($_GET['key']) ? $_GET['key'] : false,
@jabb3rd
jabb3rd / gist:abda2622c3e4ef77b19d
Created December 31, 2015 08:17
Mikrotik Proxy allow acess to Trello
add dst-host=d78fikflryjgj.cloudfront.net
add dst-host=trello.com
add dst-host=trello-avatars.s3.amazonaws.com
add dst-host=trello-attachments.s3.amazonaws.com
add dst-host=trello-backgrounds.s3.amazonaws.com
add dst-host=trello-logos.s3.amazonaws.com
add dst-host=pixel.quantserve.com
add src-address=<IP ADDRESS TO ALLOW>
add action=deny comment="Deny everything else"
@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:
@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]
#!/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 / 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
@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():