hyperf/php:<php version>[-<distro kind>[-<distro version>]]
which:
<?php | |
declare(strict_types=1); | |
include_once __DIR__ . "/../vendor/autoload.php"; | |
use PHPbc\PHPbc; | |
use PHPbc\Util; | |
use PHPbc\Config; | |
use PHPbc\Log; |
<?php | |
$file = explode("\n", file_get_contents(__FILE__)); | |
\Swow\Debug\registerExtendedStatementHandler(function () use ($file) { | |
$bt = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1)[0]; | |
if ($bt['file'] === __FILE__) { | |
echo $bt['line'] . ':' . $file[$bt['line'] - 1] . PHP_LF; | |
} | |
}); |
#include <wchar.h> | |
#include <windows.h> | |
#include <detours.h> | |
/* common */ | |
LONG (NTAPI* LdrRegisterDllNotification)(ULONG Flags, PVOID cb, PVOID Context, PVOID *Cookie); | |
LONG (NTAPI* ZwQueryInformationProcess)(HANDLE ProcessHandle, int ProcessInformationClass, PVOID ProcessInformation, ULONG ProcessInformationLength, PULONG ReturnLength); | |
void getkernelfuncs(void){ | |
static int fucked = 0; | |
if(fucked){ |
AbyssalCraft-1.12.2-1.10.2.jar:AbyssalCraft* | |
astralsorcery-1.12.2-1.10.26.jar:astralsorcery* | |
BuildingGadgets-2.8.4.jar:BuildingGadgets* | |
gregtech-1.12.2-1.10.0.546.jar:gregtech* | |
industrialcraft-2-2.8.220-ex112.jar:industrialcraft* | |
Jade-0.1.0.jar:Jade* | |
jei_1.12.2-4.16.1.301.jar:jei_1.12.2* | |
just-enough-harvestcraft-1.12.2-1.7.2.jar:just-enough-harvestcraft-* | |
levelup2-1.5.6.jar:levelup2* | |
LittleMaidAppendPack-1.0.3.jar:LittleMaidAppendPack* |
diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h | |
index 96efd937f..bd0027b7e 100644 | |
--- a/include/mbedtls/cipher.h | |
+++ b/include/mbedtls/cipher.h | |
@@ -92,6 +92,7 @@ typedef enum { | |
MBEDTLS_CIPHER_ID_ARC4, /**< The RC4 cipher. */ | |
MBEDTLS_CIPHER_ID_ARIA, /**< The Aria cipher. */ | |
MBEDTLS_CIPHER_ID_CHACHA20, /**< The ChaCha20 cipher. */ | |
+ MBEDTLS_CIPHER_ID_SMS4, | |
} mbedtls_cipher_id_t; |
#!/home/dixyes/awsl/pl/luajit | |
--[[ | |
gist: https://gist.github.com/dixyes/cd945d8a195889de32cb524254d90d33 | |
First to say : ffi niubi! | |
This file is ncursesw command line ui written in lua, using luajit and some C things. | |
Note: pits here: | |
1. variables created by ffi.new("sometype") may be gced at anytime (maybe use ffi.typeof() to create type can resolve this.); | |
workaround: use ffi.C.malloc instead | |
2. struct index may be not reliable: for example a structure struct sStruct{u32 lFirst; u64 llSecond;}; when use instSStruct[0].llSecond, it will use area from llSecond's half to out of bound 4 bytes as llSecond. |
使用类似
void replaceOnReceive(int (*cb) (/*arguments of php_swoole_OnReceive...*/)){
void * pSwooleG = dlsym(/*arguments to get SwooleG...*/);
void * pServ = pSwooleG+OFFSET_SERV;
void * pOnReceive2Replace = (*pServ)+OFFSET_ONRECV;
assert(*pOnReceive2Replace == php_swoole_OnReceive);
*pOnReceive2Replace = cb;
}
#!/usr/bin/env python3 | |
# -*- coding:utf-8 -*- | |
# test python file for zmifi MF855 | |
# using default password zimifi | |
# WTFPL | |
import re, hashlib, random, json, datetime | |
import requests | |
from collections import defaultdict |