Skip to main content

Detects remote access tools and logs ERP login to MongoDB.

Project description

Remote Detector

A Python CLI tool to detect remote access applications (like AnyDesk, TeamViewer, Getscreen, etc.) running on your system, log ERP login details, and push all logs to MongoDB for centralized monitoring.


Features

  • Detects remote access tools running on your system
  • Prompts for IIITA ERP login and fetches academic details
  • Logs detection events and ERP login info to DB
  • Each log includes system username, ERP username, detected app name, and timestamp

Installation

  1. Clone the repository or download the package
  2. Create and activate a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
    
  3. Install dependencies and the package:
    pip install --upgrade .
    pip install pymongo
    

Environment Setup

Set your MongoDB connection string as an environment variable:

export MONGO_URL=url

Usage

Start the CLI tool:

remote-detector start --duration 0.1
  • You will be prompted for your ERP username (UID), password, and batch.
  • The tool will log ERP details and immediately detect and log any remote access applications running.
  • All logs are pushed to your MongoDB collection (remote_detector.logs).

Log Structure in MongoDB

Each detection log will look like:

{
  "system_username": "<your system username>",
  "erp_username": "<ERP UID>",
  "app_name": "<name of application detected>",
  "timestamp": "<ISO timestamp of detection>"
}

Troubleshooting

  • If logs do not appear in MongoDB:
    • Ensure pymongo is installed
    • Check your MongoDB URI and network access (IP whitelisting)
    • Watch for error messages in your terminal
  • If you see logs in remote_detector.log file but not in MongoDB, the logger is falling back to file logging due to a connection issue.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remote_detector-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remote_detector-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file remote_detector-0.1.1.tar.gz.

File metadata

  • Download URL: remote_detector-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for remote_detector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0193521dc9d7e5e235778983ce5306080c2c2435a20fff4c8a701b58e2225d19
MD5 44f647138bdf94b443c491ea82f3c86d
BLAKE2b-256 694c4b304cff4b054587ef6517d896947d298d227a0be0f6213576595c6305cb

See more details on using hashes here.

File details

Details for the file remote_detector-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for remote_detector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16ba0c644ecd955863b5e4ba81e5bf41a66fe42d6f44e6fe15745643fa288396
MD5 d4118c571d69280a54ce75cc29c2f8a1
BLAKE2b-256 55c7980541933b5618eca9d79f4fa690f0876fd058c457455ae78bcadd0c1cc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page