mirror of
https://github.com/wiiu-env/ropgadget_patternfinder.git
synced 2025-01-08 08:20:39 +01:00
Print the found values with '%08x' instead of '%x'.
This commit is contained in:
parent
acd9c02812
commit
58d3e359c4
@ -335,7 +335,7 @@ int locate_pattern()
|
|||||||
tmpval+= addval;
|
tmpval+= addval;
|
||||||
|
|
||||||
if(!plainout)printf("Found the pattern at(value added with 0x%x) ", addval);
|
if(!plainout)printf("Found the pattern at(value added with 0x%x) ", addval);
|
||||||
printf("%s0x%x", line_prefix, tmpval);
|
printf("%s0x%08x", line_prefix, tmpval);
|
||||||
if(!plainout)printf(".");
|
if(!plainout)printf(".");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -346,12 +346,12 @@ int locate_pattern()
|
|||||||
if(!plainout)
|
if(!plainout)
|
||||||
{
|
{
|
||||||
printf("Found the pattern at ");
|
printf("Found the pattern at ");
|
||||||
printf("%s0x%x", line_prefix, ((unsigned int)pos) + baseaddr);
|
printf("%s0x%08x", line_prefix, ((unsigned int)pos) + baseaddr);
|
||||||
printf(", u32 value at +0x%x, value added with 0x%x: 0x%x.", dataload_offset, addval, tmpval);
|
printf(", u32 value at +0x%x, value added with 0x%x: 0x%x.", dataload_offset, addval, tmpval);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("%s0x%x", line_prefix, tmpval);
|
printf("%s0x%08x", line_prefix, tmpval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user