This file contains 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
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 |
This file contains 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
#!/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 |
This file contains 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
#!/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 |