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
  • Automatically adds the package to your PATH during installation

Installation

One-Click Installation (Recommended)

# Using curl (Mac/Linux)
curl -sSL https://raw.githubusercontent.com/yourusername/remote-detector/main/easy_install.py | python3

# Using wget (Linux)
wget -qO- https://raw.githubusercontent.com/yourusername/remote-detector/main/easy_install.py | python3

# Or download and run the script
python3 easy_install.py

The one-click installer will:

  • Install the remote-detector package
  • Set up PATH automatically
  • Configure MongoDB connection URL
  • Make the tool immediately usable

Standard PyPI Installation

pip3 install remote-detector

The installer will automatically try to add the package to your PATH.

From source

  1. Clone the repository or download the package
  2. Install the package:
    pip3 install --upgrade .
    
    The installer will attempt to automatically add the package to your PATH.

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.
  • If the remote-detector command is not found after installation:
    • The installer should automatically add it to your PATH
    • You may need to restart your terminal or run source ~/.bashrc or source ~/.zshrc
    • You can manually add the bin directory to your PATH: export PATH="$HOME/Library/Python/3.x/bin:$PATH" (replace 3.x with your Python version)

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for remote_detector-0.1.2.tar.gz
Algorithm Hash digest
SHA256 899f317f446331dfcba3a23eda78de978947c0a7be64a905f4cf3fbc06e0e6bc
MD5 7a3f6b6cbd830f1f96aa32a6242045c5
BLAKE2b-256 13cb0ee38350920d5b86159a1b373285c685ec8d3e40b2edcbd2f87d0734006f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for remote_detector-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5675ff28d2e50e6ec940405f45eebf29389a19ecad20e6d3b030f2df4a200261
MD5 ab287ddf1605e0943eb19c0e73d7b8f2
BLAKE2b-256 947c3fee3a2bf25d2cfb5afbfe0cef48936495946f34a9e6c50cac2404d18bda

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