-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMatNukerTool.py
275 lines (254 loc) · 12.3 KB
/
MatNukerTool.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# -*- coding: utf-8 -*-
#Made with love by Mat
### IMPORT ###
import os
import requests, os, sys, re, time, os.path, ctypes, getpass
from pystyle import Add, Center, Anime, Colors, Colorate, Write, System
from colorama import Fore
from urllib.request import Request, urlopen
import nextcord
### COLORI E VAR ###
VERSIONETOOL = "0.0.1 [BETA]"
c = Fore.LIGHTCYAN_EX
g = Fore.LIGHTGREEN_EX
y = Fore.LIGHTYELLOW_EX
b = Fore.LIGHTBLUE_EX
w = Fore.LIGHTWHITE_EX
m = Fore.LIGHTMAGENTA_EX
### SETUP DISCORD ###
import nextcord
from nextcord.errors import LoginFailure
from nextcord.ext import commands
from nextcord.utils import get
intents = nextcord.Intents.default()
intents.members = True
intents.guild_messages = True
intents.messages = True
intents.guilds = True
#nuker = commands.Bot(command_prefix=";",intents=intents)
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
nuker = Bot()
global statobot
statobot = 'Offline'
### SCHERMATA ###
def impostatitolo(_str):
system = os.name
if system == 'nt':
ctypes.windll.kernel32.SetConsoleTitleW(f"{_str} | github.com/itsmat")
elif system == 'posix':
sys.stdout.write(f"\x1b]0;{_str} | github.com/itsmat\x07")
else:
pass
def clear():
system = os.name
if system == 'nt':
os.system('cls')
elif system == 'posix':
os.system('clear')
else:
print('\n'*120)
return
def titolohome():
# print(f"""\n\n
# ╭━╮╱╭┳╮╱╭┳╮╭━┳━━━┳━━━╮╭━━━━┳━━━┳━━━┳╮
# ┃┃╰╮┃┃┃╱┃┃┃┃╭┫╭━━┫╭━╮┃┃╭╮╭╮┃╭━╮┃╭━╮┃┃
# ┃╭╮╰╯┃┃╱┃┃╰╯╯┃╰━━┫╰━╯┃╰╯┃┃╰┫┃╱┃┃┃╱┃┃┃
# ┃┃╰╮┃┃┃╱┃┃╭╮┃┃╭━━┫╭╮╭╯╱╱┃┃╱┃┃╱┃┃┃╱┃┃┃╱╭╮
# ┃┃╱┃┃┃╰━╯┃┃┃╰┫╰━━┫┃┃╰╮╱╱┃┃╱┃╰━╯┃╰━╯┃╰━╯┃
# ╰╯╱╰━┻━━━┻╯╰━┻━━━┻╯╰━╯╱╱╰╯╱╰━━━┻━━━┻━━━╯
#\n""".replace('█', f'{g}█{y}'))
print(f"""\n\n
__ __ _ _ _ _ _______ _
| \/ | | | | \ | | | | |__ __| | |
| \ / | __ _| |_ | \| |_ _| | _____ _ __ | | ___ ___ | |
| |\/| |/ _` | __| | . ` | | | | |/ / _ \ '__| | |/ _ \ / _ \| |
| | | | (_| | |_ | |\ | |_| | < __/ | | | (_) | (_) | |
|_| |_|\__,_|\__| |_| \_|\__,_|_|\_\___|_| |_|\___/ \___/|_|
\n""".replace('█', f'{g}█{y}'))
banner = r"""
░█████╗░░█████╗░██████╗░██╗░█████╗░░█████╗░███╗░░░███╗███████╗███╗░░██╗████████╗░█████╗░
██╔══██╗██╔══██╗██╔══██╗██║██╔══██╗██╔══██╗████╗░████║██╔════╝████╗░██║╚══██╔══╝██╔══██╗
██║░░╚═╝███████║██████╔╝██║██║░░╚═╝███████║██╔████╔██║█████╗░░██╔██╗██║░░░██║░░░██║░░██║
██║░░██╗██╔══██║██╔══██╗██║██║░░██╗██╔══██║██║╚██╔╝██║██╔══╝░░██║╚████║░░░██║░░░██║░░██║
╚█████╔╝██║░░██║██║░░██║██║╚█████╔╝██║░░██║██║░╚═╝░██║███████╗██║░╚███║░░░██║░░░╚█████╔╝
░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░╚════╝░╚═╝░░╚═╝╚═╝░░░░░╚═╝╚══════╝╚═╝░░╚══╝░░░╚═╝░░░░╚════╝░
"""[1:]
def transizione():
clear()
caricamento()
clear()
def caricamento():
carattere = ['|', '/', '-', '\\']
for i in carattere+carattere+carattere:
sys.stdout.write(f"""\r{y}[{b}#{y}]{w} Caricamento... {i}""")
sys.stdout.flush()
time.sleep(0.2)
@nuker.event
async def on_ready():
global statobot
statobot = 'Online'
print("Bot loggato:")
print("ID: " + str(nuker.user.id))
print("Nome: " + str(nuker.user.name))
main()
from scripts import *
def main():
impostatitolo(f"Mat Nuker Tool {VERSIONETOOL} - Caricamento")
System.Size(160, 40) #120, 30
Anime.Fade(Center.Center(banner), Colors.green_to_red, Colorate.Vertical, time=1)
clear()
try:
filetoken = open("token.txt", "r")
token = 'Trovato'
except:
token = 'Non Trovato'
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
except:
server = 'Non Trovato'
global statobot
impostatitolo(f"Mat Nuker Tool {VERSIONETOOL}")
titolohome()
print(f""" {y}[{b}+{y}]{g} Main: {y}[{b}+{y}]{c} Settings:
{y}[{w}1{y}]{g} Banna tutti i membri {y}[{w}10{y}]{c} Imposta bot token
{y}[{w}2{y}]{g} Elimina tutti i canali {y}[{w}11{y}]{c} Imposta il server da grieffare
{y}[{w}3{y}]{g} Elimina tutti i ruoli {y}[{w}12{y}]{c} Avvia bot
{y}[{w}4{y}]{g} Dai a @everyone l'amministratore
{y}[{w}5{y}]{g} Crea canali
{y}[{w}6{y}]{g} Modifica nome server
{y}[{w}7{y}]{g} Elimina emoji server
{m}Made by Mat#3616 | github.com/itsmat
{m}Token : {b}{token}
{m}Server : {b}{server}
{m}Stato bot : {b}{statobot}
\t\t\t\t\t\t\t\t\t\t\t\t\t""")
global scelta
scelta = input(f"""{y}[{b}#{y}]{w} [{getpass.getuser()}]: """)
if scelta == '1' or scelta == '01':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/1_BanAll.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '2' or scelta == '02':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/2_EliminaCanali.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '3' or scelta == '03':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/3_EliminaRuoli.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '4' or scelta == '04':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/4_ModificaEveryone.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '5' or scelta == '05':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/5_CreaCanali.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '6' or scelta == '06':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/6_CambiaNomeServer.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '7' or scelta == '07':
if statobot == 'Online':
try:
fileserver = open("server.txt", "r")
server = fileserver.read()
serverr = nuker.get_guild(int(server))
os.system('python3 ./scripts/7_EliminaEmoji.py')
except FileNotFoundError:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Server ID mancante [tasto 11 nella home]!")
main()
else:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Avvia il bot [tasto 12 nella home]!")
main()
elif scelta == '10' or scelta == '010':
transizione()
diocane = input(f'{y}[{b}#{y}]{w} Inserisci il token del bot: ')
file = open(f"token.txt", 'w')
file.write(f"{diocane}")
file.close()
main()
elif scelta == '11' or scelta == '011':
transizione()
diocane = input(f'''{y}[{b}#{y}]{w} Inserisci l'id del server da nukkare: ''')
file = open(f"server.txt", 'w')
file.write(f"{diocane}")
file.close()
main()
elif scelta == '12' or scelta == '012':
transizione()
try:
filetoken = open("token.txt", "r")
token = filetoken.read()
try:
nuker.run(f'{token}')
except LoginFailure:
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Il token inserito non è valido!")
except Exception as errore:
print(errore)
input(f"{y}[{Fore.LIGHTRED_EX }!{y}]{w} Devi prima impostare il token del bot e l'id del server!")
main()
elif scelta == 'exit' or scelta == 'chiudi':
transizione()
sys.exit()
else:
clear()
main()
main()