Skip to content

Instantly share code, notes, and snippets.

View eternaleclipse's full-sized avatar
💫
Aim for the heavens!

freakd eternaleclipse

💫
Aim for the heavens!
  • Tyexyas
  • 06:08 (UTC -05:00)
View GitHub Profile
[ 50%] Building CXX object skeleton/CMakeFiles/SkeletonPass.dir/Skeleton.cpp.o
In file included from /usr/local/include/llvm/ADT/ArrayRef.h:12,
from /usr/local/include/llvm/ADT/STLExtras.h:20,
from /usr/local/include/llvm/PassAnalysisSupport.h:25,
from /usr/local/include/llvm/Pass.h:347,
from /home/user/llvm-pass-tutorial/skeleton/Skeleton.cpp:1:
/usr/local/include/llvm/ADT/Hashing.h:127:55: error: ‘optional’ in namespace ‘std’ does not name a template type
127 | template <typename T> hash_code hash_value(const std::optional<T> &arg);
| ^~~~~~~~
/usr/local/include/llvm/ADT/Hashing.h:127:50: note: ‘std::optional’ is only available from C++17 onwards
import ctypes
import os
import sys
PROCESS_ALL_ACCESS = (0x000F0000 | 0x00100000 | 0xFFF)
def resolve_function(dll, func):
kernel32 = ctypes.windll.kernel32
kernel32.GetModuleHandleW.argtypes = [ctypes.c_wchar_p]
kernel32.GetModuleHandleW.restype = ctypes.c_void_p
@eternaleclipse
eternaleclipse / ida_gspread.py
Last active November 9, 2019 02:15
IDA Pro upload functions to Google Spreadsheet
# Go to https://console.developers.google.com/apis/api/sheets.googleapis.com/
# Grant access to Spreadsheet API, Create credentials for Service Account
# as Editor, download keyfile JSON
import gspread
import datetime
import time
from oauth2client.service_account import ServiceAccountCredentials
from idaapi import *
from idc import *
@eternaleclipse
eternaleclipse / game.py
Last active October 19, 2019 23:15
Pygame acceleration experiment
import pygame, sys, time, numpy as np
from pygame.locals import *
BACKGROUND_COLOR = (255, 255, 255)
CAR_COLOR = (0, 0, 255)
SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600
class Car(object):
def __init__(self):
self.velocity = np.zeros(2)
@eternaleclipse
eternaleclipse / sdarot-dl2.py
Last active October 26, 2021 01:24
Sdarot.TV Downloader
import sys
import re
import time
import json
import requests
base_url = "https://sdarot.rocks"
show_url = "https://sdarot.rocks/watch/3859-%D7%94%D7%9B%D7%9C%D7%94-%D7%9E%D7%90%D7%99%D7%A1%D7%98%D7%A0%D7%91%D7%95%D7%9C-istanbullu-gelin/"
SLEEP_BETWEEN_REQS = 0.5
@eternaleclipse
eternaleclipse / main.rs
Last active March 3, 2019 20:41
Simple multi-threaded Rust port scanner
#[macro_use]
extern crate clap;
use std::net::{TcpStream, SocketAddr};
use std::time::Duration;
use std::thread;
use std::sync::{Arc, Mutex, mpsc::channel};
use clap::{App, Arg};
enum Job {