npm install
$ frida QuakeSpasm --enable-jit -l _agent.js
$ curl -s http://localhost:1337/stats | jq
$ curl -s -X POST http://localhost:1337/attack | jq
// ==UserScript== | |
// @name IPA for translate.google | |
// @namespace https://gist.github.com/adielBm/21762fe5e964071cb820a0c46896da34 | |
// @version 2024-06-27 | |
// @description Convert phonetic transcription to IPA on Google Translate | |
// @author adielBm | |
// @match https://translate.google.com/* | |
// @grant none | |
// @updateURL https://gist.githubusercontent.com/adielBm/21762fe5e964071cb820a0c46896da34/raw | |
// @downloadURL https://gist.githubusercontent.com/adielBm/21762fe5e964071cb820a0c46896da34/raw |
const XState = require('xstate') | |
const { Machine, interpret } = XState | |
const { raise } = XState.actions | |
/* | |
run from cli using: | |
node xstate-onentry-timing-bug.js [sync|async|raise] | |
*/ |
'use strict'; | |
const slowCallback = new NativeCallback(value => { | |
console.log('slowCallback hit'); | |
return 43; | |
}, 'int', ['int']); | |
const fastCallback = Memory.alloc(Process.pageSize); | |
Memory.patchCode(fastCallback, 128, code => { | |
const cw = new X86Writer(code, { pc: fastCallback }); |
/** Async version of Array.prototype.reduce() | |
* await reduce(['/foo', '/bar', '/baz'], async (acc, v) => { | |
* acc[v] = await (await fetch(v)).json(); | |
* return acc; | |
* }, {}); | |
*/ | |
export async function reduce(arr, fn, val, pure) { | |
for (let i=0; i<arr.length; i++) { | |
let v = await fn(val, arr[i], i, arr); | |
if (pure!==false) val = v; |
通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。
WARNING
本文所有指令均仅供参考,切勿无脑复制粘贴!
This is a helper function that will convert a given PDF file blob into text, as well as offering options to save the original PDF, intermediate Google Doc, and/or final plain text files. Additionally, the language used for Optical Character Recognition (OCR) may be specified, defaulting to 'en' (English).
Note: Updated 12 May 2015 due to deprecation of DocsList. Thanks to Bruce McPherson for the getDriveFolderFromPath()
utility.
// Start with a Blob object
var blob = gmailAttchment.getAs(MimeType.PDF);
function stringify(obj) { | |
if (typeof obj !== 'object' || obj === null || obj instanceof Array) { | |
return value(obj); | |
} | |
return '{' + Object.keys(obj).map(function (k) { | |
return (typeof obj[k] === 'function') ? null : '"' + k + '":' + value(obj[k]); | |
}).filter(function (i) { return i; }) + '}'; | |
} |
var blessed = require("blessed"); | |
window.onload = function () { | |
var term = new Terminal({ | |
cols: 80, | |
rows: 24, | |
useStyle: true, | |
screenKeys: true | |
}); |