- 打开
chrome://flags
,启用:
manifest.json
{
"manifest_version": 2,
"name": "Refine Inspector",
import json | |
from base64 import b64decode | |
from urllib.parse import unquote | |
import httpx | |
share_url = httpx.URL(input()) | |
params = b64decode(httpx.QueryParams(share_url.params)['linkToken']).decode() | |
params = unquote(params).split('&') |
#include <cstdio> | |
#include <cxxabi.h> | |
#include <dlfcn.h> | |
#include <unwind.h> | |
void backtrace() { | |
int count = 0; | |
_Unwind_Trace_Fn cb = [] (_Unwind_Context *context, void *args) -> _Unwind_Reason_Code { | |
int *count = static_cast<int *>(args); |
#include <cstdlib> | |
#include <iostream> | |
#include <sys/inotify.h> | |
#include <sys/mman.h> | |
#include <sys/mount.h> | |
#include <sys/stat.h> | |
#include <sys/unistd.h> | |
#define TMP_FILE "/tmp/fake.brightness" | |
#define HIJACK_FILE "/sys/class/backlight/intel_backlight/brightness" |
TARGET="/usr/bin/typora" | |
if [ $(id -u) = 0 ]; then | |
rm /usr/bin/typora | |
cat <<-EOF > "$TARGET" | |
#!/usr/bin/sh | |
exec bwrap --unshare-all --share-net \ | |
--ro-bind / / \ | |
--dev-bind /dev /dev \ |
// fd-perm $(id -u nobody) | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <fcntl.h> | |
#include <sys/unistd.h> | |
#include <sys/wait.h> | |
int main(int, char *argv[]) { |
// ==UserScript== | |
// @name New Bing | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Mufanc | |
// @match https://www.bing.com/search?*showconv=1* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com | |
// @grant GM_addStyle | |
// @run-at document-start |
import inspect | |
from os import path | |
for info in inspect.stack(): | |
if path.split(info.filename)[1] != 'main.py': | |
continue | |
print(''.join(info.frame.f_globals['hash_name'])) | |
exit() |
// ==UserScript== | |
// @name vConsole | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Inject vConsole | |
// @author Mufanc | |
// @grant unsafeWindow | |
// @grant GM_registerMenuCommand | |
// @run-at document-start | |
// @match *://*/* |
import inspect | |
import re | |
for info in inspect.stack(): | |
if re.fullmatch('<.*>', info.filename): | |
continue | |
frame = info.frame | |
print('-' * 50) | |
print(f'# {info.filename}') | |
print(inspect.getsource(inspect.getmodule(frame))) |