Skip to content

Instantly share code, notes, and snippets.

View danielmiessler's full-sized avatar
💭
Coding

Daniel Miessler danielmiessler

💭
Coding
View GitHub Profile
@danielmiessler
danielmiessler / exwis_wallace_huxley
Created February 27, 2024 03:48
EXTRACT_WISDOM OF WALLACE & HUXLEY
## SUMMARY
Aldous Huxley, a distinguished social critic and author of "Brave New World," discusses with Mike Wallace the threats to freedom in the United States, focusing on impersonal forces and technological devices that could lead to a loss of freedom. Huxley emphasizes the importance of individual values and education to combat these threats.
## IDEAS:
- Huxley predicted a world under dictatorship, which he now believes is close to reality.
- He identifies impersonal forces and technological devices as threats to freedom.
- Overpopulation and over-organization are highlighted as significant impersonal forces.
- Huxley discusses the potential for technology, including drugs and propaganda, to control people.
@danielmiessler
danielmiessler / init.vim
Created August 25, 2019 07:06
My Neovim $VIMRC configuration file
" (Neo)Vim Configuration
" By Daniel Miessler
" August 2019
" BASIC CONFIGURATION
" Remap Escape
inoremap jk <ESC>
" Remap the leader key to the spacebar
@danielmiessler
danielmiessler / telnetlistner.txt
Created October 30, 2016 19:54
Telnet listener captured credentials
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
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
### 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:
@danielmiessler
danielmiessler / GeoHarvest.sh
Created July 19, 2014 09:10
Get GeoLocation from a list of IP Addresses
#!/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
<!--Text-based Social Media Buttons-->
<p>
<!--Facebook-->
<a class="top_social" href="javascript:window.location=%22http://www.facebook.com/sharer.php?u=%22+encodeURIComponent(document.location)+%22&#38;t=%22+encodeURIComponent(document.title)" title="Share on Facebook...">Like</a> |
<!--Google Plus-->
<a href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" target="_blank" title="Plus one this page on Google">Google +1</a> |
<!--Twitter-->
<a class="top_social" href="javascript:window.location=%22https://twitter.com/share?url=%22+encodeURIComponent(document.location)+%22&text=%22+encodeURIComponent(document.title)">Tweet</a> |
<!--LinkedIn-->
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" target="_blank">Share on LinkedIn</a> |
@danielmiessler
danielmiessler / hashes.txt
Created December 27, 2013 05:13
Some hashes and stuff…
bWljaGVsbGU=
c3Vuc2hpbmU=
MTIzNDU2Nzg=
c33367701511b4f6020ec61ded352059
dldlsl202lfl
d56d5687d02684e18f914c497b606595aeb203be
test
5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5
# 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
export LSCOLORS='Exfxcxdxbxegedabagacad'