Skip to content

Instantly share code, notes, and snippets.

@whit3rabbit
whit3rabbit / duplicate.ps1
Created March 20, 2023 00:38
remove duplicates files from current directoy
# Function to display a menu and get the user's choice
function Show-Menu {
param (
[string]$Title = "Menu",
[string[]]$MenuItems
)
Clear-Host
# Display the title
@whit3rabbit
whit3rabbit / client.go
Created January 22, 2023 20:02
port knocker by chatgpt
// Client
package main
import (
"fmt"
"net"
"time"
)
func main() {
@whit3rabbit
whit3rabbit / csv
Created October 5, 2022 00:27
user-agents
This file has been truncated, but you can view the full file.
useragent_string,browser_family,browser_version,operating_system,operating_system_version,device_family,is_mobile,is_tablet,is_touch_capable,is_pc,is_bot,overview
"Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)",Other,,Other,,Other,False,False,False,False,False,Other / Other / Other
"Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)",Other,,Other,,Other,False,False,False,False,False,Other / Other / Other
Mozilla/5.0 (compatible; ABrowse 0.4; Syllable),Other,,Other,,Other,False,False,False,False,False,Other / Other / Other
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729),IE,8.0,Windows,Vista,Other,False,False,False,True,False,PC / Windows Vista / IE 8.0
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729),IE,8.0,Windows,Vista,Other,False,False,False,True,False,PC / Windows Vista / IE 8.0
Mozilla/4.0 (compatible; MSIE 8.
@whit3rabbit
whit3rabbit / pcap-swarm.sh
Last active May 6, 2022 16:25
Docker Swarm Packet Capture
#!/bin/bash
echo "[+] Getting docker swarm ingress network ID"
INGRESS=`sudo docker network ls | grep ingress | cut -b -10`
echo "[+] Ingress: $INGRESS"
echo "[+] Running netshoot container with tcpdump"
read -p "[?] Filename for packet capture: " OUTPUT_FILE
Had some issues installing spacy on windows. These were the steps that worked for me.
# Install cuda toolkit SDK 11.0
# https://developer.nvidia.com/cuda-11.0-download-archive
############################
# INSIDE ANACONDA TERMINAL #
############################
# Create virtual env for spacy
@whit3rabbit
whit3rabbit / bustadir.sh
Last active May 31, 2020 21:06
bustadir - Create different levels for your dir buster scans. Quickly start your webscans
#!/bin/bash
#
IP=$1
LEVEL=$2
case $LEVEL in
1)
gobuster dir -u http://$IP -w /usr/share/seclists/Discovery/Web-Content/common.txt -s '200,204,301,302,307,403,500' -t 10
@whit3rabbit
whit3rabbit / gtfobin.go
Last active May 31, 2020 03:05
GTFOBin search binaries on disk to see if user has permissions to execute and if suid is set. Provides link to GTFObin url. Returns JSON!
package main
import (
"fmt"
"os/exec"
"os/user"
"os"
"syscall"
"regexp"
)
@whit3rabbit
whit3rabbit / arp.go
Last active April 22, 2020 18:51
ARP Cache Table in Go (linux)
package main
import (
"fmt"
"strings"
"io/ioutil"
)
/*
ARP Cache Header
@whit3rabbit
whit3rabbit / findsuid.go
Last active April 22, 2020 15:04
Go - File Path walk searching for files with suid bit set
package main
import (
"fmt"
"os"
"path/filepath"
"regexp"
"syscall"
)
@whit3rabbit
whit3rabbit / gist:02c1b8648635f3552483b7f9a0b459ea
Created November 24, 2019 16:53
Golang read process/antivirus info
package main
import (
"github.com/StackExchange/wmi"
"golang.org/x/sys/windows/registry"
"log"
)
type AntivirusProcess struct {
DisplayName string