Skip to content

Instantly share code, notes, and snippets.

Kali Linux

Kali Linux is really the de facto penetration testing toolkit for anyone interested in this space.

Some tools that are already built-in to Kali Linux:

  • dnsenum: enumerates DNS information of a domain and to discover non-contiguous ip blocks
  • dnsmap: DNS domain name brute forcing tool
  • nmap: utility for network discovery and security auditing
  • Burp Suite: Web vulnerability scanner and related tooling. Kali bundles the free “community edition”, but you’ll want to buy a license for Pro
@admhpr
admhpr / get-the-boring-stuff-right.md
Last active October 20, 2018 13:54
Notes from THAT dev conf 2018

These are some notes I took during a talk @ THAT conference.

Get the Boring Stuff Right

  • Users want reliable software ~ Honda ! Mercedes
  • Make customers happy
  • Learn the boring skills

@admhpr
admhpr / create-playbook.py
Created August 17, 2018 19:24
Create Ansible Playbook with Python
#!/usr/bin/env python
import sys
import os
HELP_TEXT = """
Usage: ./create_playbook.py /path/to/playbookname [role1 role2 ...]
Creates an empty playbook skeleton, with any roles that are specified.
@admhpr
admhpr / Dockerfile
Last active December 28, 2018 17:33
Dockerfile to create a Debian 9 instance
FROM debian:latest
# Install packages
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
openssh-server \
apt-utils \
python3\
zip \
unzip \
routes:
collections:
/blog/:
permalink: /blog/{slug}/
filter: 'tag:blog'
template:
- index
/tutorials/:
permalink: /tutorials/{slug}/
filter: 'tag:tutorials'
@admhpr
admhpr / launch.json
Last active September 1, 2018 14:10
Remote xdebug vscode
{
"version": "0.2.0",
"configurations": [{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"log": true,
"pathMappings": {
"<absolute-remote-path>": "<absolute-local-path>"
},
@admhpr
admhpr / gulpfile.js
Created September 1, 2018 15:28
FE config gulp
// Gulp.js configuration
var // modules
gulp = require("gulp"),
newer = require("gulp-newer"),
imagemin = require("gulp-imagemin"),
wait = require("gulp-wait"),
concat = require("gulp-concat"),
deporder = require("gulp-deporder"),
uglify = require("gulp-uglify"),
scss = require("gulp-sass"),
@admhpr
admhpr / enzyme.ts
Created September 12, 2018 16:37
Jest Enzyme and Typescript
/*
* Add to __tests__/setup/
*/
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() })
@admhpr
admhpr / lecture_1.md
Created September 12, 2018 18:30
Notes on Comp Sci 61A

Acknowledges that the course is not about Scheme but quickly goes over the syntax

Scheme Syntax

standardised operator position

examples:

  (+ 2 3)
 (abs -4)
@admhpr
admhpr / events.json
Created January 24, 2019 02:22
JSON github events
[
{
"id": "8931597768",
"type": "PushEvent",
"actor": {
"id": 21364455,
"login": "harps116",
"display_login": "harps116",
"gravatar_id": "",
"url": "https://api.github.com/users/harps116",