├── mac-defender
├── sample
├── eicar.bin
└── jsmal.txt
├── faketmp
└── demo.png
├── mac-defender.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── orca.xcuserdatad
│ │ │ ├── UserInterfaceState.xcuserstate
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── xcuserdata
│ └── orca.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
├── xcshareddata
│ └── xcschemes
│ │ └── mac-defender.xcscheme
└── project.pbxproj
├── winapi
├── dlls
│ ├── wofutil.cpp
│ ├── wintrust.cpp
│ ├── version.cpp
│ ├── crypt32.cpp
│ ├── wofutil.h
│ ├── dxgi.h
│ ├── bcrypt.cpp
│ ├── rpcrt4.cpp
│ ├── dxgi.cpp
│ ├── include
│ │ └── wintype.h
│ ├── wintrust.h
│ ├── rpcrt4.h
│ ├── ole32.cpp
│ ├── version.h
│ ├── crypt32.h
│ ├── bcrypt.h
│ ├── ole32.h
│ ├── advapi32.h
│ ├── advapi32.cpp
│ └── ntdll.h
├── exports.h
├── imports.cpp
├── imports.h
├── strutils.hpp
├── ntoskrnl.h
├── exports.cpp
├── strutils.cpp
└── ntoskrnl.cpp
├── engine
└── Readme.md
├── log.hpp
├── README.md
├── cb
├── cb.h
└── cb.cpp
├── of-loadlib.sln
├── mpcore
├── mpcore.h
├── openscan.h
├── rsignal.h
├── scanreply.h
├── engineboot.h
└── streambuffer.h
├── .gitattributes
├── main.cpp
├── reg
└── mock_reg.json
├── wrapper.hpp
├── of-loadlib.vcxproj.filters
├── .gitignore
├── of-loadlib.vcxproj
├── loader.hpp
└── include
└── jsoncpp
└── json
└── json-forwards.h
/mac-defender:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orca-eaa5a/mac-defender/HEAD/mac-defender
--------------------------------------------------------------------------------
/sample/eicar.bin:
--------------------------------------------------------------------------------
1 | X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
--------------------------------------------------------------------------------
/faketmp/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orca-eaa5a/mac-defender/HEAD/faketmp/demo.png
--------------------------------------------------------------------------------
/mac-defender.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/winapi/dlls/wofutil.cpp:
--------------------------------------------------------------------------------
1 | #include "wofutil.h"
2 |
3 | bool __stdcall MockWofUtil::WofShouldCompressBinaries(char16_t* Volume, uint32_t* Algorithm) {
4 | debug_log(" called..\n", "WofShouldCompressBinaries");
5 |
6 | return false;
7 | }
8 |
--------------------------------------------------------------------------------
/mac-defender.xcodeproj/project.xcworkspace/xcuserdata/orca.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orca-eaa5a/mac-defender/HEAD/mac-defender.xcodeproj/project.xcworkspace/xcuserdata/orca.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/engine/Readme.md:
--------------------------------------------------------------------------------
1 | ## mpengine
2 | 1. File : Unpacked mpam-fe(x64).exe
3 | 2. Arch : x86_64
4 | 3. Version : 1.1.14405.2
5 | 4. Engine Relase Date : '17. 11. 18
6 | 5. Signature Release Date : '18. 1. 16
7 | 6. Link : https://drive.google.com/file/d/1gdZ_QGjB2wkUTbcNjFX8xxcLAzlllzg6/view?usp=sharing
8 |
--------------------------------------------------------------------------------
/mac-defender.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/mac-defender.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/winapi/dlls/wintrust.cpp:
--------------------------------------------------------------------------------
1 | #include "wintrust.h"
2 |
3 | bool __stdcall MockWintrust::CryptCATAdminAcquireContext(void* phCatAdmin, void* pgSubsystem, uint32_t dwFlags) {
4 | debug_log(" called..\n", "CryptCATAdminAcquireContext");
5 |
6 | return true;
7 | }
8 |
9 | void* __stdcall MockWintrust::CryptCATAdminEnumCatalogFromHash(void* hCatAdmin, uint8_t* pbHash, uint32_t cbHash, uint32_t dwFlags, void* phPrevCatInfo) {
10 | debug_log(" called..\n", "CryptCATAdminEnumCatalogFromHash");
11 |
12 | return NULL;
13 | }
14 |
--------------------------------------------------------------------------------
/log.hpp:
--------------------------------------------------------------------------------
1 | #if defined(__WINDOWS__)
2 | #pragma once
3 | #endif
4 | #ifndef _LOG_H_
5 | #define _LOG_H_
6 | #include
7 | #include
8 |
9 | enum MSGTYPE{
10 | INFO = 1,
11 | ERR,
12 | CRIT,
13 | };
14 | auto console_log = [](MSGTYPE msg_type, const char* msg) {
15 |
16 | switch (msg_type)
17 | {
18 | case INFO:
19 | printf("[%s] %s\n", "INFO", msg);
20 | break;
21 | case ERR:
22 | printf("[%s] %s", "ERROR", msg);
23 | assert(0);
24 | break;
25 | case CRIT:
26 | printf("[%s] %s\n", "CRIT", msg);
27 | exit(-1);
28 | default:
29 | printf("Unknown Message Type\n");
30 | exit(-1);
31 | }
32 | };
33 | #endif
--------------------------------------------------------------------------------
/winapi/exports.h:
--------------------------------------------------------------------------------
1 | #ifndef _API_H_
2 | #define _API_H_
3 | #include
4 | #include