Skip to content

Instantly share code, notes, and snippets.

View SakiiR's full-sized avatar
🎯
Focusing

SakiiR SakiiR

🎯
Focusing
View GitHub Profile
@SakiiR
SakiiR / bf.js
Created April 17, 2023 08:28
PlaidCTF - CSS bruteforce write up
const puppeteer = require('puppeteer');
const Jimp = require("jimp");
const DEBUG = false;
const URL = "https://plaidctf.com/files/css.74486b61b22e49b3d8c5afebee1269e37b50071afbf1608b8b4563bf8d09ef92.html"
const minimal_args = [
'--autoplay-policy=user-gesture-required',
'--disable-background-networking',
'--disable-background-timer-throttling',
@SakiiR
SakiiR / extract.js
Last active October 9, 2024 09:24
Bandcamp - Download wishlist album links to json
// bandcamp-dl -f -r -u -d --base-dir . `cat ~/Downloads/bandcamp-wishlist.json|jq -r '.[]'|tr '\n' ' '`
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
async function download(jsonContent) {
var element = document.createElement('a');
element.setAttribute('href', 'data:application/json;charset=utf-8,' + encodeURIComponent(jsonContent));
element.setAttribute('download', "bandcamp-wishlist.json");
element.style.display = 'none';
document.body.appendChild(element);