Crack open your SBI PDF Statements if forgot the registered phone number
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
# 1: Install pdfplumber from terminal : `pip3 install pdfplumber` | |
# 2: Save bank statement to a folder as `savings_bank_account_statement.pdf` | |
# 3: Password is of the format: <last 5 digit of a mobile number><dob> | |
# 4: Download `SBI-PDF-Statement-cracker.py` file and save to the same folder | |
# 5: Run this program from terminal as `python3 SBI-PDF-Statement-cracker.py` | |
import pdfplumber | |
dob = '131255' # ddmmyy format, dob value is randomized for privacy | |
for i in range (10000,100000): | |
pwd = str(i) + dob | |
try: | |
with pdfplumber.open(r'savings_bank_account_statement.pdf', password = pwd) as pdf: | |
first_page = pdf.pages[0] | |
print(first_page.extract_text()) | |
print(str(pwd) + ' is the password') | |
break | |
except: | |
# print(str(pwd) + ' didnt work') | |
pass | |
print("!! Program Running Successfully !!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment