# tegal1337/cilocks architecture

> Architecture diagram of the GitHub repository tegal1337/cilocks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tegal1337/cilocks
- Repository: https://github.com/tegal1337/cilocks

## Overview

CiLocks is documented as a command-line Android/iOS security toolkit, with device-management, lock-screen, payload, and web-collection capabilities. The advertised CLI entry point is absent from the supplied tree, so its implementation and most tool wiring cannot be verified; those capabilities are shown as documented functions, not as a proven execution pipeline. The sampled PHP files do establish IP logging, geolocation and image collection behavior, and the Android project establishes a keyguard-bypass activity. Several README features, including brute-force, ADB, Metasploit, SpyCam client behavior, and iOS/Firestore tooling, have no sampled implementation.

Main entry points: [`index.php`](https://github.com/tegal1337/cilocks/blob/main/index.php) (Landing redirect), [`ip.php`](https://github.com/tegal1337/cilocks/blob/main/ip.php) (IP capture), [`info/get.php`](https://github.com/tegal1337/cilocks/blob/main/info/get.php) (Geolocation capture), [`post.php`](https://github.com/tegal1337/cilocks/blob/main/post.php) (Image receiver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_toolkit["Device toolkit"]
  node_cli["CiLocks CLI"]
  node_adb["ADB toolkit"]
  node_locktools["Lock tools"]
  node_payloads["Payload tools"]
  node_phone["Phone control"]
  node_iosfire["iOS / Firestore"]
end

subgraph group_web["Web collection"]
  node_landing["Landing redirect<br/>[index.php]"]
  node_ipcapture["IP capture<br/>[ip.php]"]
  node_iplog["IP log"]
  node_geocapture["Geolocation capture<br/>[get.php]"]
  node_geolog["Geolocation log"]
  node_imageupload["Image receiver<br/>[post.php]"]
  node_images["Captured images"]
end

subgraph group_android["Android app"]
  node_unlock["Keyguard bypass app<br/>[unlock.java]"]
end

node_operator(("Operator"))
node_webvisitor(("Web visitor"))
node_androiduser(("Android user"))

node_operator -.->|"runs"| node_cli
node_cli -.->|"offers tools"| node_adb
node_cli -.->|"offers tools"| node_locktools
node_cli -.->|"offers tools"| node_payloads
node_cli -.->|"offers control"| node_phone
node_cli -.->|"offers features"| node_iosfire
node_webvisitor -->|"requests"| node_landing
node_landing -->|"includes"| node_ipcapture
node_ipcapture -->|"appends"| node_iplog
node_webvisitor -.->|"submits data"| node_geocapture
node_geocapture -->|"appends"| node_geolog
node_webvisitor -.->|"submits image"| node_imageupload
node_imageupload -->|"writes image"| node_images
node_androiduser -->|"uses"| node_unlock

click node_landing "https://github.com/tegal1337/cilocks/blob/main/index.php"
click node_ipcapture "https://github.com/tegal1337/cilocks/blob/main/ip.php"
click node_geocapture "https://github.com/tegal1337/cilocks/blob/main/info/get.php"
click node_imageupload "https://github.com/tegal1337/cilocks/blob/main/post.php"
click node_images "https://github.com/tegal1337/cilocks/tree/main/cam"
click node_unlock "https://github.com/tegal1337/cilocks/blob/main/AntiGuard/src/io/kos/antiguard/unlock.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_adb,node_locktools,node_payloads,node_phone,node_iosfire,node_androiduser toneBlue
class node_landing,node_ipcapture,node_iplog,node_geocapture,node_geolog,node_imageupload,node_images toneAmber
class node_unlock toneMint
class node_operator,node_webvisitor toneIndigo
```

## Components

### Device toolkit

- **CiLocks CLI**
- **ADB toolkit**
- **Lock tools**
- **Payload tools**
- **Phone control**
- **iOS / Firestore**

### Web collection

- [Landing redirect](https://github.com/tegal1337/cilocks/blob/main/index.php): `index.php`
- [IP capture](https://github.com/tegal1337/cilocks/blob/main/ip.php): `ip.php`
- **IP log**
- [Geolocation capture](https://github.com/tegal1337/cilocks/blob/main/info/get.php): `info/get.php`
- **Geolocation log**
- [Image receiver](https://github.com/tegal1337/cilocks/blob/main/post.php): `post.php`
- [Captured images](https://github.com/tegal1337/cilocks/tree/main/cam): `cam`

### Android app

- [Keyguard bypass app](https://github.com/tegal1337/cilocks/blob/main/AntiGuard/src/io/kos/antiguard/unlock.java): `AntiGuard/src/io/kos/antiguard/unlock.java`

### Other components

- **Operator**
- **Web visitor**
- **Android user**

## Connections

- Operator → CiLocks CLI: runs
- CiLocks CLI → ADB toolkit: offers tools
- CiLocks CLI → Lock tools: offers tools
- CiLocks CLI → Payload tools: offers tools
- CiLocks CLI → Phone control: offers control
- CiLocks CLI → iOS / Firestore: offers features
- Web visitor → Landing redirect: requests
- Landing redirect → IP capture: includes
- IP capture → IP log: appends
- Web visitor → Geolocation capture: submits data
- Geolocation capture → Geolocation log: appends
- Web visitor → Image receiver: submits image
- Image receiver → Captured images: writes image
- Android user → Keyguard bypass app: uses
