Skip to content

Instantly share code, notes, and snippets.

View nefarius's full-sized avatar
😇
I may be slow to respond.

Benjamin Höglinger-Stelzer nefarius

😇
I may be slow to respond.
View GitHub Profile
@debasishm89
debasishm89 / inmemory-ioctl-fuzzer-logger.py
Last active October 30, 2022 16:25
A mutation based usermode dumb IOCTL Fuzzer/Logger. This Python script hooks DeviceIoControl!Kernel32 and try to dump all I/O Control code I/O Buffer pointer, I/O buffer length. It has also the ability to fuzz I/O buffer size,content with junk.
'''
Author : Debasish Mandal
Blog :http://www.debasish.in/
Twitter : https://twitter.com/debasishm89
A mutation based user mode (ring3) dumb in-memory IOCTL Fuzzer/Logger.
This script attach it self to any given process and hooks DeviceIoControl!Kernel32 API and
try to log or fuzz all I/O Control code I/O Buffer pointer, I/O buffer length that
process sends to any Kernel driver.
@mbrownnycnyc
mbrownnycnyc / nterr.h (errors)
Created February 24, 2017 19:47
NT errors with descriptions (hooray!)
Error Code Error Code NT Status Description
0x00000000 0x00000000 NT_STATUS_OK “The operation completed successfully.”
0xC0000001 0x0000001f NT_STATUS_UNSUCCESSFUL “A device attached to the system is not functioning.”
0xC0000002 0x00000001 NT_STATUS_NOT_IMPLEMENTED “Incorrect function.”
0xC0000003 0x00000057 NT_STATUS_INVALID_INFO_CLASS “The parameter is incorrect.”
0xC0000004 0x00000018 NT_STATUS_INFO_LENGTH_MISMATCH “The program issued a command but the command length is incorrect.”
0xC0000005 0x000003e6 NT_STATUS_ACCESS_VIOLATION “Invalid access to memory location.”
0xC0000006 0x000003e7 NT_STATUS_IN_PAGE_ERROR “Error performing inpage operation.”
0xC0000007 0x000005ae NT_STATUS_PAGEFILE_QUOTA “Insufficient quota to complete the requested service.”
@Tungsteno74
Tungsteno74 / freeware_license.txt
Last active February 20, 2023 14:31
General Freeware license (EULA)
Copyright (c) <DATE>, <AUTHOR NAME>
All rights reserved.
Redistribution and use in bytecode or binary forms, without modification,
are permitted provided that the following conditions are met:
* Redistributions in bytecode or binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
@fxkraus
fxkraus / debian-install-megacli.md
Last active July 24, 2024 23:33
Install LSI MegaCli .deb package on Debian/Ubuntu

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

unzip

unzip 8-07-14_MegaCLI.zip
@scmx
scmx / using-details-summary-github.md
Last active June 24, 2024 16:56
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example

@JPMonglis
JPMonglis / gzipCompress.ps1
Last active July 26, 2024 13:50
Compress gzip with Powershell
function Compress-Data
{
<#
.Synopsis
Compresses data
.Description
Compresses data into a GZipStream
.Link
Expand-Data
.Link
@mmozeiko
mmozeiko / xbox_test.c
Last active July 13, 2024 03:54
Getting xbox controller input without xinput
// cl.exe xbox_test.c /link setupapi.lib user32.lib
#include <windows.h>
#include <setupapi.h>
#include <dbt.h>
#include <stdio.h>
/// interface
#define XBOX_MAX_CONTROLLERS 16
@DJm00n
DJm00n / gipHidGamepadDescriptor.txt
Last active May 8, 2021 02:16
xusb.sys HID Report Descriptors
//--------------------------------------------------------------------------------
// Report descriptor data in hex (length 262 bytes)
//--------------------------------------------------------------------------------
// 05010905 A101A100 09300931 150027FF FF000095 02751081 02C0A100 09330934
// 150027FF FF000095 02751081 02C00501 09321500 26FF0395 01750A81 02150025
// 00750695 01810305 01093515 0026FF03 9501750A 81021500 25007506 95018103
// 05091901 290A950A 75018102 15002500 75069501 81030501 09391501 25083500
@dogtopus
dogtopus / ds5.desc.xml
Last active June 27, 2024 08:43
DualSense descriptor
<?xml version="1.0"?>
<!--
DualSense (DS5) USB HID Report Descriptor
Documentation WIP
TODO: Extract info from hid-playstation and cross-verify with us.
-->
@Ohjurot
Ohjurot / DualSense_WASAPI_Vibration.cpp
Created November 28, 2020 18:03
Minimal demo to get the DualSense controller vibrating using the haptic feedback (Audio device channel 3 and 4)
#include <Windows.h>
#include <avrt.h>
#include <string>
#include <sstream>
#include <initguid.h>
#include <Mmdeviceapi.h>
#include <audioclient.h>