forked from JPaulMora/Pyrit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRead-Here-python3
More file actions
90 lines (65 loc) · 2.2 KB
/
Read-Here-python3
File metadata and controls
90 lines (65 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Pyrit (Python 3.13-Compatible Fork)
This fork updates [Pyrit](https://github.com/JPaulMora/Pyrit) for compatibility with **Python 3.13**, maintaining as much of the original logic as possible while resolving syntax and structural issues that prevent the code from building or running on modern systems.
> ⚠️ This is a modified version. Credit for the original project goes to **[JPaulMora](https://github.com/JPaulMora/Pyrit)**.
---
## ✅ Changes in This Fork
### 🔧 Syntax Fixes
- Replaced **deprecated tuple unpacking** in function parameters:
```diff
- def enqueue(self, uuid, (essid, pwlist)):
+ def enqueue(self, uuid, essid_pwlist):
essid, pwlist = essid_pwlist
```
- Updated **Python 2-style exception handling**:
```diff
- except ImportError, e:
+ except ImportError as e:
```
- Fixed **invalid use of `PyObject_GetBuffer`** in C extensions (for newer Python versions).
- Addressed **deprecated OpenSSL SHA1 usage warnings** (still builds but may need replacement for long-term support).
---
### 📂 Files Modified
- `cpyrit/network.py`
- `cpyrit/storage.py`
- `cpyrit/pckttools.py`
- `cpyrit/pyrit_cli.py`
- `cpyrit/util.py`
> These files were restructured and patched to conform to Python 3.13 standards and runtime behavior.
---
## 🛠 Installation
### 1. Clone This Repo
```bash
git clone https://github.com/Creator2303/pyrit-python3.13.git
cd pyrit-python3.13
```
### 2. Build & Install
```bash
python3 setup.py build
sudo python3 setup.py install
```
---
## 🧪 Usage
Run the CLI to check everything is correctly installed:
```bash
pyrit -h
```
If the pyrit is not found just try this:
sudo ln -sf $(which pyrit_cli.py) /usr/local/bin/pyrit
Expected output:
```
Pyrit CLI placeholder
...
```
---
## 🙏 Credit
- Original Author: [JPaulMora](https://github.com/JPaulMora)
- Python 3.13 Migration: [Creator2303](https://github.com/Creator2303)
- Fixing/Testing: AI-assisted patching via OpenAI's ChatGPT
---
## ⚠️ Notes
- This is not a full rewrite or refactor.
- Some modules (e.g. OpenCL/CUDA support) may still require additional work.
- Only CPU backend was tested.
- Use at your own risk for penetration testing or educational research.
---
Happy cracking 🔐🚀