-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
86 lines (70 loc) · 3.27 KB
/
main.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
from utils.colors import *
from utils.utils import Utils
import sys, time, distro
import os
utils = Utils()
def main():
os.system("clear")
print(f"""
╔═══════════════════════════════════════════════════════════════
║
║ ░█▀▀█ █▀▀█ █▀▀ █░░█ ▒█▀▀█ █▀▀ █▀▀▄ ▀▀█▀▀ █▀▀ █▀▀ ▀▀█▀▀
║ ▒█▄▄█ █▄▄▀ █░░ █▀▀█ ▒█▄▄█ █▀▀ █░░█ ░░█░░ █▀▀ ▀▀█ ░░█░░
║ ▒█░▒█ ▀░▀▀ ▀▀▀ ▀░░▀ ▒█░░░ ▀▀▀ ▀░░▀ ░░▀░░ ▀▀▀ ▀▀▀ ░░▀░░
║
║ Author: rec0veryyy / github.com/rec0veryyy
║
║ {cred}[1] {cpurple}Install BlackArch repo{cdefault}
║ {cred}[2] {cpurple}Install Hacking Tools (ex: gobuster crackmapexec){cdefault}
║ {cred}[0] {cdefault}Exit
║
╚═══════════════════════════════════════════════════════════════
""")
option = int(input(f"{utils.promp_style}"))
if option == 1:
InstallBlackArch()
elif option == 2:
InstallHackingTools()
elif option == 0:
exit
else:
print("[!] Elije una opcion valida")
input();
os.system("clear")
main()
def InstallBlackArch():
os.system("clear")
print(f"-* {cblue}A continucacion se instalara el repo de arch{cdefault} *-\n")
try:
opt = input(f"{cred}[!] {cdefault}Proceder con la instalacion? [Y/n] ")
if opt == "Y" or opt == "y":
print(f"{cred}[!] {cgreen}Instalando Repo de BlackArch...{cdefault}")
time.sleep(2)
os.system("mkdir -p ~/repos; cd ~/repos")
os.system("git clone https://aur.archlinux.org/paru-bin.git; cd ~/repos/paru-bin")
os.system("makepkg -si")
print("[!] ")
os.system("mkdir -p ~/repos/; cd ~/repos/; git clone https://aur.archlinux.org/paru-bin.git; cd ~/repos/paru-bin/; makepkg -si; mkdir ~/repos/blackarch; cd ~/repos/blackarch/; curl -O https://blackarch.org/strap.sh; chmod +x strap.sh; sudo ./strap.sh");
elif opt == "N" or opt == "n":
main()
else:
print("\n~ Elije una opcion valida [Press Any key]")
input();os.system("clear")
InstallBlackArch()
except:
pass
def InstallHackingTools():
print("[!] Instalacion de Herramientas\n\n")
select_tool = str(input(">> "))
os.system(f"sudo pacman -S {select_tool}")
print(f"[!] Herramintas {select_tool} han sido descargadas/actualizadas")
#ex = os.system("sudo pacman -Sgg | grep blackarch | awk '{print $2}' > tools.txt")
if __name__ == '__main__':
try:
if distro.name() != "Ubuntu": # Change to Arch Linux
sys.exit(1)
else:
main()
except KeyboardInterrupt:
print(f"\n\n{cred}[!]{cdefault}Saliendo")
sys.exit(1)