uroboros-diversification/src/disasm/func_slicer.py
def filter_addr_by_secs(self, bl):
        """
        Filter out addresses in bad sections
        :param bl: address list
        """
        init_sec_adjust.main()
        with open('init_sec.info') as f:
            l = f.readline()
        items = l.split()
        baddr = int(items[1], 16)
        eaddr = baddr + int(items[3], 16)
        return filter(lambda n: n < baddr or n >= eaddr, bl)

        Filter out addresses in bad sections
        :param bl: address list
        
Filter out addresses in bad sections
Filter out addresses in bad sections
def filter_addr_by_secs(self, bl):
        init_sec_adjust.main()
        with open('init_sec.info') as f:
            l = f.readline()
        items = l.split()
        baddr = int(items[1], 16)
        eaddr = baddr + int(items[3], 16)
        return filter(lambda n: n < baddr or n >= eaddr, bl)
def filter_addr_by_secs ( self , bl ) : init_sec_adjust . main ( ) with open ( 'init_sec.info' ) as f : l = f . readline ( ) items = l . split ( ) baddr = int ( items [ 1 ] , 16 ) eaddr = baddr + int ( items [ 3 ] , 16 ) return filter ( lambda n : n < baddr or n >= eaddr , bl )
Filter out addresses in bad sections
Filter out addresses in bad sections
"""
        Filter out addresses in bad sections
        :param bl: address list
        """
self
bl
None