Exemple #1
0
def get_dbg_fname(dbgdata):
    """
        Parse the MSIC header using construct.
        Parameter:
            * (bytes) dbgdata, the raw bytes header 
        Return :
            * (str) the .dbg filename
    """
    from pdbparse.dbgold import IMAGE_DEBUG_MISC
    dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata)
    raw_filename = dbgstruct.Strings[0].decode('ascii')
    return ntpath.basename(raw_filename)
Exemple #2
0
def get_dbg_fname(dbgdata):
    """
        Parse the MSIC header using construct.
        Parameter:
            * (bytes) dbgdata, the raw bytes header 
        Return :
            * (str) the .dbg filename
    """
    from pdbparse.dbgold import IMAGE_DEBUG_MISC
    dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata)
    raw_filename = dbgstruct.Strings[0].decode('ascii')
    return ntpath.basename(raw_filename)
Exemple #3
0
def get_dbg_fname(dbgdata):
    from pdbparse.dbgold import IMAGE_DEBUG_MISC
    dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata)
    
    return dbgstruct.Strings[0].split('\\')[-1]
Exemple #4
0
def get_dbg_fname(dbgdata):
    from pdbparse.dbgold import IMAGE_DEBUG_MISC
    dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata)

    return dbgstruct.Strings[0].split('\\')[-1]
Exemple #5
0
def get_dbg_fname(dbgdata):
    from pdbparse.dbgold import IMAGE_DEBUG_MISC
    dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata)
    return ntpath.basename(dbgstruct.Strings[0])
Exemple #6
0
def get_dbg_fname(dbgdata):
    from pdbparse.dbgold import IMAGE_DEBUG_MISC
    dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata)
    return ntpath.basename(dbgstruct.Strings[0])