Refactor: Implement TCP Brutal installation in Python
This commit is contained in:
15
core/scripts/tcp-brutal/install.py
Normal file
15
core/scripts/tcp-brutal/install.py
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
def main():
|
||||
print("Installing TCP Brutal...")
|
||||
|
||||
subprocess.run("bash -c \"$(curl -fsSL https://tcp.hy2.sh/)\"", shell=True)
|
||||
os.system('clear')
|
||||
|
||||
print("TCP Brutal installation complete.")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Installing TCP Brutal..."
|
||||
bash <(curl -fsSL https://tcp.hy2.sh/)
|
||||
sleep 3
|
||||
clear
|
||||
echo "TCP Brutal installation complete."
|
||||
Reference in New Issue
Block a user