Skip to content

Instantly share code, notes, and snippets.

@Sjord
Sjord / funcs.js
Last active January 5, 2022 10:15
const lines = $$('.description .methodsynopsis').map(m => { return {
"name": m.querySelector('.methodname').innerText,
"params": Array.from(m.querySelectorAll('.parameter')).map(p => p.innerText)
}}).filter(info => info.params.includes("$filename")).map(info => {
let pos = info.params.indexOf("$filename");
let params = info.params.slice(0, pos + 1).map(p => p.toUpperCase());
return `${info.name}(${params.join(", ")}, ...)`;
}).join("\n");
document.body.textContent = lines;
index.html
robots.txt
favicon.ico
Makefile
.gitignore
404.html
index.js
README.md
500.html
422.html
:020000040000fa
:10000000020a3e0201aeffffffffffffffffffffff
:10001000fffffffffffffffffffffffffffffffff0
:10002000ffffffffffffffffffffff021de0ffffde
:10003000ffffff020680ffffffffffffffffffff45
:10004000ffffff0208acffffffffff02074affffb1
:10005000ffffff020101ffffffffff020759ffff44
:10006000ffffff020765ffffffffff020666ffffbe
:10007000ffffffffffffffffffffffffffffffff90
:10008000ffffff02014a0101ff01010503010f10fb
graphical.target @14.613s
└─multi-user.target @14.613s
└─getty.target @14.613s
└─[email protected] @14.612s
└─systemd-user-sessions.service @11.369s +38ms
└─basic.target @11.207s
└─paths.target @11.207s
└─cups.path @11.207s
└─sysinit.target @11.192s
└─networking.service @3.243s +7.948s
@Sjord
Sjord / gist:ac8dfff3a3ac3180c065f370f24b30a8
Last active September 10, 2024 07:00
Hacking Team hack
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
import vcr
import urllib2
import os
yaml_file = 'reproduce.yaml'
# Begin with existing YAML file with non-matching requests.
try:
os.remove(yaml_file)
except OSError: