-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzip_payload.py
More file actions
31 lines (27 loc) · 780 Bytes
/
zip_payload.py
File metadata and controls
31 lines (27 loc) · 780 Bytes
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
import zipfile
from pathlib import Path
output_zip = "deploy_bundle.zip"
# Files and folders to include
targets = [
"node.exe",
"setup_payload.exe",
"dropper/",
"plugins/",
"proto/",
"crypto/",
"memory/tagger.py", # Keep core memory logging
"net/dashboard_sync.py",
]
def package():
with zipfile.ZipFile(output_zip, 'w', zipfile.ZIP_DEFLATED) as zipf:
for target in targets:
path = Path(target)
if path.is_file():
zipf.write(path, path)
elif path.is_dir():
for file in path.rglob("*"):
if file.is_file():
zipf.write(file, file)
print(f"[+] Payload packaged to {output_zip}")
if __name__ == "__main__":
package()