Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Weber Tsai taida957789

💭
I may be slow to respond.
View GitHub Profile
View Auto Post to Google form
#-*- coding: utf-8 -*-
import os,sys
import http
import re
import ast
import json
import datetime
import time
View gist:647147d2b069bb4f8e37
#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 )
View gist:db1cb9796c02ce1a4c9a
/* 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 */
View gist:10609f4d3c8bb5375aed
/* 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 */
View s.py
import socket
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
listen_addr = ("", 3386)
UDPSock.bind(listen_addr)
ips = []
while True:
View gist:93e10b34e617a9b954fe
[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)
View 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
View 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
View hello.asm
global _start
section .text:
_start:
call main
db 'Hello World', 00
main:
xor rax, rax
View getOpcodes.py
import idautils
from idaapi import *
import re
sc = idautils.Strings()
packets = {}
for s in sc:
value = str(s)