%X7|dZddlZddlZddlZddlZddlmZddlmZej e Z GddZ dS)z+Parser for WordPress plugin incident files.N)Path) open_nofollowc eZdZdZededeefdZede de dededzfdZ ed e de dededzfd Z dS) IncidentFileParsera' Parse incident files written by the WordPress plugin. These files have format: |sdS|dr#td||jdS|ds,td||j|dddS|dd}||||S)aD Process a single line from an incident file. Args: line: The line content (already stripped) line_num: Line number for logging file_path: Path to the file being processed Returns: Parsed incident dictionary or None if line should be skipped Nz     44444 sAB*BC"CC) __name__ __module__ __qualname____doc__ classmethodrlistr4r"rintrr)r+r!rrs  4DJ[>'L'L"%'L26'L 'L'L'L['LR%%*-%:>% %%%[%%%r+r) r<r.r1loggingrpathlibrdefence360agent.utils.fd_opsr getLoggerr9rrr@r+r!rEs11  666666  8 $ $}}}}}}}}}}r+