Skip to content

Instantly share code, notes, and snippets.

View Surfndez's full-sized avatar
🥳
I may be slow to respond.

Dez Surfndez

🥳
I may be slow to respond.
View GitHub Profile
@r15ch13
r15ch13 / convertfrom-subghzraw.ps1
Last active March 3, 2026 21:31
Convert Flipper SubGhz RAW Files to CSV
# Converts Flipper SubGhz RAW Files to PSCustomObject[]
function ConvertFrom-SubGhzRAW {
param(
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)]
[String] $Path
)
process {
$data = Get-Content $Path
if(!$data.Contains("Filetype: Flipper SubGhz RAW File")) {
@r15ch13
r15ch13 / iommu.sh
Last active March 3, 2026 21:32
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@neggles
neggles / New-GPUPDriverPackage.ps1
Last active March 2, 2026 11:40
Hyper-V GPU Virtualization
<#
.SYNOPSIS
Create a GPU-P Guest driver package.
.DESCRIPTION
Gathers the necessary files for a GPU-P enabled Windows guest to run.
.EXAMPLE
New-GPUPDriverPackage -DestinationPath '.'
.EXAMPLE
New-GPUPDriverPackage -Filter 'nvidia' -DestinationPath '.'
.INPUTS
@mikeisted
mikeisted / image.cpp
Last active October 12, 2021 03:38
Modified librealsense file to compile for Jetson TX2 and D435 depth camera. File location is librealsense/src/image.cpp
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#define _USE_MATH_DEFINES
#include <cmath>
#include "image.h"
//#include "../include/librealsense2/rsutil.h" // For projection/deprojection logic
#ifdef __SSSE3__
#include <tmmintrin.h> // For SSE3 intrinsic used in unpack_yuy2_sse
@bgulla
bgulla / honeypot_counts.txt
Last active February 16, 2024 17:31
Passwords attempted over a 5-day period on a PORT 22 ssh honeypot.
204 password
193 123456
144 admin
125 support
116 123
114 1234
105 default
99 12345
97 1
84 ubnt
@jgrahamc
jgrahamc / pwnd.js
Created February 24, 2018 16:36
Cloudflare Workers that adds an "Cf-Password-Pwnd" header to a POST request indicating whether the 'password' field appears in Troy Hunt's database of pwned passwords.
addEventListener('fetch', event => {
event.respondWith(fetchAndCheckPassword(event.request))
})
async function fetchAndCheckPassword(req) {
if (req.method == "POST") {
try {
const post = await req.formData();
const pwd = post.get('password')
const enc = new TextEncoder("utf-8").encode(pwd)
@Cr4sh
Cr4sh / DmaHvBackdoor.c
Last active May 24, 2025 00:25
Hyper-V backdoor for UEFI
/*
*********************************************************************
Part of UEFI DXE driver code that injects Hyper-V VM exit handler
backdoor into the Device Guard enabled Windows 10 Enterprise.
Execution starts from new_ExitBootServices() -- a hook handler
for EFI_BOOT_SERVICES.ExitBootServices() which being called by
winload!OslFwpKernelSetupPhase1(). After DXE phase exit winload.efi
transfers exeution to previously loaded Hyper-V kernel (hvix64.sys)
anonymous
anonymous / Infomark imw c910w firmware.md
Created July 9, 2017 05:00
Infomark imw c910w firmware

File: Download Infomark imw c910w firmwareimw-c910w hack imw-c910w unlock hack clear modem free internet imw-c910w manual imw-c910w firmware update imw-c910w default password infomark imw-c900w imw-c910w reset   FCC IDENTIFIER: YCO-IMW-C910W. Name of Grantee: Infomark Co., Ltd. Equipment Class: Licensed Non-Broadcast Station Transmitter. Notes: WiMAX & WiFi 12 Dec 2010 Firmware Version : 1.9.9.4 Hardware Version : R051.2 Device Name : IMW-C615W Device Manufacturer : INFOMARK (infomark.co.kr This is the Device Update screen from the Clear IMW-C910W router. Spot Current Device Software Version Check for Updates CHECK Update Firmware From WiMAX & WiFi Dual CPE user manual details for FCC ID YCO-IMW-C910W made by Infomark Co., Ltd.. Document Includes Users Manual 0

@flungo
flungo / lsiommu
Created March 10, 2017 23:59
List the devices and their IOMMU groups.
#!/bin/bash
for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$psFileFullPath = Join-Path $toolsDir "ps1crash.ps1"
Install-BinFile `
-Name ps1crash `
-Path "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" `
-Command "-NoProfile -ExecutionPolicy unrestricted -Command `"&'$psFileFullPath' %*`""