def disasm(trace, shell):
    d = dis.i386Disasm()
    i = 0
    count = 0
    while count < len(shell):
        try:
            op = trace.makeOpcode(shell, offset=i, va=0)
            print "%14s:\t %s" %(shell[count:count+op.size].encode('hex'), op)
            #print "COUNT: ", count
            #print "OP SIZE: ", op.size
            i += 1
            count += op.size
        except:
            print "ERROR: ", sys.exc_info()[1]
            i += 1
            count += 1
            continue
Example #2
0
def disasm(trace, shell):
    d = dis.i386Disasm()
    i = 0
    count = 0
    while count < len(shell):
        try:
            op = trace.makeOpcode(shell, offset=i, va=0)
            print "%14s:\t %s" % (shell[count:count + op.size].encode('hex'),
                                  op)
            #print "COUNT: ", count
            #print "OP SIZE: ", op.size
            i += 1
            count += op.size
        except:
            print "ERROR: ", sys.exc_info()[1]
            i += 1
            count += 1
            continue
Example #3
0
def disasm(t,a,s,is_function=False):
    dis = i386Disasm()