Exemplo n.º 1
0
                        continue
                    todo.append((mdis, i, d.name.offset))

        if args.funcswatchdog is not None and args.funcswatchdog <= 0:
            finish = True

    if args.try_disasm_all:
        for a, b in done_interval.intervals:
            if b in done:
                continue
            log.debug('add func %s' % hex(b))
            todo.append((mdis, None, b))


# Generate dotty graph
all_blocs = AsmCFG()
for blocs in all_funcs_blocs.values():
    all_blocs += blocs


log.info('generate graph file')
open('graph_execflow.dot', 'w').write(all_blocs.dot(offset=True))

log.info('generate intervals')

all_lines = []
total_l = 0

print done_interval
if args.image:
    log.info('build img')
Exemplo n.º 2
0
                        continue
                    todo.append((mdis, i, d.name.offset))

        if args.funcswatchdog is not None and args.funcswatchdog <= 0:
            finish = True

    if args.try_disasm_all:
        for a, b in done_interval.intervals:
            if b in done:
                continue
            log.debug('add func %s' % hex(b))
            todo.append((mdis, None, b))


# Generate dotty graph
all_blocs = AsmCFG()
for blocs in all_funcs_blocs.values():
    all_blocs += blocs


log.info('generate graph file')
open('graph_execflow.dot', 'w').write(all_blocs.dot(label=True))

log.info('generate intervals')

all_lines = []
total_l = 0

print done_interval
if args.image:
    log.info('build img')
Exemplo n.º 3
0
                        continue
                    todo.append((mdis, i, d.name.offset))

        if args.funcswatchdog is not None and args.funcswatchdog <= 0:
            finish = True

    if args.try_disasm_all:
        for a, b in done_interval.intervals:
            if b in done:
                continue
            log.debug("add func %s" % hex(b))
            todo.append((mdis, None, b))


# Generate dotty graph
all_blocs = AsmCFG()
for blocs in all_funcs_blocs.values():
    all_blocs += blocs


log.info("generate graph file")
open("graph_execflow.dot", "w").write(all_blocs.dot(offset=True))

log.info("generate intervals")

all_lines = []
total_l = 0

print done_interval
if args.image:
    log.info("build img")