Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Sewell jaywon

View GitHub Profile
@jaywon
jaywon / SUBDOMAINS.md
Created Mar 16, 2020
Azure Service Subdomains
View SUBDOMAINS.md
*.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 Feb 26, 2020 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js
View Knex-Setup.md

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 Feb 26, 2020 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!
View Knex-Migrations-Seeding.md

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 Jan 26, 2020
Hurricane Electric ASN Extraction Snippet
View asn-snippet.js
/**
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 Jan 4, 2020 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
View install-docker.md
@jaywon
jaywon / aws-ec2-redis-cli.md
Created Aug 14, 2019 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2
View aws-ec2-redis-cli.md

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

View Network_Survival_Kit.md

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 Nov 19, 2018
Python Overview
View README.md
  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 Jul 24, 2018
JS Meetup Group Notes
View README.md
  • 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 Apr 21, 2018
Install OpenVAS on Kali 2018
View INSTRUCTIONS.md

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)