Skip to content

Instantly share code, notes, and snippets.

View Spl3en's full-sized avatar

Spl3en Spl3en

View GitHub Profile
@Spl3en
Spl3en / ERC20_ICX_Swapped.py
Last active September 21, 2018 21:53
Counts the % of ERC20-ICX locked (swapped) to the mainnet.
# coding: utf8
import requests
import certifi
import json
import sys
from bs4 import BeautifulSoup as bs
def get_data (contractaddress, topmax):
# coding=utf-8
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import datetime
import sys
import time
import threading
import traceback
import SocketServer
@Spl3en
Spl3en / rol_ror.c
Created February 21, 2017 21:11
rol / ror gcc
inline int rol (int in, int x) {
int res;
__asm__ __volatile__("rol %%eax, %%cl" :"=a"(res) :"a"(in), "c"(x));
return res;
}
inline int ror (int in, int x) {
int res;
__asm__ __volatile__("ror %%eax, %%cl" :"=a"(res) :"a"(in), "c"(x));
@Spl3en
Spl3en / ModulesFromPeb.c
Created May 9, 2015 10:09
Get current process modules from PEB
#include <windows.h>
#include <subauth.h>
#include <stdio.h>
/* Windows structures */
typedef struct _PEB_LDR_DATA {
BYTE Reserved1[8];
PVOID Reserved2[3];
LIST_ENTRY InMemoryOrderModuleList;
} PEB_LDR_DATA, *PPEB_LDR_DATA;