diff --git a/GenericPlugins/Dropper/include/Images.hpp b/GenericPlugins/Dropper/include/Images.hpp index 6e68a143..a59153d4 100644 --- a/GenericPlugins/Dropper/include/Images.hpp +++ b/GenericPlugins/Dropper/include/Images.hpp @@ -19,4 +19,20 @@ class PNG : public IDrop virtual bool Check(uint64 offset, DataCache& file, BufferView precachedBuffer, Finding& finding) override; }; + +class JPG : public IDrop +{ + private: + public: + JPG() = default; + + virtual const std::string_view GetName() const override; + virtual Category GetCategory() const override; + virtual Subcategory GetSubcategory() const override; + virtual const std::string_view GetOutputExtension() const override; + virtual Priority GetPriority() const override; + virtual bool ShouldGroupInOneFile() const override; + + virtual bool Check(uint64 offset, DataCache& file, BufferView precachedBuffer, Finding& finding) override; +}; } // namespace GView::GenericPlugins::Droppper::Images diff --git a/GenericPlugins/Dropper/src/CMakeLists.txt b/GenericPlugins/Dropper/src/CMakeLists.txt index 58ac2965..4341a9d9 100644 --- a/GenericPlugins/Dropper/src/CMakeLists.txt +++ b/GenericPlugins/Dropper/src/CMakeLists.txt @@ -15,4 +15,5 @@ target_sources(Dropper PRIVATE HtmlObjects/PHP.cpp HtmlObjects/Script.cpp HtmlObjects/XML.cpp - Multimedia/PNG.cpp) + Multimedia/PNG.cpp + Multimedia/JPG.cpp) diff --git a/GenericPlugins/Dropper/src/Dropper.cpp b/GenericPlugins/Dropper/src/Dropper.cpp index 6c05a1e4..df0538f0 100644 --- a/GenericPlugins/Dropper/src/Dropper.cpp +++ b/GenericPlugins/Dropper/src/Dropper.cpp @@ -54,6 +54,7 @@ bool Instance::Init(Reference object) // binary context.objectDroppers.emplace_back(std::make_unique()); context.objectDroppers.emplace_back(std::make_unique()); + context.objectDroppers.emplace_back(std::make_unique()); // html objects context.objectDroppers.emplace_back(std::make_unique