There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
# Check out the issue for more detail : https://github.com/NationalSecurityAgency/ghidra/issues/2466 | |
# The script will calculate the value of gp register base on the code in entry(), then apply the value to all the functions | |
# This only work in the `RV64I` language though, since other language like `RV64GC` won't set the gp register in entry() | |
from java.math import BigInteger | |
def newAddress(offset): | |
""" | |
Helper function to get a Ghidra Address type | |
""" |