# fdx100/auto_tor_ip_changer architecture

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

- Interactive diagram: https://gitdiagram.com/fdx100/auto_tor_ip_changer
- Repository: https://github.com/fdx100/auto_tor_ip_changer

## Overview

##### Main Components
- AutoTOR Script (Core Component)
- Tor Service
- SOCKS Proxy
- User's Browser/Applications
- Installation Handler

- [User's Browser/Applications]
- ↕ (SOCKS)
- [SOCKS Proxy (127.0.0.1:9050)]
- ↕
- [AutoTOR Controller]
- ↕
- [Tor Service]
- ↕
- [Tor Network]

##### Important Elements to Highlight

a. Control Flow:
- How AutoTOR controls the Tor service
- Timing mechanism for IP changes
- SOCKS proxy configuration

b. Data Flow:
- Entry point (browser/application)
- Proxy routing path
- Exit point to the Tor network

##### Additional Details
- A timing controller component showing the IP change intervals
- A configuration section showing the SOCKS proxy settings
- Notes about the installation process
- Version information (V 2.1)

##### Technical Specifications to Note
- SOCKS Proxy Port: 9050
- Local Address: 127.0.0.1
- Python Dependencies: requests[socks]
- System Dependency: tor service

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph User
        Browser["Browser/Applications"]:::user
    end

    subgraph Proxy
        SOCKS["SOCKS Proxy<br/>(127.0.0.1:9050)"]:::proxy
    end

    subgraph Controller
        AutoTOR["AutoTOR Controller"]:::controller
        Timer["IP Change Timer"]:::controller
        Install["Installation Handler"]:::setup
    end

    subgraph TorInfra["Tor Infrastructure"]
        TorService["Tor Service"]:::tor
        TorNetwork["Tor Network"]:::tor
    end

    %% Connections
    Browser --> |SOCKS Connection| SOCKS
    SOCKS --> |Proxy Routing| TorService
    AutoTOR --> |Controls| TorService
    Timer --> |Triggers| AutoTOR
    TorService --> |Routes Through| TorNetwork
    Install --> |Configures| TorService

    %% Styling
    classDef user fill:#a8d1ff,stroke:#333,stroke-width:2px
    classDef proxy fill:#ffb366,stroke:#333,stroke-width:2px
    classDef controller fill:#90EE90,stroke:#333,stroke-width:2px
    classDef tor fill:#d7b3ff,stroke:#333,stroke-width:2px
    classDef setup fill:#FFE4B5,stroke:#333,stroke-width:2px

    %% Click Events
    click AutoTOR "https://github.com/FDX100/Auto_Tor_IP_changer/blob/master/autoTOR.py"
    click Install "https://github.com/FDX100/Auto_Tor_IP_changer/blob/master/install.py"

    %% Legend
    subgraph Legend
        L1["User Interface"]:::user
        L2["Proxy Component"]:::proxy
        L3["Control Components"]:::controller
        L4["Tor Components"]:::tor
        L5["Setup Component"]:::setup
    end
```
