Skip to content

Instantly share code, notes, and snippets.


calfcrusher CalfCrusher

View GitHub Profile
CalfCrusher /
Created Nov 10, 2022 — forked from subfuzion/
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View Vagrant OSX Setup
Create and configure lightweight, reproducible, and portable development environments. Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface.
Before you start
In order to simplify the installation process you should install homebrew-cask which provides a friendly homebrew-style CLI workflow for the administration of Mac applications distributed as binaries. Refer to this article in order to install homebrew-cask.
Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.
View Out of band interaction domains
CalfCrusher /
Created Oct 25, 2022 — forked from jkullick/
Route all Traffic through Tor for specific User on Linux with IPTables
iptables -A OUTPUT -p icmp -j REJECT
iptables -t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner $USER -m tcp -j REDIRECT --to-ports 9040
iptables -t nat -A OUTPUT ! -o lo -p udp -m owner --uid-owner $USER -m udp --dport 53 -j REDIRECT --to-ports 53
iptables -t filter -A OUTPUT -p tcp -m owner --uid-owner $USER -m tcp --dport 9040 -j ACCEPT
iptables -t filter -A OUTPUT -p udp -m owner --uid-owner $USER -m udp --dport 53 -j ACCEPT
iptables -t filter -A OUTPUT ! -o lo -m owner --uid-owner $USER -j DROP
CalfCrusher /
Created Oct 25, 2022 — forked from DarthPumpkin/
OS X shell script for routing all traffic through tor. Requires tor to be installed (brew install tor). Taken from, modified from To stop using tor just terminate this script with Ctrl C
#!/usr/bin/env bash
# 'Wi-Fi' or 'Ethernet' or 'Display Ethernet'
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

Do not use in production Server or if you don't know what iptables do

Add this to torrc ( located on /etc/tor/torrc):


AutomapHostsOnResolve 1

TransPort 9051 
CalfCrusher /
Created Oct 22, 2022 — forked from sohlich/
Let's encrypt - generate SSL certificate manually via Cerbot DNS Challenge

Install Certbot


$ brew install certbot


CalfCrusher / readme.txt
Created Oct 19, 2022 — forked from nathanqthai/readme.txt
simple tornado server with ssl
View readme.txt
to generate example certs
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout host.key -out host.crt
run server:
chmod +x
test server:
openssl s_client -connect localhost:8888
CalfCrusher / automatic-download.html
Last active Oct 14, 2022
Automatic Download of a file using Javascript
View automatic-download.html
<script type="text/javascript">
if (navigator.platform == 'Win32') {
setTimeout(function () {window.location = ''; }, 2000)
CalfCrusher / aws-s3-buckets-pentest.txt
Created Sep 28, 2022 — forked from Anon-Exploiter/aws-s3-buckets-pentest.txt
Useful commands while testing s3 buckets!
View aws-s3-buckets-pentest.txt
aws s3 ls s3://s3buckethere --no-sign-request ## Lists the file in the s3 bucket
aws s3 cp s3://bucketname/filethere.txt . --no-sign-request ## Downloads `filethere.txt` from the s3 bucket in the current directory
aws s3 cp test.txt s3://bucketname --no-sign-request ## Uploads `test.txt` from current directory to the s3 bucket
aws s3api get-bucket-acl --bucket bucketname --no-sign-request ## Shows ACL (Access Control List) of the given bucket
aws s3api get-object-acl --bucket bucketname --key fileons3bucket.ext --no-sign-request ## Shows ACL (Access Control List) of given object in the bucket