go-protocol-detector

module
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: MIT

README

Go Protocol Detector

[中文]

Network protocol detector.

Not Stable Version !

May be refactored in future use.

Support Protocol

  • RDP

  • FTP

  • SFTP

    Something you should know, first, SSH validation is required, then check SFTP Client protocol.

    I think it need implemented by gopacket

  • SSH

  • VNC

  • Telnet

How to use

Use From Code:
Use From Executable Program:

Releases

NAME:
   go-protocol-detector - use like: go-protocol-detector --protocol=rdp --host=172.20.65.89-101 --port=3389

USAGE:
   go-protocol-detector [global options] command [command options] [arguments...]

VERSION:
   v0.10.0

DESCRIPTION:
   Multi-protocol scan tool

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h        show help (default: false)
   --host value      support 3 diffs types: 192.168.1.1,192.168.1.100-254,192.168.1.0/24 (default: "192.168.1.1")
   --password value  if you scan sftp, need give a Password: root (default: "root")
   --port value      support like: 22,80,443,3380-3390 (default: "22")
   --prikey value    if you scan sftp, need give a pri key Full Path( user name or this priKeyFPath only chose one): ~/.ssh/id_rsa (default: "~/.ssh/id_rsa")
   --protocol value  select only one protocol: rdp | ssh | ftp | sftp | telnet | vnc | common (default: "common")
   --thread value    10 (default: 10)
   --timeout value   1000 ms (default: 1000)
   --user value      if you scan sftp, need give a UserName: root (default: "root")
   --version, -v     print the version (default: false)

Example:

go-protocol-detector --protocol=rdp --host=172.20.65.89-101 --port=3389

go-protocol-detector --protocol=rdp --host=172.20.65.89-101 --port=3389,1024-2000

go-protocol-detector --protocol=sftp --host=172.20.65.89-101 --port=3389 --user=root --password=123

go-protocol-detector --protocol=sftp --host=172.20.65.1/24 --port=3389 --password=123 --prikey=/keys/privatekey

TODO

How to implement

[中文教程]

Thanks

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL