ZTzTopiaa Posted April 16, 2019 Share Posted April 16, 2019 HWID LOCK? Link to comment Share on other sites More sharing options...
bukandewa Posted April 16, 2019 Share Posted April 16, 2019 macPath = io.open('/sys/class/net/wlan0/address', 'r') macRead = macPath:read('*a') --this is my mac address, just for example macLists = {'a0%:32%:99%:e8%:e5%:64'}, {'a0%:32%:99%:e8%:e5%:75'} for _, v in ipairs(macLists) do macCheck = macRead:match(v) end if macCheck then gg.alert('Your mac address is registered\n'..macRead) else local macCopy = gg.alert('Sorry, your mac address is not register','Copy Mac') if not macCopy then os.exit() end if macCopy == 1 then gg.copyText(macRead) end end If you mean is, to make script just run in 1 device only, you can try code above. Basically, you can use some 'unique number' in every devices, not only mac address. There is a lot of unique number, id or serial. If you can find where is HWID information wrote in the file, just change io.open path, read, then use string.match to check. Link to comment Share on other sites More sharing options...
ZTzTopiaa Posted April 17, 2019 Author Share Posted April 17, 2019 18 hours ago, bukandewa said: macPath = io.open('/sys/class/net/wlan0/address', 'r') macRead = macPath:read('*a') --this is my mac address, just for example macLists = {'a0%:32%:99%:e8%:e5%:64'}, {'a0%:32%:99%:e8%:e5%:75'} for _, v in ipairs(macLists) do macCheck = macRead:match(v) end if macCheck then gg.alert('Your mac address is registered\n'..macRead) else local macCopy = gg.alert('Sorry, your mac address is not register','Copy Mac') if not macCopy then os.exit() end if macCopy == 1 then gg.copyText(macRead) end end If you mean is, to make script just run in 1 device only, you can try code above. Basically, you can use some 'unique number' in every devices, not only mac address. There is a lot of unique number, id or serial. If you can find where is HWID information wrote in the file, just change io.open path, read, then use string.match to check. Thx you verymuch Link to comment Share on other sites More sharing options...
andi06 Posted June 24, 2019 Share Posted June 24, 2019 On 4/17/2019 at 1:37 AM, bukandewa said: macPath = io.open('/sys/class/net/wlan0/address', 'r') macRead = macPath:read('*a') --this is my mac address, just for example macLists = {'a0%:32%:99%:e8%:e5%:64'}, {'a0%:32%:99%:e8%:e5%:75'} for _, v in ipairs(macLists) do macCheck = macRead:match(v) end if macCheck then gg.alert('Your mac address is registered\n'..macRead) else local macCopy = gg.alert('Sorry, your mac address is not register','Copy Mac') if not macCopy then os.exit() end if macCopy == 1 then gg.copyText(macRead) end end error bro Link to comment Share on other sites More sharing options...
YeetMeister Posted April 16, 2019 Share Posted April 16, 2019 7 hours ago, ZTzTopiaa said: HWID LOCK? What do you mean by that, Explain more Link to comment Share on other sites More sharing options...
Question
ZTzTopiaa
HWID LOCK?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.