Skip to content

Instantly share code, notes, and snippets.

View jaywon's full-sized avatar

Jason Sewell jaywon

View GitHub Profile
@jaywon
jaywon / SUBDOMAINS.md
Created March 16, 2020 16:06
Azure Service Subdomains
*.cloudapp.net
*.cloudapp.azure.com
*.azurewebsites.net
*.blob.core.windows.net
*.cloudapp.azure.com
*.azure-api.net
*.azurehdinsight.net
*.azureedge.net

*.azurecontainer.io

@jaywon
jaywon / Knex-Setup.md
Created February 26, 2020 04:14 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@jaywon
jaywon / Knex-Migrations-Seeding.md
Created February 26, 2020 04:13 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

@jaywon
jaywon / asn-snippet.js
Last active January 26, 2020 23:17
Hurricane Electric ASN Extraction Snippet
/**
Usage:
1. Browse to https://bgp.he.net/
2. Search for company name ie. Acmecorp
3. On search results page, copy this snippet into Developer Console for an easily copy/paste(able) list of IP ranges w/ new line separators
**/
let links = document.getElementsByTagName('a');
let asnExtractList = "";
@jaywon
jaywon / install-docker.md
Created January 4, 2020 22:26 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
@jaywon
jaywon / aws-ec2-redis-cli.md
Created August 14, 2019 09:33 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2

Setup redis-cli without the whole Redis Server on AWS EC2

This fast tutorial will teach you how to install redis-clion AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:

$ sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli

@jaywon
jaywon / Network_Survival_Kit.md
Created July 30, 2019 02:14 — forked from tylernchls/Network_Survival_Kit.md
Network Survival Kit

Networking Survival Kit

Scenario:

You are a security professional that has been hired to carry out an investigation into a recent security breach of Arch industries. Upon initial scan of equipment, you have determined their system is severly outdated and contains none of the standard network cli tools and applications you normally have to perform your duties. Guess you will have to build your own!!!!!!

Your Task:

You are to use your knowledge of networking and scripting to build basic networking tools in order to complete your job. Below are your details if you choose to accept.

Required Tooling/Specs

@jaywon
jaywon / README.md
Created November 19, 2018 06:13
Python Overview
  1. Download Visual Studio Code
  2. Install plugins
  • Python (syntax highlighting)
  1. What is a linter?
  2. What is intellisense?
  3. Virtualenv
  • Python2.7 vs Python3
  1. Basic structure of a program
  2. Command line arguments
  3. Modules
@jaywon
jaywon / README.md
Last active July 24, 2018 04:00
JS Meetup Group Notes
  • Shared responsibilities
  • Short presentations
  • Prevent clique-ishness
  • First timer would be intimidating to present
    • First time exception, next time "penalty"
  • Have a checklist of what to do to plan an event
  • What venues?
    • Mellanie has a list
  • How to approach new comers, first timers?
  • Roles:
@jaywon
jaywon / INSTRUCTIONS.md
Last active April 21, 2018 19:01
Install OpenVAS on Kali 2018

Install OpenVAS

  1. apt update
  2. apt install openvas

Setup OpenVAS

  1. Run openvas initial setup from Applications menu or $ openvas setup from CLI
  2. Run openvas check setup from Applications menu or $ openvas checksetup from CLI

Update OpenVAS NVT(Network Vulnerability Tests)