Skip to content

Instantly share code, notes, and snippets.

@IgorYunusov
IgorYunusov / clrHosting_v4.0.cpp
Created October 14, 2023 12:15 — forked from aaaddress1/clrHosting_v4.0.cpp
CLR Hosting: running dotNet binary in C/C++ & rewrite from .NET(4+) COM interface
// CLR Hosting, by aaaddress1@chroot.org
//
// it's a new edition rewrite for .NET(4+) COM interface
// original from github.com/etormadiv/HostingCLR
// & blog.xpnsec.com/hiding-your-dotnet-etw
//
// this PoC supports the following .NET entry:
// >>>> static void Main(string[] args);
//
#include <stdio.h>
@IgorYunusov
IgorYunusov / Limit.hpp
Created October 2, 2022 14:29 — forked from luizmb/Limit.hpp
Simple C++ functional language query interface (LINQ-alike) prototype
#ifndef Limit_hpp
#define Limit_hpp
#include "Linq.hpp"
template<typename T>
class Limit {
private:
unsigned long limit = 0;
@IgorYunusov
IgorYunusov / WoW64_call.cpp
Created February 8, 2022 13:22 — forked from Cr4sh/WoW64_call.cpp
WoW64 Heaven's Gate
#include "stdafx.h"
#define DB(_val_) __asm __emit (_val_)
#define INVALID_SYSCALL (DWORD)(-1)
// code selectors
#define CS_32 0x23
#define CS_64 0x33
#define WIN32_LEAN_AND_MEAN
#define WIN32_NO_STATUS
#include <windows.h>
#undef WIN32_NO_STATUS
#include <string>
#include <sstream>
#include <iomanip>
#include <algorithm>
@IgorYunusov
IgorYunusov / SyscallStub.asm
Created January 21, 2021 11:59 — forked from HoShiMin/SyscallStub.asm
Syscalls caller for NativeAPI functions
; You should to define the 'AMD64' MASM-preprocessor definition
; at the 'General' MASM properties page in the project properties (for the x64 only).
IFNDEF AMD64
.686P
.XMM
.MODEL FLAT, STDCALL
ENDIF
.CODE
@IgorYunusov
IgorYunusov / gist:27ccb980ed2e0d2766d439fd89c8dff0
Created June 20, 2020 07:27 — forked from lontivero/gist:593fc51f1208555112e0
Generates Markdown from VS XML documentation file
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace GithubWikiDoc
{
@IgorYunusov
IgorYunusov / testlua.c
Created March 10, 2019 18:51 — forked from kpmiller/testlua.c
C program to show execution from luaL_loadbuffer, tested with lua 5.3.1
//compiling on OSX 10.11
//export LUA=path/to/lua-5.3.1/src
//cc -I $LUA -L $LUA -l lua -o testlua testlua.c
#include <stdio.h>
#include <string.h>
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
char *luacode =
@IgorYunusov
IgorYunusov / OnUpdate_Throttle_Example.lua
Created July 24, 2018 12:52 — forked from Choonster/OnUpdate_Throttle_Example.lua
An example of OnUpdate throttling in WoW.
local frame = CreateFrame("Frame")
-- The minimum number of seconds between each update
local ONUPDATE_INTERVAL = 0.1
-- The number of seconds since the last update
local TimeSinceLastUpdate = 0
frame:SetScript("OnUpdate", function(self, elapsed)
TimeSinceLastUpdate = TimeSinceLastUpdate + elapsed
if TimeSinceLastUpdate >= ONUPDATE_INTERVAL then
@IgorYunusov
IgorYunusov / Readme.md
Created June 13, 2018 06:00 — forked from derofim/Readme.md
OpenCV 3.2.0 Features2D + Homography to find a known object

Description

Features2D + Homography to find a known object http://docs.opencv.org/3.2.0/d9/d97/tutorial_table_of_content_features2d.html ported to OpenCV 3.2.0

Setup

  1. git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv_contrib.git
  2. git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv.git
  3. Create bat script (Windows):
@echo off
REM git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv_contrib.git
REM OR Download https://github.com/opencv/opencv_contrib/archive/3.2.0.zip
@IgorYunusov
IgorYunusov / LuaPOC.cs
Created June 6, 2018 11:46 — forked from Naravia/LuaPOC.cs
FrameScript__Execute example by Saridormi @ Ownedcore
using System;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Binarysharp.MemoryManagement;
using Binarysharp.MemoryManagement.Memory;
namespace LuaExecPOC
{
class Program