Skip to content

Instantly share code, notes, and snippets.

View lukeswitz's full-sized avatar

Luke Switzer lukeswitz

View GitHub Profile
@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
@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 / 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 / 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 / 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 / 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 / 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 / PiDriver.md
Last active September 3, 2024 15:29
Pi Wardriver Configuration
@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 / BugBountyRSSFeed.xml
Created June 3, 2024 10:33
Sourced from g0ldencybersec
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Bug Bounty Blog List</title>
<updated>2024-06-03T12:00:00Z</updated>
<author>
<name>g0ldencybersec</name>
</author>
<id>https://raw.githubusercontent.com/g0ldencybersec/bugbountybloglist/main/blogs.txt</id>
<link href="https://raw.githubusercontent.com/g0ldencybersec/bugbountybloglist/main/blogs.txt" rel="self"/>