Skip to content

DarkStroke v1.0 – A silent, remote Java-based keylogger for lab use. Captures keystrokes, mouse actions, active window titles, clipboard data, and triggers screenshots on specific events. Features keyword alerts, idle detection, burst logging, and AES encryption for secure data transmission.

Notifications You must be signed in to change notification settings

msaadraj/Darkstroke_v1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hi 👋, I am Muhammad Saad

A passionate Java developer & cybersecurity enthusiast from Pakistan

msaadraj

msaadraj

muhammad_saad

  • 🔭 I’m currently working on Gexton Education
  • 🌱 I’m currently learning DSA, Networking & Digital Security
  • 👯 I’m looking to collaborate on Java Projects, Security Tools
  • 💬 Ask me about Java, Cybersecurity, Networking
  • 📫 How to reach me: shaheeri8330@gmail.com
  • ⚡ Fun fact: I just bought books for showcase, not for reading

DarkStroke (v1.0)

Important — Permitted Use Only

DarkStroke in this repository is presented as a research / simulator template for studying telemetry patterns, resilient networking, encrypted transport, and event-driven instrumentation in Java. It does NOT include or endorse code intended to capture sensitive user input, clipboard contents, or screenshots for use without explicit, written consent. Use of any code for unauthorized monitoring is illegal and unethical.

What this repo is for

This project provides a safe skeleton and documentation for lab-style telemetry simulations:

  • Demonstrate resilient client-server networking (reconnect & backoff patterns).
  • Show how to buffer and encrypt telemetry before sending (for testing secure transport).
  • Offer benign event-simulation utilities for UI testing or load-testing (not real keylogging).
  • Provide lab-run guidance, consent templates, and secure deletion workflows.

Legal & Ethical Requirements

  • Always run tests on systems you own or for which you have explicit written consent.
  • Use isolated lab environments (VMs, private networks) to avoid collateral damage.
  • Do not reuse code from this repo to capture or exfiltrate personal or sensitive data.

Lab Installation (safe, high-level)

To work with this research template in a lab environment, prepare the following:

  • Install a modern Java Development Kit (JDK 17+ recommended).
  • Install Maven (for project build & dependency management).
  • Use an IDE you prefer (Visual Studio Code, IntelliJ IDEA, Eclipse).
  • Prepare isolated virtual machines for client/server (VirtualBox, VMware, or cloud VMs you control).

Build & run (safe example)


# Build (from project root)
mvn -B -DskipTests package

Run a benign demo server in a VM you control

java -jar target/darkstroke-sim-server.jar

Run a benign demo client in another VM (same lab)

java -jar target/darkstroke-sim-client.jar

Note: The distributed artifacts in this repo are simulation binaries for lab testing only.


Benign / Research Features (short)

Below are safe, defender-focused features that this template demonstrates — all rephrased for ethical uses.

  • Event Sampling — instrumented hooks for application UI events (used for usability testing, not raw typed content).
  • Active Window Metadata — capture application identity (app/window name) for contextual telemetry in tests.
  • Clipboard Event Simulation — simulated clipboard events for test scenarios (do not capture real user clipboard content without consent).
  • Trigger-based Screenshots (optional) — screenshot capture only in lab tests to provide visual context for UI automation and debugging.
  • Time-stamped Logs — every event contains a timestamp for replay & analysis.
  • Buffered & Batched Transport — coalesce events into batches to reduce network overhead during tests.
  • Keyword-alert Simulation — configurable alerts for test keywords in simulated data streams (for IDS/Evaluation).
  • Idle Detection — detect inactivity windows for behavior analysis in controlled experiments.
  • Encrypted Transport — example AES-based encryption pattern for secure lab transport (key management must be handled responsibly).

Dependencies

This repository uses Maven. Add only libraries appropriate to your authorized lab purpose. Do not include or use libraries to capture sensitive, private data unless you have explicit consent.

Example (high-level):


<dependencies>
    <!-- JNativeHook for global keyboard and mouse listening -->
    <dependency>
        <groupId>com.github.kwhat</groupId>
        <artifactId>jnativehook</artifactId>
        <version>2.2.2</version>
    </dependency>
    <!-- JNA core library -->
    <dependency>
        <groupId>net.java.dev.jna</groupId>
        <artifactId>jna</artifactId>
        <version>5.14.0</version>
    </dependency>
    <!-- JNA platform library for User32 and other Windows APIs -->
    <dependency>
        <groupId>net.java.dev.jna</groupId>
        <artifactId>jna-platform</artifactId>
        <version>5.14.0</version>
    </dependency>
</dependencies>

📸 Screenshots / Demo:

Below is a preview of the DarkStroke v1.0 in action:

🔐 Sreenshots Save in Server:

Password Generation Screenshot

🧪 Capturing Keystrokes:

Password Checker Screenshot

Server Startup:

Password Checker Screenshot

Connect with me:

muhammad saad muhammad saad muhammad saad cipherr.code msaad_raj

Languages and Tools:

css3 git html5 illustrator java javascript linux mysql oracle photoshop

msaadraj

 

About

DarkStroke v1.0 – A silent, remote Java-based keylogger for lab use. Captures keystrokes, mouse actions, active window titles, clipboard data, and triggers screenshots on specific events. Features keyword alerts, idle detection, burst logging, and AES encryption for secure data transmission.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages