Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Collect args | |
# -- traditional, piped|, <redirected | |
function collect_args { | |
local data args=() | |
if [[ ! -t 0 ]]; then | |
while IFS= read -r data || [[ -n "$data" ]]; do | |
args+=("$data") | |
done | |
fi |
💖✨ Step into a magical realm of technology where Dockew orchestrates a symphony of sewvices!
🐳✨ With a flick of youw command wand (docker-compose up -d
), summon vibwant enewgies of containews,
like spiwits fwom the etheweal plane. 🌟 In the swirling mists of the tewminyaw,
beckon fowth the spiwit of an Uwuntu mage, adorned with sacred wobes of Apache and mysticaw wunes of SSH. 🧙
♂️🔮 Then, weave a bwidge between wowlds with ssh -L 80:localhost:80 root@ubuntu2
,
cweating a pathway of wight thwough space and time. 🌈🌐
docker compose up -d
docker exec -it 6af7afd6e6b1 /bin/bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.methodOverride()); | |
// ## CORS middleware | |
// | |
// see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
var allowCrossDomain = function(req, res, next) { | |
res.header('Access-Control-Allow-Origin', '*'); | |
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host *.com | |
StrictHostKeyChecking no | |
User etoosamoe | |
ForwardAgent yes | |
IdentityFile /Users/username/.ssh/id_rsa | |
IdentitiesOnly yes | |
UserKnownHostsFile=/dev/null | |
UseKeychain yes | |
AddKeysToAgent yes | |
ServerAliveInterval 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert piped input to args | |
if [[ ! -t 0 ]] && [[ -p /dev/stdin ]] && (( $# == 0 )); then | |
set -- "${(@f)$(cat)}" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
##? plugin-load - load plugins without a fancy plugin manager | |
##? | |
##? usage: plugin-load [-h|--help] | |
##? plugin-load [-n|--no-source] [-d|--defer] [-f|--fpath] [-p|--path] | |
##? [-u|--use-dir <plugin-subdir>] [<repo...>] | |
function plugin-load { | |
local use_dir flag_no_source flag_fpath flag_path flag_defer repos=() |
With kerbrute.py:
python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>
With Rubeus version with brute module:
NewerOlder