Skip to content

Instantly share code, notes, and snippets.

View GanbaruTobi's full-sized avatar

Tobias Mayer GanbaruTobi

View GitHub Profile
@GanbaruTobi
GanbaruTobi / brute_keepass.py
Last active January 3, 2020 12:22
keepass unsupported version slow bruteforce
#!/usr/bin/env python3
import pexpect
with open('Passwords.txt') as passwords:
for password in passwords:
p = pexpect.spawn('/bin/bash -c "keepassxc-cli open test.kdbx"')
p.expect("Enter password to unlock")
p.sendline(password)
p.timeout = 2
@GanbaruTobi
GanbaruTobi / brute_keepass_threaded.py
Created January 3, 2020 12:22
keepass unsupported versions bruteforce
#!/usr/bin/env python3
import pexpect
import threading
import time
class bruteThread (threading.Thread):
def __init__(self, password):
threading.Thread.__init__(self)
self.password = password
@GanbaruTobi
GanbaruTobi / main.rs
Created June 9, 2022 20:35
Bug for radius pc_tmp overflow
use radius2::{Radius, RadiusOption};
use radius2::state::State;
use radius2::value::Value;
fn scramble_sim(state: &mut State, args: &[Value]) -> Value { //ignore, not implemented yet
state.concrete_value(1, 64)
}
fn getsecretnumber_sim(state: &mut State, args: &[Value]) -> Value { //ignore, not implemented yet