Skip to content

Instantly share code, notes, and snippets.

View taida957789's full-sized avatar

Weber Tsai taida957789

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="FileSaver.min.js"></script>
@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)
@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 / 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
[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)
import socket
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
listen_addr = ("", 3386)
UDPSock.bind(listen_addr)
ips = []
while True:
/* 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 */
#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 )