Skip to content

Instantly share code, notes, and snippets.

View nfarrar's full-sized avatar

Nathan Farrar nfarrar

View GitHub Profile
@nfarrar
nfarrar / learning-computer-security.md
Last active April 2, 2024 04:33
Learning Computer Security

Learning Computer Security

About This Guide

This is an opinionated guide to learning about computer security (independently of a university or training program), starting with the absolute basics (suitable for someone without any exposure to or knowledge of computer security) and moving into progressively more difficult subject matter.

It seems that most people don't realize how much information is actually available on the internet. People love to share (especially geeks) and everything you need to become well versed in computer security is already available to you (and mostly for free). However, sometimes knowing where to start is the hardest part - which is the problem that this guide is intended to address. Therefore, this guide can accuratley be described as a 'guide to guides', with additional recommendations on effective learning and execises, based on my own experiences.

Many of the free resources are the best resources and this guide focuses on them. It is intended to provided a comprehensive

ESXi (Free) Management

Exploring management options for an ESXi server in a home/lab environment.

  • It's so fucking rad that ESXi free doesn't provide a web interface. /sarcasm
  • Having a dedicated Windows VM for ESXi management is suck.
  • Running vSphere Client in Wine/Crossover requires hacks to install and doesn't work correctly.
  • How much does it cost to get a license for a lab environment?
  • Can we use the DCUI (Direct Console User Interface) without a license? (Answer: YES, via a directly console, over SSH, but we can only do very basic things)
  • Can we use the CLI/SDK/API tools? (Answer: PARTIALLY, Without a license it's locked down to read-only)
  • Can we SSH to the bare-metal host and use command line tools for manaagement? (Answer: YES, but we have to enable SSH)
@nfarrar
nfarrar / syslog-client.py
Created August 14, 2014 16:08
A simple command line python syslog client for generating test messages.
#!/usr/bin/env python
import argparse
import logging
import logging.handlers
parser = argparse.ArgumentParser(__file__,
description="A syslog message generator")
parser.add_argument("--address",
@nfarrar
nfarrar / colorlogger.py
Last active April 13, 2023 06:22
Python Colored Logging
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nathan Farrar"
__website__ = "http://crunk.io"
__email__ = "nfarrar@crunk.io"
__version__ = 0.1
import logging
import sys
"=============================================================================
" FILE: vimrc
" AUTHOR: Nathan Farrar <nathan.farrar.@gmail.com>
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
" 'Software'), to deal in the Software without restriction, including
" without limitation the rights to use, copy, modify, merge, publish,
" distribute, sublicense, and/or sell copies of the Software, and to
" permit persons to whom the Software is furnished to do so, subject to
@nfarrar
nfarrar / woodworking.md
Last active May 14, 2018 01:13
Woodworking & Microshop Design

Woodworking

I'm completely new to home ownership & woodworking. I've tried to tackle a few projects myself & bought a couple tools in the process, but mostly still have no idea what I'm doing. My garage is a currently a complete mess. I've put some stuff up on the walls to make more space and start organizing, but I don't have any decent shelves and the "workbench" is currently just a storage area (leaving me no place to work). The surface of the workbench is warped and there are no vices or clamps making it a less than ideal work surface anyway.

I've started doing some research and dumping the notes here as I (very slowly) make progress.

Contents

@nfarrar
nfarrar / elk.md
Last active January 14, 2018 12:56
Setting Up a Private Elk Server

Private ELK Server

I needed a syslog server and had been reading about ELK for the past few months. I finally decided to throw together a basic implementation in my home lab. I've recorded my notes for this process in this document & dumped the notes online at the following locations:

The implementation I built is super basic, it's just in my lab for dev purposes atm - so I didn't finish securing or building the integrations - just needed it to visualize some syslog data ATM.

@nfarrar
nfarrar / garage.rst
Last active January 22, 2016 20:52
The Garage Conundrum

Pi Radio

Shopping