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
#!/usr/bin/env python3 | |
# https://github.com/libkeepass/pykeepass | |
# pip install pykeepass | |
from pykeepass import PyKeePass | |
kp = PyKeePass('Logins.kdbx', password='<ENTER PASSWORD>') | |
for entry in kp.entries: |
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
#!/usr/bin/env python3 | |
''' | |
Solution for : Username enumeration via response timing | |
https://portswigger.net/web-security/authentication/password-based/lab-username-enumeration-via-response-timing | |
''' | |
import time | |
import random | |
import requests |
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
#!/usr/bin/env python3 | |
import requests | |
url = 'https://ac8b1f4b1e6ce1ca80d12b3a001600d1.web-security-academy.net/' | |
max_len = 21 | |
min_len = 1 | |
timeout = 10 | |
charset = 'abcdefghijklmnopqrstuvwxyz1234567890!@#$' |
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
#!/usr/bin/env python3 | |
''' | |
GOAL : Pure python solution for RSA small exponent attack | |
since cipher is a very large integer python generally throws | |
overflow error, to solve that I have used decimal module which is | |
part of the standard python library | |
decimal module offers user defined precision which can be increased |