Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
‌‌

Duncan Ogilvie mrexodia

❤️
‌‌
View GitHub Profile
@mrexodia
mrexodia / IntelPIN.cmake
Last active Mar 18, 2021
IntelPIN.cmake
View IntelPIN.cmake
# Website: https://software.intel.com/content/www/us/en/develop/articles/pin-a-binary-instrumentation-tool-downloads.html
# License: https://software.intel.com/sites/landingpage/pintool/pinlicense.txt
# This snippet: https://gist.github.com/mrexodia/f61fead0108603d04b2ca0ab045e0952
# TODO: lunix support
# Thanks to Francesco for showing me this method
CPMAddPackage(
NAME IntelPIN
VERSION 3.18
URL https://software.intel.com/sites/landingpage/pintool/downloads/pin-3.18-98332-gaebd7b1e6-msvc-windows.zip
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 May 3, 2021
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