Jump to content
Sign in to follow this  
Daisy123

Search and edit a big hex number.

Recommended Posts

Hello. I am learning to write lua script for GG. I have a question. If you know please help me.
I want to search a big hex number for example: 02390D000000026FC90801066FAB0701A66B2A22000000402A  and then edit it to 00000000000000000000000000000000000000220000C8422A in memory.
To search I use this :

gg.clearResults()
gg.clearList()

gg.searchNumber('h02390D000000026FC90801066FAB0701A66B2A22000000402A', gg.TYPE_BYTE)

But I dont know how to edit results to 00000000000000000000000000000000000000220000C8422A.
Please help me. Thank you.

 

Share this post


Link to post
Share on other sites

It is not a number. It is text in hex view. So you need search text, not a number.

See examples for searchNumber in API help.

[added 1 minute later]
-- search for HEX '5C E3 0B 4B 90 9B 11 7B'
gg.searchNumber('h 5C E3 0B 4B 90 9B 11 7B')

For edit use editAll

-- edit HEX
gg.searchNumber('h 5C E3 0B')
gg.getResults(30)
gg.editAll('h 4B 90 9B', gg.TYPE_BYTE)

 

Share this post


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

It is not a number. It is text in hex view. So you need search text, not a number.

See examples for searchNumber in API help.

[added 1 minute later]

-- search for HEX '5C E3 0B 4B 90 9B 11 7B'
gg.searchNumber('h 5C E3 0B 4B 90 9B 11 7B')

For edit use editAll


-- edit HEX
gg.searchNumber('h 5C E3 0B')
gg.getResults(30)
gg.editAll('h 4B 90 9B', gg.TYPE_BYTE)

 

Oh. I didn't read the editAll in API help carefully. Sorry for that and thank for your help.

Btw, What happend if I ignore space character when put hex value like 'h5CE30B' instead of 'h 5C E3 0B'

Edited by Daisy123

Share this post


Link to post
Share on other sites

Spaces between bytes not necessary. Both is same as above.

-- edit HEX
gg.searchNumber('h 5CE30B')
gg.getResults(30)
gg.editAll('h 4B909B', gg.TYPE_BYTE)

-- edit HEX
gg.searchNumber('h5CE30B')
gg.getResults(30)
gg.editAll('h4B909B', gg.TYPE_BYTE)

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Similar Content

    • By ATP-RAY2OP
      View File UNLOCK ALL SKINS FREE IN MOBILE LEGENDS NEW VIP SCRIPT BY ATP-RAY2OP
      HELLO GUYZ, THIS IS NEW VIP MLBB SCRIPT, WITH THIS SCRIPT UNLOCK ANY SKIN, OF ANY HERO, WORK IN RANK, CLASSIC, CUSTOM
      Keep checking for update, i update script almost once a week😊
      VIDEO TUTORIAL ⬇️
       
       
       
        
      SUBSCRIBE TO CHANNEL ATP-RAY2OP FOR LATEST SCRIPT⬇️
      https://www.youtube.com/channel/UC0vglNiRwQLRmLScYwylqgg
       
       
      Submitter ATP-RAY2OP Submitted 03/27/2020 Category LUA scripts  
    • By ATP-RAY2OP
      HELLO GUYZ, THIS IS NEW VIP MLBB SCRIPT, WITH THIS SCRIPT UNLOCK ANY SKIN, OF ANY HERO, WORK IN RANK, CLASSIC, CUSTOM
      Keep checking for update, i update script almost once a week😊
      VIDEO TUTORIAL ⬇️
       
       
       
        
      SUBSCRIBE TO CHANNEL ATP-RAY2OP FOR LATEST SCRIPT⬇️
      https://www.youtube.com/channel/UC0vglNiRwQLRmLScYwylqgg
       
       
    • By MrKendom
      View File [🦋] Eɴᴄʀʏᴘᴛ Tᴏᴏʟ • PᴇᴅɪᴀG [ɪɪɪ]
      Hello everyone today i will publish this new encrypt tool by me of course well it's specific compiler which cannot be decrypted by anyone only with editing opcode and also making chars decoded and decoding base64 which can take a long time to decrypt it but don't worry we will make updates weekly to ensure your quality and services
      ⚙️ Informations :
      ✓ Encrypted By (Nika)[TopGEO] @TopGEOYT @TopGEO
      ✓ Need connection internet to get activity and login infos (20kb/s{ ^ or Up})
      ✓ Fixing encoding others string (Algorithm detection of using [[,]] or [=[,]=] )
      ✓ Encryption Premium need In-Script Purchases
      ™ Website ™ : 
      https://mrkendomg.000webhostapp.com/
      = Click on the card to see information about my Encryption if you are satisfied and you wanna buy contact me for keys
      ™ Telegram ™ : @MrKendom
      😉 Enjoy Using Product
       
      Submitter MrKendom Submitted 03/27/2020 Category Tools  
    • By MrKendom
      Hello everyone today i will publish this new encrypt tool by me of course well it's specific compiler which cannot be decrypted by anyone only with editing opcode and also making chars decoded and decoding base64 which can take a long time to decrypt it but don't worry we will make updates weekly to ensure your quality and services
      ⚙️ Informations :
      ✓ Encrypted By (Nika)[TopGEO] @TopGEOYT @TopGEO
      ✓ Need connection internet to get activity and login infos (20kb/s{ ^ or Up})
      ✓ Fixing encoding others string (Algorithm detection of using [[,]] or [=[,]=] )
      ✓ Encryption Premium need In-Script Purchases
      ™ Website ™ : 
      https://mrkendomg.000webhostapp.com/
      = Click on the card to see information about my Encryption if you are satisfied and you wanna buy contact me for keys
      ™ Telegram ™ : @MrKendom
      😉 Enjoy Using Product
       
    • By STDeveloper
      Oh Hi All...
      This is my First Topic and I'll share a load Blocker Code
      This code when you want to load will Download too many files with 1gb giles so + tar
      It can be baypassed But Not By Noobs
      You can put in your enc:
      for i = 1, 0 do
      local XT = {}
      if XT ~= XT then
      XT.nes = XT.bnes()
      end
      XT = nil
      end
      for i = 1, 5 do load("-- 🐲Welcome to the hell") end
      for i = 40, 96 do loadfile("/system/priv-app/Settings/Settings.apk") end
      So that was a code i wish it will be useful for you🙃
       
×
×
  • Create New...