Skip to content

Instantly share code, notes, and snippets.

View Wind010's full-sized avatar

Jeff Tong Wind010

View GitHub Profile
@Wind010
Wind010 / hc_3080_benchmark.txt
Last active October 12, 2023 21:17
Hashcat benchmark - eVGA 3080 FTW; Ryzen 3700X; MSI 570X Gaming Plus - 32GB DDR4
Hashcat Version: 6.2.6
NVIDIA DRIVER Version: 537.58
CUDA Version 12.2.140
GPU: eVGA 3080 FTW
CPU: Ryzen 3700X
MOBO: MSI 570X Gaming Plus
RAM: 32GB DDR4
@Wind010
Wind010 / CompareObjects.ps1
Created September 28, 2023 01:05
Powershell function to compare property values of two PSObjects that contain only primitive type properties (non-nested).
# Function to compare property values of two PSObjects with wrapper around Compare-Object.
# Usage Compare-Objects <reference_object> <diff_object> <array_of_relevant_properties>
# The `strict` parameter is relevant if you want to compare integer to floating point number strictly.
# The `explicit` parameter is default to $true to see value by value difference.
function Compare-Objects {
param (
[Parameter(Mandatory=$true)]
[PSObject]$obj1,
[Parameter(Mandatory=$true)]
@Wind010
Wind010 / GoogleDorking.md
Last active August 24, 2023 02:07 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@Wind010
Wind010 / api_key_checker.py
Created August 21, 2023 05:47
Python script to check if OpenAI API Key is valid.
# USAGE: api_key_checker.py --keys <API_KEY>
# Or populate list of keys in keys list below.
import argparse
import openai
keys = [
]
@Wind010
Wind010 / export_vars.sh
Created July 28, 2023 01:12
Bash script that parses a local.settings.json to export the properties as environment variables.
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <json_file>"
exit 1
fi
if [ ! -f "$1" ]; then
echo "Error: JSON file '$1' not found."
exit 1
@Wind010
Wind010 / potfile_hex_to_ascii.ps1
Created June 20, 2023 02:17
Script to create a new file with ASCII SSIDs/ESSIDs from Hashcat potfile.
# Script to create a new file with ASCII SSIDs/ESSIDs from Hashcat potfile.
# Usage .\potfile_hex_to_ascii.ps1 hashcat.potfile
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$false)]
[string]
$potFilePath
)
Get-Content $filePath | ForEach-Object {
@Wind010
Wind010 / backup_pwnagotchi.ps1
Last active May 9, 2024 09:03
Powershell scripts to backup and restore a pwnagotchi
# Script to backup your pwnagotchi.
# Usage:
# backup_pwnagotchi.ps1 <ip_address_of_pwnagotchi>
# The <ip_address_of_pwnagotchi> should be the static ip address set previously (10.0.0.2).
# Can setup SSH keys to bypass password prompt for SCP.
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$false)]
[string]
@Wind010
Wind010 / azure-pipelines.yml
Created May 13, 2023 00:23 — forked from igoravl/azure-pipelines.yml
Whitelist build agent on demand when pushing to ACR with firewall enabled
trigger:
- master
resources:
- repo: self
variables:
azureSubscription: '<azure-subscription>'
dockerRegistryServiceConnection: '<service-connection>'
imageRepository: '<repository-name>'
from typing import AsyncIterable, List
import aiohttp
import asyncio
import platform
import time
import nest_asyncio
#__import__('IPython').embed()
@Wind010
Wind010 / jwt.ps1
Created May 4, 2023 02:50 — forked from gitfvb/jwt.ps1
create a standard jwt token in PowerShell
<#
based on this example from: https://jwt.io/
https://stackoverflow.com/questions/30246497/using-statement-for-base64urlencode
https://medium.com/@nikitafed9292/net-base64-decoding-workaround-82b797162b6e
https://blog.angular-university.io/angular-jwt/
https://gist.github.com/kucukkanat/1ef77db8120323db2b89087735ef8a5d
#>
################################################