Skip to content

Instantly share code, notes, and snippets.

View dvdknaap's full-sized avatar

Danny van der Knaap dvdknaap

View GitHub Profile
@dvdknaap
dvdknaap / doGobuster
Created January 3, 2021 14:26
Access gobuster fast
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: doGobuster <url> <wordlist> <extensions> <threads> <wildcard>";
else
defaultWordlist="/usr/share/wordlists/dirb/common.txt"
defaultExtensions="txt,php,html,py,htm,bak,bakup,old,zip"
defaultThreads=100
wordlistMedium="/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt"
@dvdknaap
dvdknaap / doNmap
Created January 3, 2021 14:00
Access nmap fast
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: doNmap <ip address>";
else
echo $1;
nmap -p- -T4 -sC -sV -Pn -vvv "$1" > nmap.txt &
tail -f nmap.txt;
fi
@dvdknaap
dvdknaap / ResetMacPassword.md
Created July 27, 2018 08:28
Reset Mac password

Recent admin password via Recovery mode

  • Hold during boot cmd+R
  • Click on the top left scheen on the 'Utilities' menu and then on 'Terminal'
  • When Terminal is open typ 'resetpassword' and press enter

Reset your admin password using Single-user mode

  • Hold during boot cmd+S
  • Type 'mount -uw /' and press enter
  • Type 'launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist' and hit enter
  • After this you can reset any username with 'passwd username'
@dvdknaap
dvdknaap / .tmux.conf
Last active May 3, 2018 05:38
.tmux.conf
# remap prefix to Control + a
set -g prefix ^a
# bind 'C-a C-a' to type 'C-a'
bind ^a send-prefix
unbind ^b
# Qualtiy of life stuff
set -g history-limit 10000
set -g allow-rename off
@dvdknaap
dvdknaap / kali.md
Last active October 15, 2022 09:47
RootTricks

install all tools

  • apt install kali-linux-all

.git folder downloader

  • git clone https://github.com/internetwache/GitTools.git

Check ports with nmap

  • nmap -sC -sV -oA initial 10.10.10.78
  • nmap -sV -sC -oA nmap-tcp 10.10.10.84
  • nmap -T4 -A -v -p 0-10000 10.10.10.8