ctfsolver.managers.manager_files_re¶
manager_files_re.py
This module provides the ManagerFileRegex class for extracting printable strings from files using regular expressions.
- Classes:
- ManagerFileRegex:
A manager class for file operations involving regular expressions, including extracting printable ASCII strings from binary files.
- Usage:
Instantiate ManagerFileRegex and use its methods to process files for printable string extraction.
Example
manager = ManagerFileRegex() strings = manager.extract_strings(“/path/to/file”, min_length=4)
Classes¶
Module Contents¶
- class ManagerFileRegex(*args, **kwargs)[source]¶
- initializing_all_ancestors(*args, **kwargs)[source]¶
- Description:
Initializes all the ancestors of the class
- extract_strings(file_path, min_length=4)[source]¶
- Description:
Extracts printable strings from a file
- string_similarity(str1, str2)[source]¶
Calculate the similarity ratio between two strings using rapidfuzz.