This repository contains a simple vulnerability scanner for the Terrapin attack present in the paper "Terrapin Attack: Breaking SSH Channel Integrity By Sequence Number Manipulation".
Moved the scanning bits into a package so it can be imported by others.
Added comments for anything exported from the tscanner package.
Made variables that are not needed to be exported private.
Added a verbose arg to the Scan function that will state the listening address/port if the caller needs.
I am building stuff on top of this scanner and if this logic was inside a package it will allow me (and others) to import this logic rather than fork this repo and edit things as needed. I called the package "tscanner" because "scanner" is already a part of the std lib. Thank you for the work you've done on this and I hope all is well! :rocket: :christmas_tree: :santa:
Thanks for coming up with this PR! While the original idea of the scanner was to be a simple console application, making it importable doesn't seem to be a bad idea.
I am building stuff on top of this scanner and if this logic was inside a package it will allow me (and others) to import this logic rather than fork this repo and edit things as needed. I called the package "tscanner" because "scanner" is already a part of the std lib. Thank you for the work you've done on this and I hope all is well! :rocket: :christmas_tree: :santa: