Jump to content
Sign in to follow this  
xShadow007

Help with a simple lua script

Recommended Posts

Hey could I ask for a little help ..

I wanted to create a simple script .. If u could spare some time, it'd help

Objective : popup box asking for value

Add xor=444,444 to value { value + 444,444}

Replace all results with 1 (with same xor value) = 444,445

Edited by xShadow007

Share this post


Link to post
Share on other sites


 

--Execute
function Exe(val,type)
  gg.clearResults()
  local t = gg.prompt({"Your value"},nil,{"number"}) -- Ask for value
  gg.searchNumber(t[1],type)
  gg.getResults(100)
  gg.editAll(val~444444,type)
end

--Example 
Exe(40,4) -- Edit value to 40 with xor key 444444. Type of address = Dword.

 

Edited by ItsSC
Removed unused function

Share this post


Link to post
Share on other sites
21 minutes ago, Enyby said:

Xor two values a and b in lua:


local c = a ~ b

 

Damn, didn't realize this operator works as xor....

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
Sign in to follow this  

×
×
  • Create New...