Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
d5ccbff
1
Parent(s):
43f00c6
Update dev.py
Browse files- Powers/plugins/dev.py +25 -1
Powers/plugins/dev.py
CHANGED
|
@@ -127,6 +127,10 @@ HARMFUL = [
|
|
| 127 |
"BOT_TOKEN",
|
| 128 |
"API_HASH",
|
| 129 |
"APP_ID",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
]
|
| 131 |
|
| 132 |
|
|
@@ -194,9 +198,16 @@ async def evaluate_code(c: Gojo, m: Message):
|
|
| 194 |
MESSAGE_DUMP,
|
| 195 |
f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}",
|
| 196 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
for i in evaluation.split():
|
| 198 |
for j in i.split("="):
|
| 199 |
-
if j and j[0] in HARMFUL:
|
| 200 |
if m.from_user.id != OWNER_ID:
|
| 201 |
evaluation = "Bhaag ja bsdk"
|
| 202 |
await c.send_message(
|
|
@@ -275,6 +286,19 @@ async def execution(c: Gojo, m: Message):
|
|
| 275 |
pass
|
| 276 |
else:
|
| 277 |
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
OUTPUT = ""
|
| 280 |
OUTPUT += f"<b>QUERY:</b>\n<u>Command:</u>\n<code>{cmd}</code> \n"
|
|
|
|
| 127 |
"BOT_TOKEN",
|
| 128 |
"API_HASH",
|
| 129 |
"APP_ID",
|
| 130 |
+
"SSH_CLIENT",
|
| 131 |
+
"SSH_CONNECTION"
|
| 132 |
+
"SSH"
|
| 133 |
+
|
| 134 |
]
|
| 135 |
|
| 136 |
|
|
|
|
| 198 |
MESSAGE_DUMP,
|
| 199 |
f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}",
|
| 200 |
)
|
| 201 |
+
for j in HARMFUL:
|
| 202 |
+
if j in evaluation:
|
| 203 |
+
if m.from_user.id != OWNER_ID:
|
| 204 |
+
evaluation = "Bhaag ja bsdk"
|
| 205 |
+
await c.send_message(
|
| 206 |
+
MESSAGE_DUMP,
|
| 207 |
+
f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}")
|
| 208 |
for i in evaluation.split():
|
| 209 |
for j in i.split("="):
|
| 210 |
+
if j and j[0].casefold() in HARMFUL.casefold():
|
| 211 |
if m.from_user.id != OWNER_ID:
|
| 212 |
evaluation = "Bhaag ja bsdk"
|
| 213 |
await c.send_message(
|
|
|
|
| 286 |
pass
|
| 287 |
else:
|
| 288 |
pass
|
| 289 |
+
for x in HARMFUL:
|
| 290 |
+
if x in out:
|
| 291 |
+
if m.from_user.id != OWNER_ID:
|
| 292 |
+
out = "You can't access them"
|
| 293 |
+
await c.send_message(
|
| 294 |
+
MESSAGE_DUMP,
|
| 295 |
+
f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}",
|
| 296 |
+
)
|
| 297 |
+
else:
|
| 298 |
+
pass
|
| 299 |
+
else:
|
| 300 |
+
pass
|
| 301 |
+
|
| 302 |
|
| 303 |
OUTPUT = ""
|
| 304 |
OUTPUT += f"<b>QUERY:</b>\n<u>Command:</u>\n<code>{cmd}</code> \n"
|