Skip to content

Instantly share code, notes, and snippets.

yum-config-manager --add-repo=https://negativo17.org/repos/epel-steam.repo
yum-config-manager --add-repo=https://negativo17.org/repos/epel-multimedia.repo
yum -y install steam
@alastorid
alastorid / gettimeofday.cpp
Created October 4, 2017 16:36 — forked from fujin/gettimeofday.cpp
LD_PRELOAD gettimeofday linux speedhack
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <dlfcn.h>
#include <stdio.h>
static timeval * timezero = 0;
typedef int (*go)(timeval *tv, timezone *tz);
@alastorid
alastorid / IDA Pro Dark Theme
Created October 9, 2017 15:10
IDA Pro Dark Theme
Pointer -> https://github.com/zyantific/IDASkins
@alastorid
alastorid / Install solaar on Centos\RHEL 7
Last active December 21, 2019 02:30
Installing solaar-The Centos\RHEL 7 way
git clone [email protected]:alastorid/Solaar.git
cd Solaar
sudo pip install ./
sudo ./rules.d/install.sh
@alastorid
alastorid / diskripper.sh
Created November 24, 2017 02:15
This script rips DVD/Blu-ray using makemkvcon. Use udev to invoke this script to auto-rip when disk is inserted. Some variables such as length of string to trim in order to get the title of movie may vary depending on your environment.
#!/bin/bash
{
echo $(date)
echo ">>>Disk found"
echo ">>>Setting the title..."
title=$(makemkvcon -r info)
title=`echo "$title" | grep "DRV:0\+"`
title=${title:53}
Name: <%= name %>
Version: <%= version %>
Release: 1%{?dist}
Group: <%= group %>
Summary: <%= summary %>
License: <%= license %>
Packager: <%= author %> <<%= email %>>
Requires: <%= requires %>
BuildRequires: <%= build_requires %>
URL: <%= url %>
@alastorid
alastorid / a.asm
Created February 21, 2018 14:44
tiny win32 nasm
; a.asm
BITS 32
GLOBAL main
SEGMENT .text
main:
ret
@alastorid
alastorid / easy_asm_with_import.asm
Created February 22, 2018 02:41
a win32 program that can get arguments and return exit status . Assemble with nasm and link with alink.
USE32
extern __getmainargs
extern _exit
extern atoi
extern printf
extern puts
extern CommandLineToArgvW
extern GetCommandLineA
#!/usr/bin/python
import re
import idautils
import idc
import idaapi
import ida_nalt
pfMmGetSystemRoutineAddress=LocByName("MmGetSystemRoutineAddress")
def PrevMnem(ea, mnem, count):
mcount=0;
@alastorid
alastorid / gist:4208a7d83aaf2ae2171ef9c7b5146611
Created June 10, 2018 17:17
simple call redirection x86asm (but no error handling)
push ProcName
push LibFileName
call LoadLibraryA
push eax
call GetProcAddress
jmp eax