Skip to content

About

C2 post-exploitation framework in C. Modular agent design, client-server architecture.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nightmare Framework

Nightmare is a client/server framework for Windows and Linux. It includes a Windows GUI, a CLI, dynamically loaded modules and a compiler that prepares the project dependencies and binaries.

⚠️ This project is intended for educational and authorized security research only. Please read LICENSE before using or modifying it.

Current workflow

Right now, the Windows workflow is quite simple: install the build prerequisites, compile the Nightmare Compiler, run it as administrator and let it take care of the rest.

1. Install the build prerequisites

Before compiling anything, install the following:

  • GCC Compiler (64-bit) from WinLibs. Make sure gcc is available from your terminal.
  • Visual Studio 2022 with the Desktop development with C++ workload and .NET Desktop Development Tools.

The full Windows requirements are described in Setup.

2. Compile the Nightmare Compiler

Run this command from the project root using a GCC toolchain that supports the Windows libraries used by the compiler:

gcc .\Windows\compiler.c -o compiler -lcomctl32 -lgdi32 -lole32 -lurlmon .\Windows\app.res

This creates compiler.exe in the project root.

3. Run it as administrator

Open compiler.exe with administrator permissions. The compiler checks the source tree, helps configure or install the required dependencies and provides the compilation tabs for the server, client and modules.

The compiler stores the dependency configuration so it does not need to ask for the same paths every time.

For the complete workflow and troubleshooting notes, see Nightmare Compiler.

Documentation

License

This project is provided under the Nightmare Framework Non-Commercial Attribution License.

Commercial use is not allowed without written permission. Any use, modification, integration, publication, deployment or exploitation of the code must credit:

Based on Nightmare Framework by an0mal1a

Because commercial use is restricted, this is source-available software rather than Open Source under the strict OSI definition.

Platform notes

  • The server and client must target the same platform. A Windows target requires the Windows server; a Linux target requires the Linux server.
  • The Linux implementation has not been updated recently and may be incomplete or unstable.
  • Manual compilation instructions are still available in the setup documentation, but the automatic compiler is the recommended workflow for Windows.

Last updated: 2026-08-05

About

C2 post-exploitation framework in C. Modular agent design, client-server architecture.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages