Skip to content

Instantly share code, notes, and snippets.

View Trailingslashes's full-sized avatar

trailingslashes Trailingslashes

View GitHub Profile
@Trailingslashes
Trailingslashes / index.html
Created February 21, 2019 23:16
Challenege-Signup-Form: Attempt 2 created by Trailingslashe1 - https://repl.it/@Trailingslashe1/Challenege-Signup-Form-Attempt-2
<!DOCTYPE html>
<html lang="en">
<head>
<title>AnalogSea</title>
<meta name="description" content="Sign up for AnalogSea.">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<img class="logo" src="https://tf-assets-prod.s3.amazonaws.com/tf-curric/WEB-DEV-001/2.5.2_challenge_signup_form/logo.png" alt="AnalogSea" />

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@Trailingslashes
Trailingslashes / knock.sh
Created September 23, 2018 06:45
Port knocking bash script
#!/bin/bash
HOST=$1
shift
for ARG in "$@"
do
nmap -Pn --host-timeout 100 --max-retries 0 -p $ARG $HOST
done

Prerequisites

Ubuntu 16.04 or Ubuntu 18.04

MySQL

NGINX

Systemd

Recommended Node version installed via NodeSource

At least 1GB memory (swap can be used)

A non-root user for running ghost commands

@Trailingslashes
Trailingslashes / tmux.md
Created September 3, 2018 19:34 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@Trailingslashes
Trailingslashes / update_git_repos.sh
Last active September 8, 2018 06:36 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "Pulling in latest changes for all repositories.."
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@Trailingslashes
Trailingslashes / nvidia-setup.sh
Last active August 20, 2018 03:15
Nvidia Driver Script for Kali Linux Rolling
# Installs the current nvidia drivers and correct libraries for hashcat
# Repo list - https://docs.kali.org/general-use/kali-linux-sources-list-repositories
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
apt install linux-headers-$(uname -r) -y
apt install nvidia-driver -y
apt install nvidia-opencl-icd libxnvctrl-dev nvidia-opencl-dev libgmp3-dev libgmp10-doc opencl-headers -y
# Run hashcat -I to verify hardware
#
@Trailingslashes
Trailingslashes / README.md
Created August 26, 2017 04:44 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


How to pass the OSCP

  1. Recon
  2. Find vuln
  3. Exploit
  4. Document it

Recon

Unicornscans in cli, nmap in msfconsole to help store loot in database.