This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
""" Validate SFS download files and md5 sigs en masse | |
Author: sbassett29 | |
License: CC0 | |
""" | |
import hashlib | |
import re | |
import requests |
This file contains hidden or 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 bash | |
############################################################################### | |
# Author: [email protected] | |
# License: Apache 2 <https://opensource.org/licenses/Apache-2.0> | |
# Description: | |
# Simple js security search | |
# - http://blog.blueclosure.com/2017/09/javascript-dangerous-functions-part-1.html | |
# - https://github.com/wisec/domxsswiki/wiki/Direct-Execution-Sinks | |
# - https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.md | |
############################################################################### |
This file contains hidden or 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 bash | |
################################################################################ | |
# Author: [email protected] | |
# License: Apache 2 <https://opensource.org/licenses/Apache-2.0> | |
# Description: | |
# Quick way to consistently verify ssh key fingerprints of remote hosts | |
################################################################################ | |
set -euo pipefail | |
# validate arguments |
This file contains hidden or 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
<?php | |
/** | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
""" Search for various ref domains and urls on Wikimedia projects | |
Author: sbassett29 | |
License: CC0 | |
Usage examples: | |
./searchRefs.py example.com | |
./searchRefs.py example.com/some/url | |
./searchRefs.py https://example.com/some/?arg=1 |
This file contains hidden or 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 bash | |
################################################################################ | |
# Author: [email protected] | |
# License: Apache 2 <https://opensource.org/licenses/Apache-2.0> | |
# Description: | |
# Opinionated code line count tool for code repo dirs | |
################################################################################ | |
set -euo pipefail | |
# vars |
This file contains hidden or 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
# License: CC0 | |
# slightly more sane pretty-print for more obnoxiously-named Docker images | |
docker images --format \"table {{.Repository}}\t{{.ID}}\t{{.Tag}}\t{{.CreatedSince}}\" | awk 'NR==1 {print \$1\":\"\$2\" \"\$3\":\"\$4\":\"\$5} NR > 1 {print \"...\"substr(\$1,length(\$1)-35,36)\":\"\$2\":\"substr(\$3,0,8)\"... :\"\$4\" \"\$5\" \"\$6}' | column -t -s ':' | |
# an ok way to reverse-engineer an image to a docker file | |
docker history --no-trunc --format "{{.CreatedBy}}" $1 | tail -r | sed '/^$/d' | sed 's/^\/bin\/sh -c #(nop) *//g' | sed 's/^|[0-9]/RUN/g' | sed -e $'1s/^/FROM\\\n/' | tr -s ' ' |
This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
""" Article title check across Wikimedia projects | |
Author: sbassett29 | |
License: CC0 | |
""" | |
import argparse | |
import json | |
import requests |
NewerOlder