summaryrefslogtreecommitdiff
path: root/plugins/workflow_objc/Plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/workflow_objc/Plugin.cpp')
-rw-r--r--plugins/workflow_objc/Plugin.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/plugins/workflow_objc/Plugin.cpp b/plugins/workflow_objc/Plugin.cpp
deleted file mode 100644
index 6323e1a6..00000000
--- a/plugins/workflow_objc/Plugin.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2022-2023 Jon Palmisciano. All rights reserved.
- *
- * Use of this source code is governed by the BSD 3-Clause license; the full
- * terms of the license can be found in the LICENSE.txt file.
- */
-
-#include "Constants.h"
-#include "Workflow.h"
-
-extern "C" {
-
-BN_DECLARE_CORE_ABI_VERSION
-
-BINARYNINJAPLUGIN void CorePluginDependencies()
-{
- BinaryNinja::AddOptionalPluginDependency("arch_x86");
- BinaryNinja::AddOptionalPluginDependency("arch_armv7");
- BinaryNinja::AddOptionalPluginDependency("arch_arm64");
-}
-
-BINARYNINJAPLUGIN bool CorePluginInit()
-{
- Workflow::registerActivities();
-
- std::vector<BinaryNinja::Ref<BinaryNinja::Architecture>> targets = {
- BinaryNinja::Architecture::GetByName("aarch64"),
- BinaryNinja::Architecture::GetByName("x86_64")
- };
-
- BinaryNinja::LogRegistry::CreateLogger(PluginLoggerName);
-
- auto settings = BinaryNinja::Settings::Instance();
- settings->RegisterSetting("analysis.objectiveC.resolveDynamicDispatch",
- R"({
- "title" : "Resolve Dynamic Dispatch Calls",
- "type" : "boolean",
- "default" : false,
- "aliases": ["core.function.objectiveC.assumeMessageSendTarget", "core.function.objectiveC.rewriteMessageSendTarget"],
- "description" : "Replaces objc_msgSend calls with direct calls to the first found implementation when the target method is visible. May produce false positives when multiple classes implement the same selector or when selectors conflict with system framework methods."
- })");
-
- return true;
-}
-}