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.0.tar.gz (8.4 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.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: remote_detector-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 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.0.tar.gz
Algorithm Hash digest
SHA256 2939f40a12ea0a0be05ca3c24661e23fff4030ebaeee54ffece0b99e84b6c064
MD5 0becf2d398d83e631e50a480b6b108a5
BLAKE2b-256 e7b593245dd5a87154a8ca93a30796159f075c88ee2aa099e44aa3f55074c538

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for remote_detector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e223c8a91c254e20d6a6561cac361fd8afb139bf51e22b3cb09a1939c7868de1
MD5 1a54a61cd00cc513516ceda305dbbe76
BLAKE2b-256 d2f4071db74beef934983b6aa88a41d80c4a0c18050ebbc2b1105c304c2b9365

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