Cyber security

RedPersist – Advanced Windows Persistence in C#

In the evolving landscape of system management, maintaining application persistence is paramount.

‘RedPersist’ stands out as a robust solution, offering a myriad of techniques to ensure uninterrupted system presence.

Dive into this comprehensive guide to explore its capabilities, from leveraging Eventviewer to harnessing the power of PowerShell profiles.

Compiling Project

Below 3rd party libraries are used in this project.

TaskScheduler
Fody
Load the Visual Studio project up and go to “Tools” > “NuGet Package Manager” > “Package Manager Settings”
Open “NuGet Package Manager” > “Package Sources”

Install the Fody

Install-Package Costura.Fody -Version 3.3.3

Install the Taskscheduler

Install-Package TaskScheduler -Version 2.8.11

Usage

You can use it with execute-assembly or standalone executable

RedPersist.exe --method C:\Path\to\executable.exe
RedPersist.exe --help

Available Methods

–help/-h : Help Menu

RedPersist.exe --help

–eventviewer : Persistence via Eventviewer Helper

RedPersist.exe --eventviewer C:\Users\User\exe.exe

–startup : Persistence via Startup

RedPersist.exe --startup C:\Users\User\exe.exe

–autologon : Persistence via Autologon

RedPersist.exe --startup C:\Users\User\exe.exe

–screensaver : Persistence via Screensaver

RedPersist.exe --screensaver C:\Users\User\exe.exe

–wmi : Persistence via Wmi Event Subscription(To Notepad.exe)

RedPersist.exe --wmi C:\Users\User\exe.exe

–schedule : Persistence via Scheduled Tasks

RedPersist.exe --schedule TaskName C:\Users\User\exe.exe

–extension : Persistence via Extension Hijacking(TXT)

RedPersist.exe --extension C:\Users\User\exe.exe

–winlogon : Persistence via UserInitMprLogonScript

RedPersist.exe --winlogon TaskName C:\Users\User\exe.exe

–powershell : Persistence via Powershell Profile

RedPersist.exe--pwsh C:\Users\User\Documents\windowspowershell C:\Users\User\Documents\windowspowershell\profile.ps1 C:\Users\User\Desktop\exe.exe
Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Vermilion : Mastering Linux Post-Exploitation For Red Team Success

Vermilion is a simple and lightweight CLI tool designed for rapid collection, and optional exfiltration…

1 day ago

AD-CS-Forest-Exploiter : Mastering Security Through PowerShell For AD CS Misconfiguration

ADCFFS is a PowerShell script that can be used to exploit the AD CS container…

1 day ago

Usage Of Tartufo – A Comprehensive Guide To Securing Your Git Repositories

Tartufo will, by default, scan the entire history of a git repository for any text…

1 day ago

Loco : A Rails-Inspired Framework For Rust Developers

Loco is strongly inspired by Rails. If you know Rails and Rust, you'll feel at…

2 days ago

Monolith : The Ultimate Tool For Storing Entire Web Pages As Single HTML Files

A data hoarder’s dream come true: bundle any web page into a single HTML file.…

2 days ago