description |
---|
Description of the 'check_address' function in HyperDbg Scripts |
check_address
check_address( Expression );
[Expression (Address)]
A MASM-like expression to evaluate which is the address of the target location to check.
Checks an address to see if the address is valid and safe to access from or not.
If the address is valid and safe it returns 1
. If the address is invalid or not safe to access then it returns 0
.
IsValid = check_address(@rcx + 10);
Adds 0x10 to the rcx register and checks whether it's a valid and safe address or not and safety and saves the result into IsValid
variable.
IsValid = check_address(dq(@rcx));
Checks address as an 8-byte hex, pointed by rcx register and safety and saves the result into IsValid
variable.
IsValid = check_address(0xffff83811f265040);
Checks 0xffff83811f265040
address for validity and safety and saves the result into IsValid
variable.
You can also use this function with an if statement.
if (check_address(@r11) == 1)
{
printf("address is valid.\n");
}
else
{
printf("address is invalid.\n");
}
None
None