This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/compile.sh b/compile.sh | |
index e660c98..baf7a7b 100755 | |
--- a/compile.sh | |
+++ b/compile.sh | |
@@ -14,6 +14,7 @@ LIBZIP_VERSION="1.7.3" | |
SQLITE3_YEAR="2021" | |
SQLITE3_VERSION="3340100" #3.34.1 | |
LIBDEFLATE_VERSION="448e3f3b042219bccb0080e393ba3eb68c2091d5" #1.7 | |
+LIBFFI_VERSION="3.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
//black magic | |
struct Hacked { | |
void **vt; | |
}; | |
template<typename T> | |
const char *getRuntimeTypename(T *type) { | |
auto type_info = (void **) ((Hacked *) type)->vt[-1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
macro_rules! has_impl { | |
($ty:ty: $tr:path) => { | |
{ | |
struct Test<T: ?Sized>(core::marker::PhantomData<T>); | |
#[allow(dead_code)] | |
impl<T: ?Sized + $tr> Test<T> { | |
const HAS_IMPL: bool = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Connection::*; | |
type Resistor = f64; | |
enum Connection { | |
Wrapper(Vec<Self>), | |
Parallel(Vec<Self>), | |
Serial(Vec<Resistor>), | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use pocketmine\network\mcpe\protocol\PacketPool; | |
use pocketmine\utils\BinaryDataException; | |
require_once "vendor/autoload.php"; | |
$packetPool = PacketPool::getInstance(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/appveyor.yml b/appveyor.yml | |
index d59cfd2..7c77a1f 100644 | |
--- a/appveyor.yml | |
+++ b/appveyor.yml | |
@@ -1,13 +1,14 @@ | |
-image: Visual Studio 2017 | |
+image: Ubuntu1804 | |
version: php-7.2-appveyor{build} | |
-clone_folder: c:\pmmp\windows-php | |
build_script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//frida-trace -U -i "_ZN14TransferPacket4readER12BinaryStream" com.mojang.minecraftpe | |
//Tested on MCPE 1.1.4 | |
{ | |
onEnter: function(log, args, state) { | |
this.ptr = args[0]; | |
}, | |
onLeave: function(log, retval, state) { | |
realAddr = Memory.readPointer(this.ptr.add(12)); | |
rlen = Memory.readU32(realAddr.sub(12)); | |
uint8arr = new Uint8Array(Memory.readByteArray(realAddr, rlen)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
ini_set("memory_limit", "1M"); | |
global $i; | |
register_shutdown_function(function() : void{ | |
if(error_get_last() !== null){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use Mdanter\Ecc\Crypto\{Key\PrivateKeyInterface, Signature\Signature}; | |
use Mdanter\Ecc\Serializer\PrivateKey\{DerPrivateKeySerializer, PemPrivateKeySerializer}; | |
use Mdanter\Ecc\Serializer\PublicKey\{DerPublicKeySerializer, PemPublicKeySerializer}; | |
use Mdanter\Ecc\Serializer\Signature\DerSignatureSerializer; | |
class JWT{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hybris/src/hooks.c b/hybris/src/hooks.c | |
index cc65f8a..5b94236 100644 | |
--- a/hybris/src/hooks.c | |
+++ b/hybris/src/hooks.c | |
@@ -38,6 +38,7 @@ | |
#include <errno.h> | |
#include <dirent.h> | |
#include <sys/types.h> | |
+#include <sys/uio.h> | |
#include <stdarg.h> |
NewerOlder