View init.vim
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
" (Neo)Vim Configuration | |
" By Daniel Miessler | |
" August 2019 | |
" BASIC CONFIGURATION | |
" Remap Escape | |
inoremap jk <ESC> | |
" Remap the leader key to the spacebar |
View telnetlistner.txt
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
65 root vizxv | |
61 root xc3511 | |
43 root admin | |
39 admin admin | |
33 admin password | |
32 root xmhdipc | |
29 root root | |
26 root 123456 | |
24 root juantech | |
24 root 888888 |
View AirQuality.rb
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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
# Change for your ZIP | |
page = Nokogiri::HTML(open("http://www.airnow.gov/?action=airnow.local_city&zipcode=94102&submit=Go")) | |
# Get the current air quality | |
puts page.css('table.AQData td.AQDataLg').text |
View gist:91c6ad0e3e390c9fb7f1
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
### Keybase proof | |
I hereby claim: | |
* I am danielmiessler on github. | |
* I am danielmiessler (https://keybase.io/danielmiessler) on keybase. | |
* I have a public key whose fingerprint is C7D4 8DA8 35A4 5E83 3FC6 0ECA 79CB A58E D1BB 075F | |
To claim this, I am signing this object: |
View GeoHarvest.sh
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 bash | |
cat /var/log/apache2/ | awk '{print $1}' > ips.txt | |
uniq ips.txt > uniques.txt | |
IPS='cat uniques.txt' | |
echo "" > ./ipinfo.csv | |
for i in $IPS | |
do | |
echo "$i,'host $i | awk '{print $5}'','geoiplookup $i | cut -d "," -f2 | sed -e 's/^[ \t]*//'','geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat $i | cut -d "," -f3 | sed -e 's/^[ \t]*//'','geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat $i | cut -d "," -f4 | sed -e 's/^[ \t]*//''" >> ipinfo.csv | |
done |
View hashes.txt
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
bWljaGVsbGU= | |
c3Vuc2hpbmU= | |
MTIzNDU2Nzg= | |
c33367701511b4f6020ec61ded352059 | |
dldlsl202lfl | |
d56d5687d02684e18f914c497b606595aeb203be | |
test | |
5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5 |
View gist:7669736
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
# Load the theme | |
if [ "$ZSH_THEME" = "random" ] | |
then | |
themes=($ZSH/themes/*zsh-theme) | |
N=${#themes[@]} | |
((N=(RANDOM%N)+1)) | |
RANDOM_THEME=${themes[$N]} | |
source "$RANDOM_THEME" | |
# echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..." | |
else |
View gist:7669527
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
export LSCOLORS='Exfxcxdxbxegedabagacad' |
View gist:6532603
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
# Black Perl | |
BEFOREHAND: close door, each window & exit; wait until time. | |
open spellbook, study, read (scan, select, tell us); | |
write it, print the hex while each watches, | |
reverse its length, write again; | |
kill spiders, pop them, chop, split, kill them. | |
unlink arms, shift, wait & listen (listening, wait), | |
sort the flock (then, warn the "goats" & kill the "sheep"); | |
kill them, dump qualms, shift moralities, | |
values aside, each one; |
NewerOlder