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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
OffensiveNim — My experiments in weaponizing Nim (https://nim-lang.org/) | Kitploit
Tools/GitHubGitHub/byt3bl33d3r/offensivenim
Privilege EscalationCode AnalysisLateral MovementShellcodeData ExfiltrationPost-ExploitationCommand and ControlLearning & EducationRed TeamingPayload DevelopmentBinary Exploitation
3.1k365362 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHub
byt3bl33d3r/offensivenim

OffensiveNim

My experiments in weaponizing Nim (https://nim-lang.org/)

View Repository

OffensiveNim

OffensiveNim

My experiments in weaponizing Nim for implant development and general offensive operations.

Table of Contents

  • OffensiveNim
    • Table of Contents
    • Why Nim?
    • Examples in this repo that work
    • Examples that are a WIP
    • Compiling the examples in this repo
      • Easy Way (Recommended)
      • Hard way (For the bold)
    • Cross Compiling
    • Interfacing with C/C++
    • Creating Windows DLLs with an exported DllMain
      • Creating XLLs
    • Optimizing executables for size
    • Reflectively Loading Nim Executables
    • Executable size difference when using the Winim library vs without
    • Opsec Considerations
    • Writing Nim without the Nim Runtime
    • Converting C code to Nim
    • Language Bridges
    • Debugging
    • Setting up a dev environment
    • Pitfalls I found myself falling into
    • Interesting Nim libraries
    • Nim for implant dev links
    • Contributors

Why Nim?

  • Compiles directly to C, C++, Objective-C and Javascript.
  • Since it doesn't rely on a VM/runtime does not produce what I like to call "T H I C C malwarez" as supposed to other languages (e.g. Golang)
  • Python inspired syntax, allows rapid native payload creation & prototyping.
  • Has extremely mature FFI (Foreign Function Interface) capabilities.
  • Avoids making you actually write in C/C++ and subsequently avoids introducing a lot of security issues into your software.
  • Super easy cross compilation to Windows from *nix/MacOS, only requires you to install the mingw toolchain and passing a single flag to the nim compiler.
  • The Nim compiler and the generated executables support all major platforms like Windows, Linux, BSD and macOS. Can even compile to Nintendo switch , IOS & Android. See the cross-compilation section in the Nim compiler usage guide
  • You could technically write your implant and c2 backend both in Nim as you can compile your code directly to Javascript. Even has some initial support for WebAssembly's

Examples in this repo that work

Download Tool