Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
‌‌

Duncan Ogilvie mrexodia

❤️
‌‌
View GitHub Profile
View regexmagic.h
// License: public domain/CC0
#include <regex>
#include <string>
#include <cstdio>
#include <utility>
#include <climits>
#include <cinttypes>
bool parseNumber(const char* str, uint64_t& result, int radix = 0)
{
View capslayer.ahk
; Source: https://www.autohotkey.com/boards/viewtopic.php?p=131059#p131059
CapsLock::
; KeyWait, CapsLock ; wait for Capslock to be released
; KeyWait, CapsLock, D T0.2 ; and pressed again within 0.2 seconds
; if ErrorLevel
; return
; else if (A_PriorKey = "CapsLock")
; SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On"
return
@mrexodia
mrexodia / reverseshell.cpp
Last active Nov 14, 2019
Reverse shell winapi c++ windows cmd. Useful for debugging production environments.
View reverseshell.cpp
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
/*
THIS IS FOR DEBUGGING ONLY, DO NOT RUN THIS CODE IN PRODUCTION UNDER ANY CIRCUMSTANCE!
https://github.com/dev-frog/C-Reverse-Shell/blob/master/re.cpp
https://github.com/tudorthe1ntruder/reverse-shell-poc/blob/master/rs.c
https://eternallybored.org/misc/netcat/
View Fun.hs
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE FlexibleInstances #-}
import Data.List
import Control.Monad.State
data Boool = Truue | Faalse
deriving (Show)
data Shape = Circle Float | Rectangle Float Float
@mrexodia
mrexodia / inject.js
Created Jun 18, 2019
Disable LastPass for FFXIV OTP Form
View inject.js
var otppw = document.getElementById("otppw");
if(otppw !== null) {
otppw.type = "text";
otppw.setAttribute("data-lpignore", "true");
}
View ConsoleColor.h
//Copyleft Vincent Godin
//https://www.codeproject.com/Articles/16431/Add-color-to-your-std-cout
#pragma once
#include <iostream>
#ifdef _WIN32
#include <windows.h>
inline void setAttributes(unsigned int attributes)
@mrexodia
mrexodia / Deck - True Draco Demise.txt
Created Oct 8, 2018
Deck - True Draco Demise.txt
View Deck - True Draco Demise.txt
MAINBOARD
3 Amano-Iwato
3 Card of Demise
3 Disciples of the True Dracophoenix
3 Dragonic Diagram
3 True Draco Apocalypse
3 True Draco Heritage
2 Anti-Spell Fragrance
2 Cosmic Cyclone
2 Ignis Heat, the True Dracowarrior
@mrexodia
mrexodia / build-git.sh
Last active Feb 5, 2018 — forked from pescobar/build-git.sh
compile git with openssl instead of gnutls (Ubuntu 14.04) https://askubuntu.com/a/1003308/774721
View build-git.sh
#!/usr/bin/env bash
# Clear out all previous attempts
rm -rf "/tmp/source-git/"
# Add PPA for latest git
sudo add-apt-repository --enable-source ppa:git-core/ppa
sudo apt-get update
# Get the dependencies for git, then get openssl
View UnityCli.cs
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Diagnostics;
using System.Text.RegularExpressions;
namespace UnityCli
{
public static class Program
@mrexodia
mrexodia / analysis.md
Last active Jul 12, 2017
The Legend of Zelda: Breath of the Wild CEMU 1.8.0b [Multi-Lang] - HZolomon malware analysis
You can’t perform that action at this time.