- 🔭 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
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.
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.
- 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.
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 (from project root) mvn -B -DskipTests packagejava -jar target/darkstroke-sim-server.jar
java -jar target/darkstroke-sim-client.jar
Note: The distributed artifacts in this repo are simulation binaries for lab testing only.
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).
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>
Below is a preview of the DarkStroke v1.0 in action:


