Skip to content

Instantly share code, notes, and snippets.

View drsh0's full-sized avatar

drsh0

View GitHub Profile
@drsh0
drsh0 / bearblog-theme.css
Last active October 8, 2023 10:42
bearblog custom theme with nord colours
/* CSS Theme based on https://basementcommunity.bearblog.dev/ */
/* Font */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=block");
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300&display=swap');
:root {
--width: 720px;
--font-main: "Libre Baskerville", Georgia, Cambria, "Times New Roman", Times,
serif;
--font-secondary: "Libre Baskerville", Georgia, Cambria, "Times New Roman", Times,
@drsh0
drsh0 / bsides-bris-2023.ics
Created July 6, 2023 03:05
BSides Brisbane 2023 event schedule to import into your favourite calendar. Based on https://bsidesbrisbane.com/schedule/ as of 2023-07-06
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ical.marudot.com//iCal Event Maker
X-WR-CALNAME:BSides Brisbane Schedule (Unofficial)
NAME:BSides Brisbane Schedule (Unofficial)
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Australia/Sydney
LAST-MODIFIED:20201011T015911Z
TZURL:http://tzurl.org/zoneinfo-outlook/Australia/Sydney

SEC504 + GCIH Study Notes

TL;DR

  1. 1st pass - go over the material and highlight important parts, commands, concepts. a. Do labs for each section and take notes on the commands used.
  2. 2nd pass - go over material again but this time build your index (see sections below).
  3. Take the first practice exam using your current index; note down weak areas and labs you had issues with.
  4. Add any further details into the index as needed and/or practice labs.
  5. Redo exam again and check steps above if still needed.
@drsh0
drsh0 / unifi_docker_update.sh
Last active March 27, 2022 06:38
A script to take a backup of the existing unifi controller container and set up the desired new version. Relies on images from https://hub.docker.com/r/jacobalberty/unifi/tags
#!/bin/bash
var_date=$(date +"%Y-%m-%d")
read -p "I need to stop the unifi container. Do you want to proceed? y/n " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker stop unifi
echo "unifi stopped"
fi
#!/usr/bin/env python3
## TryHackMe Advent Calendar 2020 Day 16
## https://tryhackme.com/room/adventofcyber2
import requests
# The code below assumes an api endpoint with a odd-numbered key that we don't know the value of. The correct value will produce a flag.
# for loop to go over 1-100 key values, step by 2 to have odd numbers only
for api_key in range(1,100,2):
@drsh0
drsh0 / web-recon-checklist.md
Last active December 24, 2020 08:22
Web Recon Checklist

HTTP/HTTPS

  • robots.txt
  • security.txt
  • check directory list
  • fuzz common directories
  • curl -H "Host: {{random}}"
  • vhost enumeration via Host headers
  • default HTTP and TLS vhost e.g. visit website's IP address
  • view TLS certs for alt DNS names
  • inspect headers
@drsh0
drsh0 / parrot-virtual-setup.sh
Created November 22, 2020 03:37
Parrot OS Virtualbox Init Script. Run with sudo privileges.
parrot-upgrade
gzip -d -k /usr/share/wordlists/rockyou.txt.gz
wget -c https://github.com/danielmiessler/SecLists/archive/master.zip -O /usr/share/wordlists/SecList.zip
unzip /usr/share/wordlists/SecList.zip
rm -f /usr/share/wordlists/SecList.zip
usermod -aG vboxsf user
apt install -y zsh zsh-syntax-highlighting zsh-autosuggestions

Tracelabs OSINT CTF Notes

26-9-2020
Presenter: @AletheDenis
Notes below are my personal notes

Tips

  1. Zoom! Enhance
  2. There is no substitution for scrolling
    • scroll geolocated posts on IG
    • scroll profile posts+tweets
@drsh0
drsh0 / osint-resources.md
Created November 6, 2019 22:30
OSINT Resources and Websites from SANS Talk by Micah Hoffman