Categories > Coding > Lua >

[RELEASE] HWID System in login

Entity

Usability >> modern

vip

Posts: 416

Threads: 40

Joined: May, 2022

Reputation: 51

Posted

Hello everyone!

 

I was trying something because I wanted to learn lua and I achieved hwid and I wanted to share

it with everyone yes it could be bad code I just new started, don't be kidding me.

 

local HWID = game:GetService("RbxAnalyticsService"):GetClientId()

local WhitelistedHardwareID = {""}

 

function CheckHardwareID()

for _,whitelisted in pairs(WhitelistedHardwareID) do

 if HWID == whitelisted then

     return true

 elseif HWID ~= whitelisted then

     return false

       end

    end

end

setclipboard(HWID) --if you want to get your HardwareID

 

if CheckHardwareID() == true then

 print("You are Whitelisted!")

end

if CheckHardwareID(HWID) == false then

 warn("You are not Whitelisted!")

end

 

 

 

  • 1

Posts: 2014

Threads: 198

Joined: Apr, 2021

Reputation: 16

Replied

Seems cool, but afaik the "HWIDS" reset at some point, don't know when and where, but idk if that's worth it 

  • 0

Random quote here...

Entity

Usability >> modern

vip

Posts: 416

Threads: 40

Joined: May, 2022

Reputation: 51

Replied

@67078oh i didn't know this information

  • 0

Huddy

Domain Expansion

vip

Posts: 318

Threads: 18

Joined: Apr, 2022

Reputation: 22

Replied

cool might use in a private script

  • 1

Discord Contact : showerhuddy

Entity

Usability >> modern

vip

Posts: 416

Threads: 40

Joined: May, 2022

Reputation: 51

Replied

@78036Thanks for your comment yes I thought so too

  • 0

Murz

PixelPenguin

Posts: 240

Threads: 20

Joined: Jul, 2021

Reputation: 29

Replied

Looks like a amazing template for people looking to get into auth! Good job, I love the way the code looks too, though as Aja has stated earlier it may expire (don't know if that is true or not), I would recommend to use UserId's instead of the HWID (that is just my opinion though since it won't be able to be changed!)

 

:)

  • 0

 

Ty for rep: Swiney, Byoke, Lion, Locust, Waves, Weeb, Nickk, darkn, Atari, CubeFaces, Lux14, Rice, Delta, Syraxes, Aeon, Jordan, Pluto, and Hiroku!

P.S, I like cats better too!

Entity

Usability >> modern

vip

Posts: 416

Threads: 40

Joined: May, 2022

Reputation: 51

Replied

@69128I'm so glad to hear that it has inspired many people as far as I've heard!

  • 0

Added

@69128I started with hwid and user name I don't use userID because userID is bypassed very easily

  • 0

Murz

PixelPenguin

Posts: 240

Threads: 20

Joined: Jul, 2021

Reputation: 29

Replied

@Entity Hmmm, I guess it could be, but you could probably manage to trick the actual user by getting their ID from the name they give you. I just use UserId since it is simple and cant be changed (from the actual account) like a username.

  • 0

 

Ty for rep: Swiney, Byoke, Lion, Locust, Waves, Weeb, Nickk, darkn, Atari, CubeFaces, Lux14, Rice, Delta, Syraxes, Aeon, Jordan, Pluto, and Hiroku!

P.S, I like cats better too!

jex

yes

Posts: 1985

Threads: 128

Joined: Nov, 2019

Reputation: 13

Replied

@Murz

 

if u mean something like

local plr = game.Players.LocalPlayer

if plr.UserId == 696969 then
print("whitelisted")
end

-- or --

if game.Players:GetUserIdFromNameAsync(plr.Name) == 696969 then
print("wihtelisted")
end

that can probably be bypassed by this

local plr = game.Players.LocalPlayer

plr.UserId = 696969

-- or --

plr.Name = "the person with 696969 id"
  • 0

yes

Murz

PixelPenguin

Posts: 240

Threads: 20

Joined: Jul, 2021

Reputation: 29

Replied

@jex Not that. I meant to actually have it over a server and stuff like that, I released a project with it.

  • 0

 

Ty for rep: Swiney, Byoke, Lion, Locust, Waves, Weeb, Nickk, darkn, Atari, CubeFaces, Lux14, Rice, Delta, Syraxes, Aeon, Jordan, Pluto, and Hiroku!

P.S, I like cats better too!

jex

yes

Posts: 1985

Threads: 128

Joined: Nov, 2019

Reputation: 13

Replied

@Murz oh alr

  • 0

yes

Alternate

stop take my rice

vip

Posts: 712

Threads: 113

Joined: Mar, 2022

Reputation: 40

Replied

@87922

In a "real world" key system typically (unless you're evil) you do authentication on the server side so it can't be spoofed or bypassed easily. Doing authentication on the client side is bad because it makes it easier for the client to spoof or bypass the system easily, think of it as how you can exploit the ROBLOX client, but not the server. If you put the authentication on the client, then the client can "exploit" it or, in the case of a key system, bypass it. But, if you put the authentication on the server instead of client, it can't be "exploited" or bypassed the same way because the client doesn't have access to the server.

  • 0

we are dead

masked

magnet

Posts: 31

Threads: 3

Joined: May, 2021

Reputation: 3

Replied

please dont just paste this whitelist guys:

 

local PairsHook do
    PairsHook = hookfunction(getgenv().pairs, newcclosure(function(...)
        if syn.get_thread_identity() ~= 2 then -- // for some reason synapse uses roblox's pairs function i think so we make sure we aren't hooking a roblox function
            return PairsHook({game:GetService("RbxAnalyticsService"):GetClientId()})
        end
        
        return PairsHook(...)
    end))
end

local HWID = game:GetService("RbxAnalyticsService"):GetClientId()
local WhitelistedHardwareID = {""}

function CheckHardwareID()
    for _,whitelisted in pairs(WhitelistedHardwareID) do
        if HWID == whitelisted then
            return true
        end
    end
    
    return false
end

setclipboard(HWID)

if CheckHardwareID() == true then
    print("You are Whitelisted!")
else
    warn("You are not Whitelisted!")
end
  • 0

Entity

Usability >> modern

vip

Posts: 416

Threads: 40

Joined: May, 2022

Reputation: 51

Replied

@67993I can't getclient without using RbxAnalyticsService and I don't know any of the other codes my method is different

  • 0

Next >>>

Users viewing this thread:

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