Jump to content
  • 0

How make a command for edit any value in Xor


MasterC

Question

Hi guys... I need help 

 

I Need make a command for edit any value in Xor

 

Example 

gg.searchNumber('1;2;3',gg.TYPE_DWORD)

gg.editAll('24X8',gg.TYPE_DWORD)

 

Error edit with Script -- 24X8

How did help me... 

Thanks...

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Make sure to search for your exact xor key, because x8 is not accurate. you Can make a simple function that handle convertion

local xor = function (value, key)
  -- you can even set a xor key by default
  -- so you dont have to provide a key 
  -- everytime you call the function
  key = key and key or 'whatever'
  return bit32.bxor(value, key) .. ''
end

gg.searchNumber('1;2;3',gg.TYPE_DWORD)
gg.editAll(xor(24, 444444), gg.TYPE_DWORD)

 

My question is: is 1,2,3 just for the example, because they are not xor encrypted, I don't see why you would edit not encrypted value with encryption

Link to comment
Share on other sites

My function is this 

 

function tnt()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber("-2147483648D;-2147483648D;-1D::9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 1)
  gg.refineNumber("-1D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
  gg.refineNumber("-1D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
  gg.getResults(1)

    if gg.getResultsCount() <1 then
gg.alert('error, try again...')

else

r = gg.getResults(1)

local t = {} for i, v in ipairs(r) do
t[i]={address=v.address+488, flags=4, value=24X8, freeze=true, gg.addListItems(t)}
t[i]={address=v.address+488, flags=4, value=24X8, freeze=true, gg.addListItems(t)}
end

gg.toast('Success... Infinite Bombs TNT activated...')
gg.clearResults()
end
end
 

Link to comment
Share on other sites

1 hour ago, MasterC said:

t[i]={address=v.address+488, flags=4, value=24X8, freeze=true, gg.addListItems(t)}
t[i]={address=v.address+488, flags=4, value=24X8, freeze=true, gg.addListItems(t)}

This will return an error since X is not a ìn operator.

seing your code i am a litle bit confuse, why you want to edit these values as xor encrypted since they dont seem to be encrypted

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.