I wrote this code with the help of chat gpt but after searching and finding this code as utf16, I cannot change the number when I change it to a different number in this format ;192762458137 can you help me?
function utf16le_search()
gg.clearResults()-- Clear previous search results-- Set memory ranges to include all specified ranges (Java Heap, C++ Heap, etc.)
gg.setRanges(gg.REGION_ANONYMOUS | gg.REGION_JAVA_HEAP | gg.REGION_C_HEAP | gg.REGION_C_ALLOC | gg.REGION_C_DATA | gg.REGION_C_BSS)-- Search for the UTF-16LE value
gg.searchNumber(";192762458137", gg.TYPE_UNICODE)local results = gg.getResults(5000)-- Retrieve up to 5000 resultsif#results >0then
gg.toast("192762458137 value was found and the results were recorded")
gg.addListItems(results)-- Add the results to the listelse
gg.toast("No value found")endend
utf16le_search()
This code below is a piece of code that chat gpt wrote, I used to find and change the value I wrote, but it does not work properly.
function utf16le_search()
gg.clearResults()-- Clear previous search results-- Set memory ranges to include all specified ranges (Java Heap, C++ Heap, etc.)
gg.setRanges(gg.REGION_ANONYMOUS | gg.REGION_JAVA_HEAP | gg.REGION_C_HEAP | gg.REGION_C_ALLOC | gg.REGION_C_DATA | gg.REGION_C_BSS)-- Search for the UTF-16LE value
gg.searchNumber(";192762458137", gg.TYPE_UNICODE)local results = gg.getResults(5000)-- Retrieve up to 5000 resultsif#results >0then
gg.toast("192762458137 value was found and the results were recorded")
gg.addListItems(results)-- Add the results to the list-- Define the new value (for example, a new UTF-16LE number or text)local new_value =";987654321098"-- New UTF-16LE value (example)-- Write the new value to the locations where the old value was foundfor i, result in ipairs(results)do
result.value = new_value -- Change the old value to the new valueend-- Apply the changes
gg.setValues(results)-- Apply the updates to the results
gg.toast("Values were successfully changed")else
gg.toast("Value not found")endend
utf16le_search()
Question
Pala9999
I wrote this code with the help of chat gpt but after searching and finding this code as utf16, I cannot change the number when I change it to a different number in this format ;192762458137 can you help me?
This code below is a piece of code that chat gpt wrote, I used to find and change the value I wrote, but it does not work properly.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now