-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
installer.py
29 lines (23 loc) Β· 859 Bytes
/
installer.py
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
import os
import subprocess
def create_virtualenv():
print("Creating π Loxocat π virtual environment...")
subprocess.run(["python3", "-m", "venv", "loxocat"])
def activate_virtualenv():
print("Activating π Loxocat π virtual environment...")
activate_script = "loxocat/bin/activate" if os.name != "posix" else "loxocat\\Scripts\\activate"
subprocess.run([activate_script])
def install_pwncat_cs():
print("Installing pwncat-cs...")
subprocess.run(["pip", "install", "pwncat-cs"])
def install_dependencies():
print("Installing project dependencies...")
subprocess.run(["pip", "install", "-r", "requirements.txt"])
def main():
create_virtualenv()
activate_virtualenv()
install_pwncat_cs()
install_dependencies()
print("Installation completed...")
if __name__ == "__main__":
main()