Skip to content

Instantly share code, notes, and snippets.

@butlerallenj
butlerallenj / htb-cancel-reset.js
Last active April 6, 2020 13:07
Prevent Hack The Box users from reseting machines you are currently working on with a little bit of javascript and your browser console!
/*
* Description: Use this script to cancel resets issued to the specified machine
* on Hack The Box. Must be run in the browser console, just change
* the variable "machine" to the Machine name you would like to
* stop resets to. Copy/Paste into your browser on the Shoutbox
* page, and hack all the things!
*/
// Set your machine name here
var machine = 'Valentine';
.asax
.ascx
.ashx
.asmx
.aspx
.axd
.browser
.cd
.compile
.config
@butlerallenj
butlerallenj / paginate.py
Last active May 2, 2019 00:31
Paginate Files via STDIN
#!/usr/bin/env python3
import sys
import math
import argparse
parser = argparse.ArgumentParser(
description="Paginate the output of a file or command via STDIN\nExample: cat log.txt | paginate.py -p 2 -l 20\nAuthor:@butlerallenj"
)
parser.add_argument('-l', '--limit', type=int, default=50, help="The per page quantity to print out. Default: 50")