Skip to content

Instantly share code, notes, and snippets.

@asapelkin
asapelkin / pwned-pass-fast.py
Created August 3, 2018 12:27 — forked from alexanderzobnin/pwned-pass-fast.py
Script for searching passwords in Pwned Passwords database from haveibeenpwned.com
#!/usr/bin/python
import os
import hashlib
mypasswords = [
"doors",
"d00rs",
"Morrison",
"Hotel"
string appSid = "CLIENT_SID";
string appServerSid = "89.108.120.<xx>/APP_SERVER";
com::interproc::Node* node = new com::interproc::Node(appSid, *glb_ioservice);
glb_appServerNodeAddr = NodeAddress(appServerSid);
glb_dbManager = new DatabaseManager("GCDDB",
std::unique_ptr<DatabaseAccess>(static_cast<DatabaseAccess*>(new DatabaseRemoteAccess("GCDDB", node, glb_appServerNodeAddr))),
"<xx>",
"<xx>",
*glb_ioservice);
string appSid = "CLIENT_SID";
string appServerSid = "89.108.120.<xx>/APP_SERVER";
com::interproc::Node* node = new com::interproc::Node(appSid, *glb_ioservice);
glb_appServerNodeAddr = NodeAddress(appServerSid);
glb_dbManager = new DatabaseManager("GCDDB",
std::unique_ptr<DatabaseAccess>(static_cast<DatabaseAccess*>(new DatabaseRemoteAccess("GCDDB", node, glb_appServerNodeAddr))),
"<xx>",
"<xx>",
*glb_ioservice);