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

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

9 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

9 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

2 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago