Forum > Coding >

[Release] Hwid Whitelist System

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

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();
         }
}
  • 1

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

RiceUsesArchBtw

rice cracker

vip

Posts: 328

Threads: 17

Joined: Aug, 2021

Reputation: 37

Replied

why are you using lua comment in c#

  • 0

https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Replied

@RiceUsesArchBtw oh crap i was learning lua and stopped coding in c# for 4-5 months i will fix thanks for telling

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

SeizureSalad

i love femboys

Posts: 1012

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

wtf is this lmao what's the point in 2 different webclients

  • 0

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

Posts: 1658

Threads: 10

Joined: Sep, 2020

Reputation: 59

Replied

holy brain damage

  • 0

Discord : Doctor Doom#0550

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

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

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

code is legit so bad
WHY DO YOU USE PARANTHESES FOR A SINGLE LINE CODE
CHOOSE BETWEEN PASCALCASE OR FULL SNAKECASE ALREADY

  • 0

mrk0

mark

Posts: 61

Threads: 3

Joined: May, 2022

Reputation: 2

Replied

me when brackets on single line if statements

also the blacklist messagebox is missing a quotation mark lol

  • 0

https://media.discordapp.net/attachments/995070188628221952/1022545309529808996/mrk0banner5.png

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

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

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Posts: 1590

Threads: 166

Joined: Apr, 2021

Reputation: 13

Replied

It's just really insecure and has no point in doing that

if you're using pastebin in at least hashe the hwids 

  • 0

Random quote here...

Posts: 1167

Threads: 72

Joined: Oct, 2019

Reputation: 89

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();
        }

@F34R

  • 2

RiceUsesArchBtw

rice cracker

vip

Posts: 328

Threads: 17

Joined: Aug, 2021

Reputation: 37

Replied

@VoidableMethod which hashing algorithm though

 

  • 0

https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png

Posts: 1590

Threads: 166

Joined: Apr, 2021

Reputation: 13

Replied

  • 0

Random quote here...

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Replied

@50127im no code expert but your code looks more cleaner than mine

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Users viewing this thread:

( Members: 0, Guests: 0, Total: 0 )