sb-portscanner

command module
v0.0.0-...-e20221a Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Port scanner in GoLang

This is simple Port scanner cli tool written in GO.

A fully functional cli tool to probe a target IP address scanning for open ports!

This project is a simple implementation of port scanner in GO.

  • Create a simple port scanner
  • Scan for open ports on the target ip address
  • Scan for open ports in a given port range or all the ports
  • Dynamically change the timing of the packets sent

How to build

Install in linux sb-portscanner
go install github.com/secopsbear/sb-portscanner@latest
Build for linux
go build -o sb-portscanner
Build for window

Generate an executable sb-portscanner.exe for windows environment.

env GOOS=windows GOARCH=amd64 go build -o sb-portscanner.exe

Example command

sb-portscanner scan 10.10.11.188 -r 20-100 -o ip188.txt
sb-portscanner scan -h
Port scanner to probe for all open ports on a target IP.

Usage:
  sb-portscanner scan [IP address] [flags]

Flags:
  -h, --help               help for scan
  -o, --outFile string     Enter the output file name
  -r, --portRange string   Enter "all" to scan all ports or between 1 to 65535 in format 20-4000 (default "1-1000")
  -p, --protocol string    Protocol to scan in tcp/udp (default "tcp")
      --proxy string       Proxy to use for requests [host:port]
  -s, --smartProbe         Sends the pack with random [0-30]milliseconds time interval to the target
  -t, --threads int        Enter the number of concurrent threads running (default 10)

Find a bug?

If you found an issue or would like to submit an improvement to this project, please submit an issue using the issues tab above.

Documentation

Overview

Copyright © 2023 SecOpsBear bear@secopsbear.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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