Skip to content

Instantly share code, notes, and snippets.

Oh my job, oh dear my job

Silver Bullet SilverBut

Oh my job, oh dear my job
  • Permanent student.
  • SAGA
View GitHub Profile
SilverBut /
Last active November 14, 2021 14:39
could be helpful if you want to get 61w.
#!/usr/bin/env python
# coding: utf-8
# Original camera video resolution
# If set to 4, then sampled down to 1/4 resolution to speed up
# POI is under target resolution.
# First point is top left cornor of ROI, and second one is bottom right cornor
# (0,0) is at top left cornor of the whole graph.
# Reversing CPP program is painful, especially when it contains tempalte classes
# But rename them is not a bad idea...
def rename_copy(ord_old, name_new, ord_new=None):
py_til = ida_typeinf.get_idati()
py_ti = ida_typeinf.tinfo_t()
py_ti.get_numbered_type(py_til, ord_old)
if not ord_new:
ord_new = ida_typeinf.alloc_type_ordinal(py_til)
print(py_ti.set_numbered_type(py_til, ord_new, 4, name_new))



SilverBut /
Last active April 29, 2018 13:24
[IDA Plugin Collection] Collect some plugins I am using. #tags: reverse, IDA, IDAPython


  • Several collaborate plugins are availiable, including:
    • IDASynergy. CVS system mainly using SVN. Don't like it much.
    • collabREate. Have not fully tested. Will test it.
    • Sol[IDA]rity. Still nothing published yet.
    • YaCo. New thing in #SSTIC 2017. Not published yet. Wait till Jun. 7.
    • FIRST from Cisco which claims its ability to identifiy and recovery functions from signatures. Will test it.
    • Still searching until I found a useful one.
  • DIE claims it can enrich IDA's static analysis with dynamic data. But need to test if can be used.
SilverBut /
Last active April 29, 2018 13:29
[IDAPython Snippets] Some useful functions can be used in IDAPython to do things quickly. #tags: reverse, IDA, IDAPython
# Used to do some memcpy-like jobs
def ip_memcpy(dst, src, n):
idautils.PutDataList(dst, idautils.GetDataList(src, n, 1), 1)
SilverBut /
Last active May 1, 2017 19:24
[Manual network solution] Work for my personal network problems in mainland China. #tags: GFW, network, shadowsocks, route, vpn
SCRIPTNAME=`basename $0`
function log_err() { echo "[$SCRIPTNAME][E] $@" 1>&2; }
function log() { echo "[$SCRIPTNAME][I] $@" 1>&2; }
SilverBut /
Last active April 29, 2018 13:29
[AutoMakeFunc] Solve an IDA problem when liner-down scan can not identify functions directly attached to the current function. Only work under IDA 6.95. Now works for PowerPC. #tags: IDAPython, IDA, reverse, powerpc, ppc
import logging
logger = logging.getLogger(__name__)
lv = logging.DEBUG
map(logger.removeHandler, logger.handlers[:])
map(logger.removeFilter, logger.filters[:])
ch = logging.StreamHandler()
formatter = logging.Formatter("[%(levelname)s] %(asctime)-2s <%(funcName)s:%(lineno)s> %(message)s", "%H:%M:%S")
SilverBut / haproxy.cfg
Last active May 19, 2023 20:45
[Haproxy cfg checking Socks5] Haproxy cfg to check the Socks5 connection #tags: GFW, network, haproxy, config
View haproxy.cfg
# Example configuration for a possible web application. See the
# full configuration options online.
log local2