Skip to content

Instantly share code, notes, and snippets.

@lukeswitz
lukeswitz / PiDriver.sh
Created March 16, 2024 12:58
PiWardriver: A script to dynamically start kismet
#!/bin/bash
# Adapted from github.com/bksieski/WardrivingScript_pi4_rig
# Wait 30s for interfaces and GPS to init
sleep 30
# Function to enable monitor mode on network adapters
enable_monitor_mode() {
echo "Enabling monitor mode on ${interfaces[@]}..."
for interface in "${interfaces[@]}"; do
@lukeswitz
lukeswitz / PiDriver.md
Last active April 13, 2024 17:28
Pi Wardriver Configuration

Automated Raspberry Pi Wardriving Rig Setup Guide

This guide walks through the setup of an automated wardriving system using a Raspberry Pi.

Prerequisites

  • Raspberry Pi (3/4 recommended) running Raspberry Pi OS Lite (32-bit).
  • USB WLAN adapter(s) compatible with Linux.
  • GPS module or compatible USB device.
@lukeswitz
lukeswitz / TrendsWordlist.py
Created March 4, 2024 21:52
Fetch the latest top ten trending words from Wikipedia Top 25
import requests
from bs4 import BeautifulSoup
import subprocess
def fetch_trending_topics():
url = "https://en.wikipedia.org/wiki/Wikipedia:Top_25_Report"
response = requests.get(url)
soup = BeautifulSoup(response.content, 'html.parser')
topics = []
for item in soup.select("h3 + ul")[0].select("li"):
@lukeswitz
lukeswitz / NIDSnort-macOS.md
Last active February 18, 2024 14:02
NIDS using Snort v3 for Linux (Debian)

Snort 3 Installation and Configuration Guide for macOS

This guide outlines the process of installing and configuring Snort 3, an open-source Network Intrusion Detection System (NIDS), on macOS using Homebrew.

Install Homebrew

If you haven't already installed Homebrew, run the following command in the terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@lukeswitz
lukeswitz / gitSecure.py
Created January 27, 2024 14:06
Git DevSecOps Scanner
"""
GitHub Repository Security Scanner
-----------------------------------
This script scans a specified GitHub repository for potential sensitive information and security vulnerabilities using a predefined list of Git dorks. It is intended to be a part of DevSecOps practices to prevent sensitive data leaks.
The script requires a GitHub Access Token and a Discord Webhook URL to operate. It sends alerts to the specified Discord channel when sensitive information is found in any of the repository's files.
Dependencies:
- PyGithub: A Python client for the GitHub API
@lukeswitz
lukeswitz / CyberRecon.sh
Created December 22, 2023 14:36
Automated Recon & Reporting via Webhook
#!/bin/bash
##########################################################
# CyberRecon.sh
# Comprehensive Cybersecurity Reconnaissance Script
#
# Description:
# This script performs a detailed cybersecurity reconnaissance and scanning
# for a given target domain. It integrates various tools to enumerate
# subdomains, analyze DNS, scan web endpoints, identify vulnerabilities,
@lukeswitz
lukeswitz / server-secure.sh
Created December 5, 2023 21:50
Linux Server Secure
#!/bin/bash
# Create a sudo user
read -p "Create a new sudo user (Allows for administrative actions with accountability)? (y/n): " create_user
if [ "$create_user" == "y" ]; then
read -p "Enter the username for the new sudo user: " username
adduser "$username"
usermod -aG sudo "$username"
fi
@lukeswitz
lukeswitz / inject-detect.py
Last active June 21, 2023 07:30
InjectDetect
#!/usr/bin/env python3
import requests
from urllib.parse import urljoin
from bs4 import BeautifulSoup
import logging
import time
import csv
# Set up logging
@lukeswitz
lukeswitz / createiCalShiftEvent.php
Last active October 11, 2017 22:43
Create iCal Event For Shift: Designed to integrate with the Employee Scheduler plugin for Wordpress
<?php
/*This will use the metadata from a shift page created using Employee Scheduler (Shiftee) and create an iCal link with event*/
// Add a custom endpoint "calendar"
function add_calendar_feed()
{
add_feed('calendar', 'export_ics');
// Only uncomment these 2 lines the first time you load this script, to update WP rewrite rules