2017-03-28, dtrace

dtrace dtrace is pretty intereting and I need to learn more about it. Similar to strae which i also don’t know how to use. I did not get a chance to spend as much time as I wanted with dtrace so I will have to come back to this one dtrace-even-better-than-strace-for-osx.html dtrace docker attach Well Ctrl + C (or Ctrl + \ ) should detach you from the container but it kill the container because your main process is a bash....

2 min · 216 words · Mike Fettis

2017-03-30, vagrant

vagrant vagrant is a useful tool for demoing and discovery work when you don’t want to go about standing up everything vagrant init ubuntu/trusty64 vagrant up - starts up the vagrant image that has a vagrant file in the working directory vagrant status - checking status of vagrant vagrant ssh to log in to the machine that is already running cat /etc/issue vagrant destroy - tears it all down vagrant halt _ stop without teardown which <command> - shows you were that commmand lives ansible ansible inventory...

1 min · 95 words · Mike Fettis

2017-03-31, vault, hubot

Vault Storing secrets for docker containers can be tricky to get right. There is this thing called vault that does it pretty safely for you. The idea is that there should be nothing sensitve stored in the configuration of your containers. This is hard because when you need keys and passwords it is quite common to store those as environment variables and then refences those. You should not do that, that is bad....

2 min · 303 words · Mike Fettis

2017-04-05, du

du 100G crashplan/ http://www.linfo.org/du.html

1 min · 4 words · Mike Fettis

2017-04-06, secrets, docker, vortex keyboards, brickerBot

secrets in docker secret secret I’ve got a secret. It looks like hter is some stuff that is in docker 1.13.1 that allows you to do native secret storage…. swarm-secrets-in-action/ vortex keyboards I have two different vortex keyboards, the pok3r and the core 40%. I really like vortex keyboards. the only annoything thing is that their firmwares are only released as exe files and since I dont actually have anything that runs windows anymore, this presents a problem....

2 min · 363 words · Mike Fettis

2017-05-01, do over

new month Lets hope that I can get back in the swing of things with what I learned. The past month has been pretty chaos filled and I have not been very good at updating this. Here we go.

1 min · 39 words · Mike Fettis

2017-05-02, chrome

Headless chrome headless Chrome this allows you to run chrome headless style. This can allow you to script chrome. This could lead to some interesting things. kali virtual becuase I dont like to run around with extra laptops I got kali up and running virutally. Yea I know I miss a few things with it this way but I don’t mind. Kali virtualbox Networking is turning out to be a PITA, which means that the best way to do networking with Virtualbox and kali is to just use a usb wifi dongle....

1 min · 157 words · Mike Fettis

2017-05-10, bujo

bullet journal conversion I have been using bullet journal for a time now and finding that the paper notebook is difficult for my lifestyle and for at work where I spend my life on the computer and I just don’t want to have to carry the notebook and my laptop with me every time. I understand that part of the concept of the bujo is to physically write things. However this is a difficult task when I carry my laptop around with me everywhere I go....

1 min · 202 words · Mike Fettis

2017-05-11, things

Git all the things Git is fantastic and I try to use it wherever I can. However outside of git, source control is a must. If a system does not support source control or version-ing then you need to make something that does. F5 does not do an elegant source control. So, I wrote an interface for the rest API that run every hour in Jenkins. It downloads the irule data then adds it to git....

1 min · 105 words · Mike Fettis

2017-05-12, akamai

akamai user segmentation cloudlet Akamai is a massive CDN. When someone needs to do an A-B test or a phased rollout a cdn makes things a bit tricky. There are these things called cloudlets that the cdn can leverage to do other magic tasks. One of those tasks is an AB test. Where when you have a cached paged the cloudlet can be configured to tunnel through the cache and send the traffic for a various experiment back to the origin....

1 min · 194 words · Mike Fettis

2017-05-16, pi

SSH Sometimes you jsut need to ssh in to a specific port on a host, becuase well running ssh on a standard port is often a bad idea. ssh asdfasdf -p 80` (lowercase p) scp Again if ssh is then running on a different port you are going to need to use scp on a different port. A similar syntax is needed for that. scp -P 80 … # Use port 80 to bypass the firewall, instead of the scp default (uppercase P)...

2 min · 261 words · Mike Fettis

2017-06-07, tmux, sublime, ranger, grep

sublime from the terminal I live in a terminal but I am not great at vim yet so lets embed sublime instead of vim… ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime this creates a symlink for the sublime cli command so you can run sublime filename (replace “filename” by an actual file name) or sublime foldername (replace “foldername” by an actual folder name) or even sublime . (to open the entire current directory)...

1 min · 198 words · Mike Fettis

2017-06-12, bitbar

BitBar Bitbar is a handy extension that you can use with Macos that allows things in the notification bar at the top of the screen. The excellent part about it, is that it uses python to render the data. Python rocks which means it is super simple to get any and all data in there. linke to find bitbar is here: bitbar

1 min · 62 words · Mike Fettis

2017-06-21, profiling

Node profiling There is a handy dandy performance profileer that I made use of today. nodejs-dashboard nodejs-dashboard It is easily configured to be added at runtime with: nodejs-dashboard -- node -r nodejs-dashboard index.js if you check the git repo you can see all the magic that can be done with the dashboards. I find it useful for heap usage and cpu. docker gotcha There is a feature in docker called autorestart....

1 min · 153 words · Mike Fettis

2017-06-28, i am groot

changing root username to groot First things first, if you are going to do this you should have a root shell already open. If you do any of these commands as sudo, odds are good it won’t work. Honestly who doesn’t want to see all of the old files owned by root suddenly become owned by groot?!?! This has got to be the best worst idea I have had in a while....

1 min · 155 words · Mike Fettis

2017-08-05, ssh things

SSH I use ssh all day all the time. But usually it is pretty standard login, shared keys and move into my tmux session. Other times its used a saved command to open a tunnel and doing some port forwards. Today and the last couple days I have tarted to fill in some of the bits and pieces to really configure ssh. That and I want to use ansible more to make my life easier, which of course leverages ssh quite a bit to get the job done....

4 min · 658 words · Mike Fettis

2017-08-19 ssh-key-rotation

#SSH Key rotation! In some circles ssh key rotation is terrifying and considered a massive headache. In security circles the lack of key rotation is a ripe target to compromise ALL the things. How do we solve this? Well you can write a bash script that is going to go through a list of hosts and then do an ssh-copy-id to each host, but this is not going to invaliadate the old keys it is just going to dd the new ones....

4 min · 849 words · Mike Fettis

2017-08-23, macos docker

Local macos docker file system filled up Docker for macos has a bit of a bug that over time this file grows and chews up the availaable storage space that the daemon and containers are allowed to use. Even if you remove all containers, volumes and images, space usage will persist. The fix is to simply remove this one file. rm ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 and then restart docker I found it on docker fourms here: no-space-left-on-device-error...

1 min · 84 words · Mike Fettis

2017-08-25, inodes

filespace and inodes Reminder - you can run out of inodes on a system and still have plenty of space on it. We were seeing this error with jenkins Aug 25, 2017 3:14:33 PM net.bull.javamelody.JavaLogger warn WARNING: exception while collecting data: java.io.FileNotFoundException: /apps/jenkins/monitoring/xxx/http66ee24a2ec3f919f7da7c6a424e9dba4d059e1de.rrd (No space left on device) java.io.FileNotFoundException: /apps/jenkins/monitoring/xxx/http66ee24a2ec3f919f7da7c6a424e9dba4d059e1de.rrd (No space left on device) when I ran a df -h i saw $ df -h Filesystem Size Used Avail Use% Mounted on … /dev/mapper/jenkinsvg-jenkinslv 20G 6....

1 min · 117 words · Mike Fettis

2017-08-26, reverse shell

Whats a reverse shell? It’s that turtle that you jump on and it bounces off a wall and comes back at you right? Not quite but, you aren’t alone in ignorance. It is surprising that the number of folks that don’t actually know what a reverse shell is. Long story short, it is when one computer connects to another computer but the initiating computer forwards their shell to the destination. It is commonplace that a reverse shell happens during an attack or as part of a pentest....

4 min · 652 words · Mike Fettis