# aydinnyunus/keylogger architecture

> Architecture diagram of the GitHub repository aydinnyunus/keylogger, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-02-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aydinnyunus/keylogger
- Repository: https://github.com/aydinnyunus/keylogger

## Overview

Project Type: This is a security testing tool that captures various computer inputs and sends them via email.

##### Input Capture Layer
- Keyboard Input Module
- Mouse Input Module
- Screenshot Module
- Microphone Input Module

##### Data Processing Layer
- Input Aggregator
- Data Formatter
- Self-protection Module (self-deletion capability)

##### Communication Layer
- SMTP Client (Mailtrap.io integration)
- Email Formatting Module

##### Connection Types
- Double lines for external API communications

##### Specific Elements

**[Input Layer]**
**┌─────────────────────────────────────┐**
- Keyboard → Mouse → Screen → Mic     │
- ┘
- ↓
**[Processing Layer]**
**┌─────────────────────────────────────┐**
- Data Aggregator → Data Formatter    │
- ↑                                   │
- Security Monitor (Self-delete)      │
- ┘
- ↓
**[Communication Layer]**
**┌─────────────────────────────────────┐**
- SMTP Client → Mailtrap.io          │
- ┘

##### Important Details to Note
- A 10-second timer indicator showing the periodic data transmission
- Self-protection mechanism flow
- SMTP configuration requirements
- Security-critical paths

##### Technical Specifications
- Python 3.x requirement
- External dependencies from requirements.txt
- SMTP server configuration
- Input capture library integrations

Remember to:
- Use consistent styling throughout
- A title and brief description
- Notes about security implications
- Configuration points clearly
- Error handling paths
- Self-protection mechanism flow

## Diagram (Mermaid)

```mermaid
graph TB
    %% Title and Styles
    classDef input fill:#b3d9ff,stroke:#333,stroke-width:2px
    classDef processing fill:#98FB98,stroke:#333,stroke-width:2px
    classDef security fill:#FFD700,stroke:#333,stroke-width:2px
    classDef communication fill:#FF6B6B,stroke:#333,stroke-width:2px
    classDef external fill:#E6E6FA,stroke:#333,stroke-width:2px
    classDef config fill:#F0F8FF,stroke:#333,stroke-width:2px

    %% Input Layer
    subgraph InputLayer["Input Capture Layer"]
        KB[Keyboard Input]:::input
        MS[Mouse Input]:::input
        SC[Screenshot Module]:::input
        MC[Microphone Input]:::input
    end

    %% Processing Layer
    subgraph ProcessingLayer["Data Processing Layer"]
        DA[Data Aggregator]:::processing
        DF[Data Formatter]:::processing
        SP[Self-protection Module]:::security
    end

    %% Communication Layer
    subgraph CommunicationLayer["Communication Layer"]
        SMTP[SMTP Client]:::communication
        MT[Mailtrap.io]:::external
    end

    %% Config Files
    CONF[Requirements & Config]:::config
    DOC[Documentation]:::config

    %% Connections
    KB --> DA
    MS --> DA
    SC --> DA
    MC --> DA
    DA --> DF
    DF --> SMTP
    SMTP --> MT
    SP -.-> DA
    SP -.-> DF
    SP -.-> SMTP

    %% Click Events
    click InputLayer "https://github.com/aydinnyunus/Keylogger/blob/master/keylogger.py"
    click ProcessingLayer "https://github.com/aydinnyunus/Keylogger/blob/master/keylogger.py"
    click CommunicationLayer "https://github.com/aydinnyunus/Keylogger/blob/master/keylogger.py"
    click CONF "https://github.com/aydinnyunus/Keylogger/blob/master/requirements.txt"
    click DOC "https://github.com/aydinnyunus/Keylogger/blob/master/README.md"

    %% Legend
    subgraph Legend
        L1[Input Components]:::input
        L2[Processing Components]:::processing
        L3[Security Components]:::security
        L4[Communication Components]:::communication
        L5[External Services]:::external
        L6[Configuration Files]:::config
    end
```
