ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Lua Function Anti-Override Method


  • Please log in to reply
Lua Function Anti-Override Method

#1

0x59
0x59
    Offline
    2
    Rep
    12
    Likes

    greco-roman type beat

Posts: 34
Threads: 5
Joined: Jun 18, 2018
Credits: 0

Five years registered
#1

Ok so, after just coding random stuff, I have come up with a method to determine if a function is original or not.

Example:

function add(x, y)
   return x + y;
end

local addMacro = add;
add = function(...)
   if (Checksum(add, addMacros)) then
      addMacro(...);
   else
      -- don't run as it has been overriden.
   end
end

Function Code:

Hidden Content
You'll be able to see the hidden content once you reply to this topic or upgrade your account.


Edited by 0x59, 27 July 2018 - 08:21 AM.

  • 0

CAwv3rI.png


#2

saiaapiz
saiaapiz
    Offline
    0
    Rep
    0
    Likes

    Lurker

Posts: 2
Threads: 0
Joined: Dec 01, 2018
Credits: 0
Five years registered
#2

Thank you ! :D


  • 0

#3

metry
metry
    Offline
    0
    Rep
    0
    Likes

    Advanced Member

  • PipPipPipPip
Posts: 77
Threads: 3
Joined: Nov 21, 2017
Credits: 0
Six years registered
#3

appreciated


  • 0

#4

koset46
koset46
    Offline
    0
    Rep
    126
    Likes

    New Member

  • PipPip
Posts: 20
Threads: 2
Joined: Oct 31, 2019
Credits: 0
Four years registered
#4

oh,sound good


  • 0

#5

OjciecATM
OjciecATM
    Offline
    0
    Rep
    3
    Likes

    Network Vulnerability Tester

  • PipPipPipPipPipPip
Posts: 390
Threads: 5
Joined: Oct 29, 2019
Credits: 0

Four years registered
#5

let me see the total code


  • 0

#6

boudiya
boudiya
    Offline
    0
    Rep
    4
    Likes

    Advanced Member

  • PipPipPipPip
Posts: 145
Threads: 7
Joined: Nov 27, 2019
Credits: 0
Four years registered
#6

thanks mate you're life saver ?


  • 0

#7

ArrowFTW
ArrowFTW
    Offline
    0
    Rep
    0
    Likes

    Lurker

Posts: 7
Threads: 0
Joined: Jan 05, 2020
Credits: 0

Four years registered
#7
Ye bhi dekha

  • 0

#8

Joker1233211
Joker1233211
    Offline
    0
    Rep
    0
    Likes

    Lurker

Posts: 4
Threads: 0
Joined: Feb 24, 2020
Credits: 0
Four years registered
#8

thx

 


  • 0


 Users browsing this thread: