Exemple #1
0
    def invoke(self, arg, from_tty):
        if arg == '':
            screen = true
        else:
            screen = false

        shadow.dump_all(filename = arg, \
                dump_to_screen = screen, proc = self.proc)
Exemple #2
0
    def invoke(self, arg, from_tty):
        if arg == '':
            screen = true
        else:
            screen = false

        shadow.dump_all(filename = arg, \
                dump_to_screen = screen, proc = self.proc)
Exemple #3
0
    def invoke(self, arg, from_tty):
        arg = arg.split()
        if len(arg) == 0:
            path = None
        else:
            path = arg[0]

        shadow.dump_all(path=path)
Exemple #4
0
        shadow.parse(read_content_preview, config_path, do_debug_log=do_debug_log)

    elif sys.argv[1] == 'jeversion':
        shadow.version()
        shadow.firefox_version()

    elif sys.argv[1] == 'jedump':
        arg = sys.argv[2:]

        if len(arg) == 0:
            path = None
        else:
            path = arg[0]

        shadow.dump_all(path=path)

    elif sys.argv[1] == 'jechunks':
        shadow.dump_chunks()

    elif sys.argv[1] == 'jechunk':
        arg = sys.argv[2:]
        if len(arg) >= 1:
            addr = arg[0]
        else:
            print('[shadow] usage: jechunk <address>')
            print('[shadow] for example: jechunk 0x900000')
            sys.exit(1)

        if addr.startswith('0x'):
            addr = dbg.to_int(addr)
Exemple #5
0
        shadow.parse()

    elif sys.argv[1] == 'version':
        shadow.version()
        shadow.firefox_version()

    elif sys.argv[1] == 'jedump':
        arg = ''

        try:
            arg = sys.argv[2]
            screen = false
        except:
            screen = true

        shadow.dump_all(filename=arg, dump_to_screen=screen)

    elif sys.argv[1] == 'jechunks':
        shadow.dump_chunks()

    elif sys.argv[1] == 'jearenas':
        shadow.dump_arenas()

    elif sys.argv[1] == 'jeruns':
        current_runs = false
        size = 0

        try:

            alist, args = getopt.getopt(sys.argv[2:], 'cs:')
Exemple #6
0
                     config_path,
                     do_debug_log=do_debug_log)

    elif sys.argv[1] == 'jeversion':
        shadow.version()
        shadow.firefox_version()

    elif sys.argv[1] == 'jedump':
        arg = sys.argv[2:]

        if len(arg) == 0:
            path = None
        else:
            path = arg[0]

        shadow.dump_all(path=path)

    elif sys.argv[1] == 'jechunks':
        shadow.dump_chunks()

    elif sys.argv[1] == 'jechunk':
        arg = sys.argv[2:]
        if len(arg) >= 1:
            addr = arg[0]
        else:
            print('[shadow] usage: jechunk <address>')
            print('[shadow] for example: jechunk 0x900000')
            sys.exit(1)

        if addr.startswith('0x'):
            addr = dbg.to_int(addr)
Exemple #7
0
        shadow.parse()

    elif sys.argv[1] == 'version':
        shadow.version()
        shadow.firefox_version()

    elif sys.argv[1] == 'jedump':
        arg = ''

        try:
            arg = sys.argv[2]
            screen = false
        except:
            screen = true

        shadow.dump_all(filename = arg, dump_to_screen = screen)

    elif sys.argv[1] == 'jechunks':
        shadow.dump_chunks()

    elif sys.argv[1] == 'jearenas':
        shadow.dump_arenas()

    elif sys.argv[1] == 'jeruns':
        current_runs = false
        size = 0
        
        try:
    
            alist, args = getopt.getopt(sys.argv[2:], 'cs:')