Knowledge Base
Here is my KB. Nothing fancy or cool. Just snippets for what im working on. Or have worked on.
Tutorials
Chef
- https://learn.chef.io/tutorials/local-development/ubuntu/virtualbox/get-set-up/
CLI Tricks
jq
- json query
$> jq '.ReplicationGroups[].NodeGroups[]'
$> jq '.items[].id'
$> aws --region=us-west-2 elasticache describe-replication-groups | jq '.ReplicationGroups[].NodeGroups[] | select(.Status=="Available")'
Nmap Examples
# DNS Brute Force
nmap -p 80 --script dns-brute.nse taraget.fqdn
# Find Hosts on IP
nmap -p 80 --script hostmap-bkf.nse taraget.fqdn
# Traceroute Geolocation
sudo nmap --traceroute --script traceroute-geolocation.nse -p 80 taraget.fqdn
# HTTP Enumeration
nmap -p 80 --script http-enum.nse taraget.fqdn
# HTTP Enumeration / path
nmap -p 80 --script http-enum.nse http-enum.basepath='pub/' taraget.fqdn
Chef Resources
Chef Training
Reading Room
Articles to Read
General
- https://segment.com/blog/rebuilding-our-infrastructure/
- https://www.fourkitchens.com/blog/article/trigger-jenkins-builds-pushing-github
- https://thepracticalsysadmin.com/setting-up-a-github-webhook-in-jenkins/
- https://www.blazemeter.com/blog/how-start-working-github-plugin-jenkins
- http://www.h-i-r.net/2012/10/mysql-logging-for-ossec.html
- https://logz.io/blog/aws-elasticsearch-log-management/
- https://logz.io/blog/the-top-5-elasticsearch-mistakes-how-to-avoid-them/
- https://www.slideshare.net/bobeirasa/es-on-aws-rafael-lopes-2nd-meetup-elasticsearch-brasil
- https://www.elastic.co/guide/en/elasticsearch/plugins/master/cloud-aws-best-practices.html#cloud-aws-best-practices
SQL
- https://blogs.technet.microsoft.com/heyscriptingguy/2011/05/06/use-powershell-to-copy-a-table-between-two-sql-server-instances/