Posted
Well, Hello there i made a hwid whitelist system since i never contributed to the community so feel free to use it
just make sure to credit me
This is my first code after 4 months so its sloppy.
public partial class MainWindow : Window
{
string HWID; // we make this string here cause yes
public MainWindow()
{
InitializeComponent();
}
private void LoginButton_Click(object sender, RoutedEventArgs e)
{
ServicePointManager.Expect100Continue = true; //sets the security protocol or idk how to explain
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
HWID = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value; // gets the hwid
WebClient bruh = new WebClient(); // webclient because its important
WebClient ab = new WebClient(); // another webclient
string HWIDList = bruh.DownloadString("enter the website where you will paste whitelisted hwids it can be pastebin and github make sure its raw"); // we make a string and have our webclient download data from our whitelist link
if (HWIDList.Contains(HWID)) // this will cehck if your hwid is available in the link
{
MessageBox.Show("You are WhiteListed", "hwid system");
// you can add any code here for example i will add a code that open another window
Window2 win = new Window2();
win.Show();
}
string BHWID = ab.DownloadString("link for blacklisted hwids"); // so this is blacklisted hwids
if (BHWID.Contains(HWID)) // will check if your hwid is in the blacklisted link
{
MessageBox.Show("You are Black Listed, "hwid system");
}
else
{
MessageBox.Show("this is for those who have neither their hwid in whitelisted link or blacklisted", "hwid system");
}
bruh.Dispose();
ab.Dispose();
}
}https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png
Replied
why are you using lua comment in c#
Cancel
Post
https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png
Replied
@RiceUsesArchBtw oh crap i was learning lua and stopped coding in c# for 4-5 months i will fix thanks for telling
Cancel
Post
https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png
Replied
wtf is this lmao what's the point in 2 different webclients
Cancel
Post
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
Replied
holy brain damage
Cancel
Post
Discord : Doctor Doom#0550
Replied
@_realnickk didn't meantion above but this was my first code after 4 months so its sloppy i forgot to dispose of hte webclients
Cancel
Post
https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png
Replied
code is legit so bad
WHY DO YOU USE PARANTHESES FOR A SINGLE LINE CODE
CHOOSE BETWEEN PASCALCASE OR FULL SNAKECASE ALREADY
Cancel
Post
Replied
me when brackets on single line if statements
also the blacklist messagebox is missing a quotation mark lol
Cancel
Post
https://media.discordapp.net/attachments/995070188628221952/1022545309529808996/mrk0banner5.png
Replied
@59576IDK thIs is mY first code after 4 months its bad i hate to admit but its bad but when i wil get the hang of c# i will improve
Cancel
Post
https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png
Replied
It's just really insecure and has no point in doing that
if you're using pastebin in at least hashe the hwids
Cancel
Post
Random quote here...
Replied
Wrote In Like A Minute For Fun Should Work I Didn't Test.
Obviously Break The Look On Match I Forgot That Lol.
static void Main(string[] args)
{
/* Static List Link. */
string Link = "";
/* Web Security Stuff (Handles Some Exceptions). */
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
/* Better To Use Multiple Different Components Combine And Hash In An Assorted Order. */
string Hardware = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value;
using (var Http = new WebClient { Proxy = null })
{
string[] List = Http.DownloadString(Link).Split('\n');
foreach (string Item in List)
{
if (Item != Hardware)
{
/* Hardware Id Was Not Matched In List. */
}
/* Assuming Hardware Id Was Found In The List. */
}
}
/* Pause After Code Above Completes. */
Console.ReadLine();
}
Cancel
Post
https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png
Random quote here...
Replied
@50127im no code expert but your code looks more cleaner than mine
Cancel
Post
https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png
Users viewing this thread:
( Members: 0, Guests: 0, Total: 0 )
Cancel
Post