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
Block or report user

Report or block SilverBut

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# 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 Apr 29, 2018
[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 Apr 29, 2018
[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
[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 Apr 29, 2018
[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 Sep 19, 2019
[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
You can’t perform that action at this time.