Categories > Coding > C# >

C# HWID LOGIN

Beastsploits

Beast aka Kappaladi

Posts: 121

Threads: 29

Joined: Dec, 2019

Reputation: 3

Posted

Hey So this is a crappy HWID login system with pastebin and pretty darn simple but if you are looking to learn more c# or you are learning c# this is a pretty good example on how to use some things 

ALSO IM PRETTY NEW TO C# SO IF YOU SEE ANY ERRORS PLEASE CORRECT AND YOU COULD POSSIBLY TEACH ME A THING OR 2 :D 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Net;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {

            #region  HWIDGRAB
            var mbs = new ManagementObjectSearcher("Select ProcessorId From Win32_processor");
            ManagementObjectCollection mbsList = mbs.Get();
            string id = "";
            foreach (ManagementObject mo in mbsList)
            {
                id = mo["ProcessorId"].ToString();
                break;
            }
            // copied pasted the HWIDGRAB from stackoverflow omegalul dont judge
            #endregion

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(id);
            Console.Title = "Hwid Login ";
            
            WebClient wc = new WebClient();
            string HWIDLIST = wc.DownloadString("https://pastebin.com/raw/");

            #region Auth

            if (HWIDLIST.Contains(id))
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("Authed");
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Not Authed");
                Console.ReadLine();
                Environment.Exit(-1);
            }
            #endregion


            wc.Dispose();
            Console.ReadLine();

        }

        

    }
}



  • 0

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

Wow guys he disposed the webclient :clap:

  • 0

Beastsploits

Beast aka Kappaladi

Posts: 121

Threads: 29

Joined: Dec, 2019

Reputation: 3

Replied

@63568Yea I asked people and they said It could leak memory if i didint dispose so I just added that line lmao I know I suck at c# no bully plis

  • 0

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

Fadh

Fadh#4023

Posts: 98

Threads: 5

Joined: Mar, 2021

Reputation: 9

Replied

@63568lmaoooooooooooo

  • 0

kyxo in development

Beastsploits

Beast aka Kappaladi

Posts: 121

Threads: 29

Joined: Dec, 2019

Reputation: 3

Replied

@Fadh :/

 

 

 

 

 

 

 

Content length must be 10-5000 chars

 

  • 0

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@Beastsploits It's supposed to be a good thing I'm not being sarcastic

  • 0

Posts: 870

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

this is so bad holy crap no offence this is as$ don't even use this.

using (var Client = new WebClient())
        List = Client.DownloadString("lmao.dev/69?=bruh-whitelist")
  • 0

ecstacy_lxnny

yea i'm lxnny

vip

Posts: 941

Threads: 84

Joined: May, 2021

Reputation: 98

Replied

Dont u think storing all HWIDs on a pastebin link can

1) Easily get the data leaked

2)Make the exploit unusable in countries like Turkey where Pastebin is banned

  • 0

im bipolar btw

Xen80

Xën#1337

vip

Posts: 147

Threads: 13

Joined: Nov, 2020

Reputation: 7

Replied

@ecstacy_lxnny i'm pretty sure he was using that as an example, people could host their own sites and change the pastebin to their website

  • 0

Discord:

Xën#1337

Beastsploits

Beast aka Kappaladi

Posts: 121

Threads: 29

Joined: Dec, 2019

Reputation: 3

Replied

@MaximusExploit Just an example bro chill out lol If you want to use this dont actually use it through pastebin lol also someone told me that when you are doing using webclient u still need to dispose idk do you?

  • 0

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

Posts: 870

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

@Beastsploits "using" automatically dispose it. you dum dum

  • 0

Beastsploits

Beast aka Kappaladi

Posts: 121

Threads: 29

Joined: Dec, 2019

Reputation: 3

Replied

@60526https://cdn.discordapp.com/attachments/852403506677547048/859968121834438656/unknown.png :/ 


No worries tho i found this : https://www.codeproject.com/Questions/554482/C-23plusWhyplususeplustheplus-27using-27plusstatem

  • 0

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

Posts: 870

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

@Beastsploits TERIHAX is retarded bro don't listen to that guy who can't provide actual support.

  • 0

Added

@Beastsploits TERIHAX is retarded bro don't listen to that guy who can't provide actual support.

  • 0

Users viewing this thread:

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