SSH/SFTP Checker

How the SSH checker works

Brief: multithreaded SSH checker that tries credentials from a list, logs successes and failures, and gathers basic info (permissions, SFTP file list).

Workflow

  • Reads lines in host:port:username:password format from a user-selected file.
  • Uses a worker queue and many threads to attempt SSH connections via paramiko.
  • On success: records host:username:password, retrieves permissions (via id)
  • and attempts SFTP listing; writes extended info to logs.
  • If initial credentials fail, attempts a set of standard creds
  • (e.g. root:root) before marking as bad.
  • Maintains counters for total/processed/good/bad, runs a periodic progress
  • monitor, and saves logs under logs_SSH/.

    Notes

  • Input validation, per-line error handling, and thread-safe logging are
  • included.
  • Default SSH port used is 22.