Skip to content

Instantly share code, notes, and snippets.

View taida957789's full-sized avatar

Weber Tsai taida957789

View GitHub Profile
@taida957789
taida957789 / Auto Post to Google form
Created April 18, 2014 10:58
Auto Post to Google form
#-*- coding: utf-8 -*-
import os,sys
import http
import re
import ast
import json
import datetime
import time
#include <iostream>
#include <iomanip>
using namespace std;
#include "SparseMatrix.h"
int compare( const int x, const int y )
{
if( x < y )
return -1;
else if( x == y )
/* recursive subdivision of triangle to form Sierpinski gasket */
/* number of recursive steps given on command line */
#include<time.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
/* initial triangle */
/* recursive subdivision of triangle to form Sierpinski gasket */
/* number of recursive steps given on command line */
#include<time.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
/* initial triangle */
import socket
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
listen_addr = ("", 3386)
UDPSock.bind(listen_addr)
ips = []
while True:
[ENABLE]
Alloc(StatChange,1024)
Alloc(_str,4)
Alloc(_dex,4)
Alloc(_int,4)
Alloc(_luk,4)
Alloc(_hp,4)
Alloc(_maxhp,4)
Alloc(_mp,4)
Alloc(_maxmp,4)
@taida957789
taida957789 / XDD.asm
Created August 21, 2015 01:46
XDD.asm
.text:00406FCF loc_406FCF: ; CODE XREF: sub_406E20+186j
.text:00406FCF lea eax, [ebp+NumberOfBytesWritten]
.text:00406FD2 push eax ; lpNumberOfBytesWritten
.text:00406FD3 push [ebp+dwSize] ; nSize
.text:00406FD6 push [ebp+lpBuffer] ; lpBuffer
.text:00406FD9 push esi ; lpBaseAddress
.text:00406FDA push ebx ; hProcess
.text:00406FDB call ds:WriteProcessMemory
.text:00406FE1 test eax, eax
.text:00406FE3 jnz short loc_40701C
@taida957789
taida957789 / XDD.asm
Created August 21, 2015 01:46
XDD.asm
.text:00406FCF loc_406FCF: ; CODE XREF: sub_406E20+186j
.text:00406FCF lea eax, [ebp+NumberOfBytesWritten]
.text:00406FD2 push eax ; lpNumberOfBytesWritten
.text:00406FD3 push [ebp+dwSize] ; nSize
.text:00406FD6 push [ebp+lpBuffer] ; lpBuffer
.text:00406FD9 push esi ; lpBaseAddress
.text:00406FDA push ebx ; hProcess
.text:00406FDB call ds:WriteProcessMemory
.text:00406FE1 test eax, eax
.text:00406FE3 jnz short loc_40701C
@taida957789
taida957789 / hello.asm
Created October 6, 2017 01:34
hello.asm
global _start
section .text:
_start:
call main
db 'Hello World', 00
main:
xor rax, rax
@taida957789
taida957789 / getOpcodes.py
Created January 8, 2018 04:55
getOpcodes.py
import idautils
from idaapi import *
import re
sc = idautils.Strings()
packets = {}
for s in sc:
value = str(s)