Skip to content

Instantly share code, notes, and snippets.

@Wind010
Wind010 / azure-pipelines.yaml
Last active January 12, 2024 01:48
Sample Azure Devops pipeline for .NET8+ (no pack)
#name: $(TeamProject)--$(Build.SourceBranchName)-$(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
name: SomeProject
trigger: none
pr:
branches:
include:
- "*"
@Wind010
Wind010 / brute_force_transformation.py
Last active January 15, 2024 04:04
Transformation PicoCTF reverse engineering challenge
enc_dec = [28777, 25455, 17236, 18043, 12598, 24418, 26996, 29535, 26990, 29556, 13108, 25695, 28518, 24376, 24421, 14128, 13154, 13368, 13949]
# Up to 0 to 126 because of pairs of characters.
for val in enc_dec:
for i in range(127):
if 0 <= (val - (i << 8)) <= 126:
print(chr(i) + chr(val - (i * 256)), end='', flush=True)
# OR
@Wind010
Wind010 / adv_edit_to_local_setttings.ps1
Last active December 23, 2023 01:28
Script to convert Advanced Edit format of WebApp/Azure Function to local.settings.json format.
# This works if your function app is functional :)
# func azure functionapp fetch-app-settings <function app name>
# If it isn't, use this.
# {
# "IsEncrypted": false,
# "Values": {
# "AzureWebJobsStorage": "UseDevelopmentStorage=true",
@Wind010
Wind010 / hashcat.ipynb
Created November 26, 2023 22:09
Databricks Notebook for Hashcat
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Wind010
Wind010 / flag_decoder.py
Last active November 26, 2023 00:36
Hack-the-Box: Racecar PWN challenge flag decoder
#!/usr/bin/env python3
import re
import sys
def main(payload=None):
if payload is None:
payload = input("Enter exfiltrated memory addresses: ")
raw_flag = payload.split()
@Wind010
Wind010 / hc_benchmark_4080.txt
Last active October 12, 2023 21:16
Hashcat benchmark - Zotac 4080 FTW; Ryzen 3700X; MSI 570X Gaming Plus - 32GB DDR4 hc_benchmark.txt
Hashcat Version: 6.2.6
NVIDIA DRIVER Version: 537.58
CUDA Version 12.2.140
GPU: ZOTAC 4080
CPU: Ryzen 3700X
MOBO: MSI 570X Gaming Plus
RAM: 32GB DDR4
@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 = [
]