Discover gists
๐โจ 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:
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
(* | |
* Tested on PolyML. `polyc server.ml && ./a.out` | |
*) | |
fun println s = | |
(print (s ^ "\n"); TextIO.flushOut TextIO.stdOut) | |
fun readAll conn req = | |
let val ntoread = Socket.Ctl.getNREAD conn in | |
if ntoread > 0 |
NewerOlder