Skip to content

Instantly share code, notes, and snippets.

View cyberDrake's full-sized avatar

Curtis Blackburn cyberDrake

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cyberDrake on github.
  • I am cyberdrake (https://keybase.io/cyberdrake) on keybase.
  • I have a public key whose fingerprint is E95B 048D 7656 51E5 CECB 1914 A45A 7B6B A38A CCE1

To claim this, I am signing this object:

use std::net::UdpSocket;
use std::env;
//use std::io::BufReader;
use std::fmt;
use std::default::Default;
fn get_octet(buf: &[u8]) -> u16 {
let mut res: u16;
res = match (buf[0] as char).to_digit(16) {
@cyberDrake
cyberDrake / dns_packet.rs
Last active July 30, 2017 20:04
playing around with a DNS packet definition for libpnet
//! DNS packet abstraction
use packet::Packet;
use pnet_macros::types::*;
/// Represents an UDP Packet
#[packet]
pub struct Dns {
id: u16be,
@cyberDrake
cyberDrake / NatualScrollingInWindows.ps1
Created April 19, 2019 20:05 — forked from 101v/NatualScrollingInWindows.ps1
Powershell script to enable natural scrolling in Windows
# View registry settings
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
# Change registry settings
# Reverse mouse wheel scroll FlipFlopWheel = 1
# Normal mouse wheel scroll FlipFlopWheel = 0
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
# Restore default scroll direction
# Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 1 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 0 }