mirror of
https://github.com/wiiu-env/wiiuhaxx_common.git
synced 2024-12-18 12:11:50 +01:00
Remove $ROPCHAIN_JS_VAR, use the $generatebinrop variable to generate a binary one an convert it manually.
This commit is contained in:
parent
747c771862
commit
ca5121d198
@ -29,7 +29,6 @@ if($filesysver == 540)$filesysver = 532;
|
|||||||
|
|
||||||
require_once("wiiuhaxx_rop_sysver_$filesysver.php");
|
require_once("wiiuhaxx_rop_sysver_$filesysver.php");
|
||||||
|
|
||||||
if(!isset($ROPCHAIN_JS_VAR)) $ROPCHAIN_JS_VAR = false;
|
|
||||||
if(!isset($USE_FIXED_PAYLOAD_LEGNTH)) $USE_FIXED_PAYLOAD_LEGNTH = -1;
|
if(!isset($USE_FIXED_PAYLOAD_LEGNTH)) $USE_FIXED_PAYLOAD_LEGNTH = -1;
|
||||||
|
|
||||||
if(!isset($payload_size)) $payload_size = 0x20000; //Doesn't really matter if the actual payload data size in memory is smaller than this or not.
|
if(!isset($payload_size)) $payload_size = 0x20000; //Doesn't really matter if the actual payload data size in memory is smaller than this or not.
|
||||||
@ -95,15 +94,11 @@ function genu32_unicode_jswrap($value)
|
|||||||
}
|
}
|
||||||
function ropchain_appendu32($val)
|
function ropchain_appendu32($val)
|
||||||
{
|
{
|
||||||
global $ROPCHAIN, $generatebinrop, $ROPCHAIN_JS_VAR;
|
global $ROPCHAIN, $generatebinrop;
|
||||||
if($generatebinrop==0)
|
if($generatebinrop==0)
|
||||||
{
|
{
|
||||||
if($ROPCHAIN_JS_VAR){
|
|
||||||
$ROPCHAIN.= genu32_array($val);
|
|
||||||
}else{
|
|
||||||
$ROPCHAIN.= genu32_unicode($val);
|
$ROPCHAIN.= genu32_unicode($val);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$ROPCHAIN.= pack("N*", $val);
|
$ROPCHAIN.= pack("N*", $val);
|
||||||
@ -112,20 +107,18 @@ function ropchain_appendu32($val)
|
|||||||
|
|
||||||
function generate_ropchain()
|
function generate_ropchain()
|
||||||
{
|
{
|
||||||
global $ROPCHAIN, $generatebinrop, $ropchainselect, $ROPCHAIN_JS_VAR;
|
global $ROPCHAIN, $generatebinrop, $ropchainselect;
|
||||||
|
|
||||||
$ROPCHAIN = "";
|
$ROPCHAIN = "";
|
||||||
|
|
||||||
if($generatebinrop==0 && !$ROPCHAIN_JS_VAR)$ROPCHAIN .= "\"";
|
if($generatebinrop==0)$ROPCHAIN .= "\"";
|
||||||
if($generatebinrop==0 && $ROPCHAIN_JS_VAR)$ROPCHAIN .= "var realROPChain = [";
|
|
||||||
|
|
||||||
if($ropchainselect==1)
|
if($ropchainselect==1)
|
||||||
{
|
{
|
||||||
generateropchain_type1();
|
generateropchain_type1();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($generatebinrop==0 && !$ROPCHAIN_JS_VAR)$ROPCHAIN.= "\"";
|
if($generatebinrop==0)$ROPCHAIN.= "\"";
|
||||||
if($generatebinrop==0 && $ROPCHAIN_JS_VAR)$ROPCHAIN .= "];";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function wiiuhaxx_generatepayload()
|
function wiiuhaxx_generatepayload()
|
||||||
|
Loading…
Reference in New Issue
Block a user