MCPcopy Create free account
hub / github.com/FrenchYeti/rasputin / replace_buffer

Method replace_buffer

Ghidra/xor_generic_decryptor.java:21–43  ·  view source on GitHub ↗
(Address startAddress)

Source from the content-addressed store, hash-verified

19 List<Byte> keyBUffer = new ArrayList<Byte>();
20
21 private void replace_buffer(Address startAddress)
22 {
23 Address i;
24 int j = 0;
25
26 i = startAddress;
27
28 for (j = 0; j < newBuffer.size(); j++)
29 {
30 println("[+] Replacing byte " + originalBuffer.get(j).toString() + " in address "+i.toString()+" with decrypted byte " + newBuffer.get(j).toString());
31 byte new_byte = newBuffer.get(j);
32
33 try {
34 setByte(i, new_byte);
35 } catch(MemoryAccessException mae)
36 {
37 println("[-] Error accessing address " + i.toString());
38 break;
39 }
40
41 i = i.next();
42 }
43 }
44
45 private String decrypt_xor(Address startAddress, Address endAddress, Address keyStart, Address keyEnd)
46 {

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected