Add a ropchain type to print the payload_srcaddr.

This commit is contained in:
orboditilt 2019-01-08 15:58:34 +01:00
parent c4affe4294
commit 7896f5733e

View File

@ -117,6 +117,10 @@ function generate_ropchain()
{ {
generateropchain_type2(); generateropchain_type2();
} }
else if ($ropchainselect==3)
{
generateropchain_type3();
}
if($generatebinrop==0)$ROPCHAIN.= "\""; if($generatebinrop==0)$ROPCHAIN.= "\"";
} }
@ -488,4 +492,10 @@ function generateropchain_type2(){
ropchain_appendu32($codegen_addr); ropchain_appendu32($codegen_addr);
} }
// Print payload_srcaddr.
function generateropchain_type3(){
global $payload_srcaddr;
ropgen_OSFatal($payload_srcaddr);
}
?> ?>