Skip to content

Instantly share code, notes, and snippets.

@bluec0re
bluec0re / snippet.js
Last active January 24, 2024 19:50
HTB lab annotate flag owners
function getLabId() {
return /\d+$/.exec(location.pathname)[0]
}
async function getActivity() {
const lab_id = getLabId();
let page = 1;
let data = await (await fetch(`https://enterprise.hackthebox.com/api/v1/product/labs/${lab_id}/activity?page=${page}`)).json();
const activities = data.data;
for (page++; page <= data.meta.last_page; page++) {
@bluec0re
bluec0re / browse_deb.py
Created May 14, 2024 09:33
Simple deb package browser
#!/usr/bin/env python3
import argparse
import dataclasses
import datetime
import os
import subprocess
import tarfile
import tempfile
from collections.abc import Generator