https://github.com/fekri8614/py-github-pass-reader
Simple python script to read generated "github-recovery-codes.txt" file.
https://github.com/fekri8614/py-github-pass-reader
github github-config python python3
Last synced: about 2 months ago
JSON representation
Simple python script to read generated "github-recovery-codes.txt" file.
- Host: GitHub
- URL: https://github.com/fekri8614/py-github-pass-reader
- Owner: fekri8614
- Created: 2025-02-16T17:20:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T17:29:43.000Z (over 1 year ago)
- Last Synced: 2025-02-16T18:27:26.268Z (over 1 year ago)
- Topics: github, github-config, python, python3
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### py-github-pass-reader
**Simple python script to read the generated "github-recovery-codes.txt" file.**
---
# How to use it:
1. run the code:
```bash
python3 py_github_pass_reader.py
```
1. *Enter the file path*
---
``` python
import random
def main():
file_path = input("file path: ")
if(len(file_path) > 8):
generate_pass(file_path)
else:
print("Try again.")
main()
def generate_pass(file_path):
pass_list = []
filtered_pass_list = []
try:
with open(file_path, "r") as files:
for file in files:
pass_list.append(file)
for pass_item in pass_list:
filtered_pass_list.append(pass_item.replace("\n", ""))
print("\n" + "-"*4 + " Result " + "-"*4)
print("Your Password: " + str(random.choice(filtered_pass_list)))
except Exception as e:
print("\n" + "-"*10 + " Occured Error " + "-"*10)
print(e)
if __name__ == "__main__":
main()
```
---
*new updates are coming...*