Skip to content

Instantly share code, notes, and snippets.

Avatar

esterTion

View GitHub Profile
View chuni-virtual-base-server.php
<?php
require_once __DIR__ . '/Workerman-master/Autoloader.php';
use Workerman\Worker;
use Workerman\Connection\AsyncTcpConnection;
use Workerman\Protocols\Websocket;
use Workerman\Lib\Timer;
$udp1 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_set_option($udp1, SOL_SOCKET, SO_BROADCAST, 1);
@esterTion
esterTion / coneshell_extract_metadata.cpp
Last active Apr 2, 2020
Extract metadata from ConeShell (Cygames) processed binary
View coneshell_extract_metadata.cpp
#include <cstdio>
#include <iostream>
#include <cstdint>
using namespace std;
void writeReverse(FILE* f, uint32_t num)
{
char* buf[4];
*(uint32_t*)buf = 0xFFFFFFFF - num;
fwrite(buf, 4, 1, f);
View aokana.php
<?php
// https://store.steampowered.com/app/1044620/
require_once 'UnityBundle.php';
chdir(__DIR__);
$f = fopen('patch.dat', 'r');
$head = fread($f, 1024);
$heads = new MemoryStream($head);
@esterTion
esterTion / pac_add.c
Last active Oct 14, 2019
Set a pac url to com.apple.CommCenter (ip1), i.e. cellular data
View pac_add.c
//
// pac_add.m
// pac_add
//
// https://gist.github.com/esterTion/8bdeb78b35c172a4485f6d9e29476336/edit
//
// Created by esterTion on 2019/4/19.
// xcrun -sdk iphoneos clang -isysroot $THEOS/sdks/iPhoneOS11.2.sdk -arch arm64 -I$THEOS/include -framework Foundation -framework SystemConfiguration -L$THEOS/lib -lactivator main.m -o pac_add
//
View PRCN-restore-dll.php
<?php
/*
* Semi-auto restore Princess Connect ReDive (PC-DMM) C# dll
* Step I: Run game and use Live RAM Caputurer ( http://www.forensicswiki.org/wiki/Belkasoft_Live_RAM_Capturer )
* Step II: Use volatility to <pslist> and then <ramdump> ( https://github.com/volatilityfoundation/volatility )
* Step III: Use this script
*/
if (!file_exists('Assembly-CSharp.dll')) {
@esterTion
esterTion / acfun记录.md
Last active Jul 25, 2019
有关视频接口
View acfun记录.md

AHP正在用的flash接口

'http://player.acfun.cn/flash_data?vid=' + pageInfo.sourceId + '&ct=85&ev=3&sign=' + pageInfo.sign + '&time=' + Date.now()
ct=85 ev=3
验referrer
rc4密钥 8bdc7e1a

iamscottxu/acfun-Html5player里面的接口

(怀疑这是猴山人的beta,你看看那个 http://aplay-vod.cn-beijing.aliyuncs.com/acfun/h5.js
http://player.acfun.cn/js_data?vid=5bcac14b0cf2c691dfceccc9&ct=86&ev=4&sign=2_1540645549_5e1c0ab48b9dbd1861463324023a9db8
ct=86 ev=4

@esterTion
esterTion / arc-score.php
Last active Jul 21, 2019
Arcaea Api Proxy w/ data recording
View arc-score.php
<?php
// https://gist.github.com/esterTion/fe184d4e51c2421310bdeba26046f139
$uri = $_SERVER['REQUEST_URI'];
$req = file_get_contents("php://input");
if (empty($_SERVER['HTTP_AUTHORIZATION']) || trim($_SERVER['HTTP_AUTHORIZATION']) === 'Bearer') {
if (substr($uri, 0, 21) === '/5/compose/aggregate?' && $_SERVER['HTTP_APPVERSION'] === '2.0.2') {
header('Content-Type: application/json');
View Bilibili_VideoClip_VIP_emoji_init.json
{
"code": 0,
"data": [
{
"pid": 91,
"pname": "2233",
"state": 0,
"purl": "https://i0.hdslb.com/bfs/vip/1096316282b3bacfc184ca7269ff7397886967bb.png",
"emojis": [
{
@esterTion
esterTion / arcaea-frag-award.c
Created Apr 30, 2019
pseudo code of fragment award algorithm in Arcaea
View arcaea-frag-award.c
void award_fragment() {
int play_award = 0;
int clear_award = 0;
int performance_award = 0;
int first_clear_award = 0;
int partner_award = 0;
int difficulty = Chart->difficulty;
int clear_type = GameResult::getCalculatedClearType(...);
You can’t perform that action at this time.