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
# MIT License (c) Sascha Spreitzer, 2015 | |
class ArpEntry(object): | |
def __init__(self, line): | |
self.ip, self.hw_type, self.flags, self.hw_address, self.mask, self.device = \ | |
line.split() | |
def __str__(self): | |
return '%s: %s' % (self.ip, self.hw_address) | |
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
# Ruby base16 encode/decode | |
# (c) Sascha Spreitzer, 2016 | |
# MIT license | |
def b16decode(what) | |
chars = '' | |
ret = '' | |
what.each_char do |c| | |
chars += c | |
if chars.size == 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
def test | |
true | |
end |
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
# Sascha Spreitzer (c) 2018, MIT License | |
require 'net/http' | |
require 'thread' | |
url = ARGV[0] ||= 'http://example.com/' | |
many = ARGV[1] ||= 100 | |
res = {} | |
m = Mutex.new | |
thr = [] |
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
require 'open3' | |
require 'json' | |
require 'uri' | |
# MIT license, (c) Sascha Spreitzer, 2022 | |
# !!! Create an export before using this tool !!! | |
# !!! You may loose all your passwords !!! | |
# !!! Use at your own risk !!! |
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 gh | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"github.com/google/go-github/v71/github" | |
) |