Skip to content

Instantly share code, notes, and snippets.

View ximerus's full-sized avatar

Sergey Khariuk ximerus

View GitHub Profile
@ximerus
ximerus / MemoryPatchIDAPro.py
Created July 29, 2014 17:53
MemoryPatchIDAPro
import idaapi
def write(address, size):
buff = '\x00' * size
return idaapi.dbg_write_memory(address, buff)
if __name__ == '__main__':
address = idaapi.get_screen_ea()
size = 256
print '[*] write memory'
@ximerus
ximerus / epel7.py
Last active August 29, 2015 14:03
Checker of release EPEL7 repo for CentOS 7
# Import urllibs for read data from web-site
import urllib
import urllib2
# Import smtplib for the actual sending function
import smtplib
# Import the email modules we'll need
from email.mime.text import MIMEText
# Import time lib for sleep
import time
@ximerus
ximerus / backup_ast-1.0.sh
Created June 4, 2014 09:42
Asterisk backup script
#!/bin/bash
# ============================================================================
# backup_ast -- A utility for backing up asterisk configuration files #
# #
# Version: 1.0 #
# Written By: Mike Boylan #
# Robert Morris University #
# boylan@rmu.edu #
# ============================================================================
#pragma comment(linker, "/OPT:NOREF") // this tells the linker to keep the machine code of unreferenced source code
#pragma optimize("", off) // disable all optimizations in order for our stub to run smootly, though im not sure if it really helps, i just saw some guy doing it this way lolz <span class="wp-smiley emoji emoji-smile" title=":)">:)</span>
#include <windows.h> // familiar?
#include <stdio.h> // i wonder what this might be, hmm...
// gets the first sections header offset
#define SECHDROFFSET(a) ((LPVOID) ( (LPBYTE) a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
sizeof(IMAGE_NT_HEADERS)))
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select