Jump to content
ATP-RAY2OP

ADD EXPIRY DATE IN SCRIPT (cannot be bypassed by changing device date)

Recommended Posts

Posted (edited)

There are 2 methods to put script expiry 

1st is os.clock() method to get current date of device, it is offline so can be easily bypassed by changing device date. 

2nd my method is online method using html date header, it cannot be bypassed 

 

Put the following code at top of your script (and change expiry date)

Date=15       -- Expiry date
Month=5       -- Expiry month 
Year=2020     -- Expiry year
expiremessage="Script has expired. New version available"  --Expiry message 
--This script will expire on 15/05/2020

--Do not change below code 
function check(t) 
if t<10 then t="0"..t end
return t
end
expiredate=Year.. check(Month).. check(Date)
date=gg.makeRequest("http://www.guimp.com").headers["Date" ][1]  --guimp.com is smallest webpage so takes less time for loading 
month={"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
for i=1,12 do
 if month[i]==string.sub(date,9, 11) then
      if i<10 then
       i="0"..i 
      end 
 currentdate=string.sub(date,13, 16)..i..string.sub(date,6, 7)  
 end
end
if tonumber(currentdate)>=tonumber(expiredate) then gg.alert(expiremessage) os.exit() end 
-- Your script code below

 

Edited by ATP-RAY2OP

Share this post


Link to post
Share on other sites

8 minutes ago, ATP-RAY2OP said:

There are 2 methods to put script expiry 

1st is os.clock() method to get current date of device, it is offline so can be easily bypassed by changing device date. 

2nd my method is online method using html date header, it cannot be bypassed 

 

Put the following code at top of your script (and change expiry date)


Date=15       -- Expiry date
Month=5       -- Expiry month 
Year=2020     -- Expiry year
expiremessage="Script has expired. New version available"  --Expiry message 
--This script will expire on 15/05/2020

--Do not change below code 
function check(t) 
if t<10 then t="0"..t end
return t
end
expiredate=Year.. check(Month).. check(Date)
date=gg.makeRequest("http://www.guimp.com").headers["Date" ][1]  --guimp.com is smallest webpage so takes less time for loading 
month={"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
for i=1,12 do
 if month[i]==string.sub(date,9, 11) then
      if i<10 then
       i="0"..i 
      end 
 currentdate=string.sub(date,13, 16)..i..string.sub(date,6, 7)  
 end
end
if tonumber(currentdate)>=tonumber(expiredate) then gg.alert(expiremessage) os.exit() end 
-- Your script code below

 

Very easy bypass syntax in script, All your code in script easy to crack.

Your hand can make anything what you want.

No System Is Safe.

Share this post


Link to post
Share on other sites
18 minutes ago, ATP-RAY2OP said:

--guimp.com is smallest webpage so takes less time for loading

Try use something like http://whatismyip.org

Answer - 327 bytes. One packet.

http://www.guimp.com - 1970 bytes. 4 packets at least.

Share this post


Link to post
Share on other sites
2 hours ago, HEROGAMEOfficial said:

Very easy bypass syntax in script, All your code in script easy to crack.

Your hand can make anything what you want.

No System Is Safe.

Well no script is safe, but it prevents the most usual way to bypass expiry that is to change date of device. 

For normal users binary script itself is tough job 🙂

Share this post


Link to post
Share on other sites
On 5/12/2020 at 6:41 AM, ATP-RAY2OP said:

There are 2 methods to put script expiry 

1st is os.clock() method to get current date of device, it is offline so can be easily bypassed by changing device date. 

2nd my method is online method using html date header, it cannot be bypassed 

 

Put the following code at top of your script (and change expiry date)


Date=15       -- Expiry date
Month=5       -- Expiry month 
Year=2020     -- Expiry year
expiremessage="Script has expired. New version available"  --Expiry message 
--This script will expire on 15/05/2020

--Do not change below code 
function check(t) 
if t<10 then t="0"..t end
return t
end
expiredate=Year.. check(Month).. check(Date)
date=gg.makeRequest("http://www.guimp.com").headers["Date" ][1]  --guimp.com is smallest webpage so takes less time for loading 
month={"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
for i=1,12 do
 if month[i]==string.sub(date,9, 11) then
      if i<10 then
       i="0"..i 
      end 
 currentdate=string.sub(date,13, 16)..i..string.sub(date,6, 7)  
 end
end
if tonumber(currentdate)>=tonumber(expiredate) then gg.alert(expiremessage) os.exit() end 
-- Your script code below

 

You can try my encryption its included online checking of date if script allowed acces internet.

🆕 Simple encrypt lua script. (#9fntzr0h)

 

Share this post


Link to post
Share on other sites
On 6/7/2020 at 5:14 PM, HEROGAMEOfficial said:

You can try my encryption its included online checking of date if script allowed acces internet.

🆕 Simple encrypt lua script. (#9fntzr0h)

 

I use your encryption only 🙂

Share this post


Link to post
Share on other sites
On 6/7/2020 at 11:44 AM, HEROGAMEOfficial said:

You can try my encryption its included online checking of date if script allowed acces internet.

🆕 Simple encrypt lua script. (#9fntzr0h)

 

You encryption doesn't work for me 😪

Share this post


Link to post
Share on other sites
Posted (edited)
12 hours ago, zynos said:

You encryption doesn't work for me 😪

SELLG? or ELGG_ not work?

Edited by HEROGAMEOfficial

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...