This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(line1, c_001) | |
(line3, c_002) | |
(line4, c_003) | |
(line6, c_004) # i = 0 | |
(line3, c_002) | |
(line4, c_003) # i = 1 | |
(line3, c_002) | |
(line4, c_003) | |
(line6, c_004) # i = 2 | |
(line3, c_002) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call_001() | |
for i in range(0 to 4): | |
call_002() | |
call_003() | |
if i is even: | |
call_004() | |
call_005() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] [2020-01-08 16:37:03,477] <module>(): [+] Original buffer: ['0', '1', '2', '2', '2', '2', '0', '1', '2', '2', '2', '2'] | |
[INFO] [2020-01-08 16:37:03,477] <module>(): [+] Compressed list: [['0', 2], ['1', 2], ['2', 8]] | |
[INFO] [2020-01-08 16:37:03,477] <module>(): [+] Compression rate: 75.00% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NGram: | |
def __init__(self, order): | |
self.order = order | |
self.buffer = [] | |
def add(self, element): | |
tmp = None | |
if not element: | |
return tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NGram: | |
def __init__(self, order): | |
self.order = order | |
self.buffer = [] | |
def add(self, element): | |
tmp = None | |
if not element: | |
return tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idc | |
import idautils | |
import idaapi | |
import ida_bytes | |
import ida_idaapi | |
import logging | |
logger = logging.getLogger(__name__) | |
def __create_load_data_segment(data, seg_addr, seg_name): |
NewerOlder