Classes | |
| struct | DetectResult |
| struct | CarverFormat |
Typedefs | |
| using | PeekMore |
Functions | |
| uint16_t | le16 (const unsigned char *p) |
| uint32_t | le32 (const unsigned char *p) |
| uint32_t | be32 (const unsigned char *p) |
| uint64_t | be64 (const unsigned char *p) |
| size_t | find_pattern (const unsigned char *buf, size_t buf_len, const unsigned char *pat, size_t pat_len, size_t start=0) |
| DetectResult | detect_jpeg (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_png (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_gif (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_pdf (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_zip (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_bmp (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_mp4 (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_mp3_id3 (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_mp3_frame (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_ogg (const unsigned char *window, size_t window_len, uint64_t file_disk_off, uint64_t max_file_size, PeekMore &peek_more) |
| DetectResult | detect_tiff (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_ole (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_riff (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_mkv (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| DetectResult | detect_sqlite (const unsigned char *window, size_t window_len, uint64_t, uint64_t max_file_size, PeekMore &) |
| std::vector< CarverFormat > | build_formats () |
| using carving::anonymous_namespace{carving.cpp}::PeekMore |
Definition at line 77 of file carving.cpp.
|
inline |
Definition at line 36 of file carving.cpp.
References be32().
Referenced by be32(), detect_mp4(), detect_png(), and detect_tiff().
|
inline |
Definition at line 42 of file carving.cpp.
References be64().
Referenced by be64(), and detect_mp4().
| std::vector< CarverFormat > carving::anonymous_namespace{carving.cpp}::build_formats | ( | ) |
Definition at line 899 of file carving.cpp.
References build_formats(), detect_bmp(), detect_gif(), detect_jpeg(), detect_mkv(), detect_mp3_frame(), detect_mp3_id3(), detect_mp4(), detect_ogg(), detect_ole(), detect_pdf(), detect_png(), detect_riff(), detect_sqlite(), detect_tiff(), and detect_zip().
Referenced by build_formats().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_bmp | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 489 of file carving.cpp.
References detect_bmp(), and le32().
Referenced by build_formats(), and detect_bmp().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_gif | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 258 of file carving.cpp.
References detect_gif().
Referenced by build_formats(), and detect_gif().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_jpeg | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 113 of file carving.cpp.
References detect_jpeg(), and find_pattern().
Referenced by build_formats(), and detect_jpeg().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_mkv | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 835 of file carving.cpp.
References detect_mkv().
Referenced by build_formats(), and detect_mkv().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_mp3_frame | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 637 of file carving.cpp.
References detect_mp3_frame().
Referenced by build_formats(), and detect_mp3_frame().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_mp3_id3 | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 605 of file carving.cpp.
References detect_mp3_id3().
Referenced by build_formats(), and detect_mp3_id3().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_mp4 | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 526 of file carving.cpp.
References be32(), be64(), and detect_mp4().
Referenced by build_formats(), and detect_mp4().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_ogg | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 671 of file carving.cpp.
References detect_ogg().
Referenced by build_formats(), and detect_ogg().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_ole | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 772 of file carving.cpp.
References detect_ole(), le16(), and le32().
Referenced by build_formats(), and detect_ole().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_pdf | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 313 of file carving.cpp.
References detect_pdf().
Referenced by build_formats(), and detect_pdf().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_png | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 187 of file carving.cpp.
References be32(), and detect_png().
Referenced by build_formats(), and detect_png().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_riff | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 799 of file carving.cpp.
References detect_riff(), and le32().
Referenced by build_formats(), and detect_riff().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_sqlite | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 859 of file carving.cpp.
References detect_sqlite().
Referenced by build_formats(), and detect_sqlite().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_tiff | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | , | ||
| uint64_t | max_file_size, | ||
| PeekMore & | ) |
Definition at line 745 of file carving.cpp.
References be32(), detect_tiff(), and le32().
Referenced by build_formats(), and detect_tiff().
| DetectResult carving::anonymous_namespace{carving.cpp}::detect_zip | ( | const unsigned char * | window, |
| size_t | window_len, | ||
| uint64_t | file_disk_off, | ||
| uint64_t | max_file_size, | ||
| PeekMore & | peek_more ) |
Definition at line 397 of file carving.cpp.
References detect_zip(), and le16().
Referenced by build_formats(), and detect_zip().
| size_t carving::anonymous_namespace{carving.cpp}::find_pattern | ( | const unsigned char * | buf, |
| size_t | buf_len, | ||
| const unsigned char * | pat, | ||
| size_t | pat_len, | ||
| size_t | start = 0 ) |
Definition at line 55 of file carving.cpp.
References find_pattern().
Referenced by detect_jpeg(), and find_pattern().
|
inline |
Definition at line 26 of file carving.cpp.
References le16().
Referenced by detect_ole(), detect_zip(), and le16().
|
inline |
Definition at line 30 of file carving.cpp.
References le32().
Referenced by detect_bmp(), detect_ole(), detect_riff(), detect_tiff(), and le32().