Skip to content

Instantly share code, notes, and snippets.

@esterTion
esterTion / 0_BiliComicWebReader
Last active April 17, 2024 16:13
BiliComicWebReader
shit title placeholder
<?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 / arcaea-hp-algo.c
Created January 18, 2019 16:55
pseudo code of hp algorithm in Arcaea
ScoreState::init() {
if (skillType == 2) {
this->hp = 100.0;
} else if (this->characterAbility != NULL) {
this->hp = this->characterAbility->hpStart;
} else {
this->hp = 0.0;
}
if (noteCount < 1) {
<?php
// https://gist.github.com/esterTion/c673a5e2547cd54c202f129babaf601d
/*
This code is now maintained by yojohanshinwataikei solely
esterTion has retired from this project
*/
chdir(__DIR__);
require_once __DIR__ . '/../webpthumb/Workerman-master/Autoloader.php';
@esterTion
esterTion / arc-score.php
Last active July 21, 2019 09:01
Arcaea Api Proxy w/ data recording
<?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');
@esterTion
esterTion / 0_Arcaea_Api_Switcher
Last active May 31, 2020 22:08
Redirect game api call host
shit title place holder
@esterTion
esterTion / acfun记录.md
Last active July 25, 2019 06:30
有关视频接口

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

(怀疑这是猴山人的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 / 0_coreseek_sphinx_index-reindex-collection
Created October 25, 2018 14:49
colection of coreseek/sphinx configuration & reindex script on biliplus.com
shit title placeholder
@esterTion
esterTion / coneshell_extract_metadata.cpp
Last active May 25, 2021 12:59
Extract metadata from ConeShell (Cygames) processed binary
#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);