All Projects → astryzia → BashScan

astryzia / BashScan

Licence: MIT License
BashScan is a port scanner built to utilize /dev/tcp for network and service discovery on systems that have limitations or are otherwise unable to use alternative scanning solutions such as nmap.

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to BashScan

UtilityBelt
Fun console application
Stars: ✭ 16 (-88.41%)
Mutual labels:  portscanner
ShoScan
Shodan Port Scanner
Stars: ✭ 38 (-72.46%)
Mutual labels:  portscanner
portsscan
A web client port-scanner written in GO, that supports the WASM/WASI interface for Browser WebAssembly runtime execution.
Stars: ✭ 68 (-50.72%)
Mutual labels:  portscanner
beholder scanner
一款监控端口变化的系统——beholder_scanner端
Stars: ✭ 63 (-54.35%)
Mutual labels:  portscanner
PSnmap
Svendsen Tech's PowerShell nmap-like port scanner accepting IPv4 CIDR notation
Stars: ✭ 37 (-73.19%)
Mutual labels:  portscanner
beholder web
一款监控端口变化的系统——beholder_web端
Stars: ✭ 18 (-86.96%)
Mutual labels:  portscanner
porthog
Identify which process is using a specific port.
Stars: ✭ 27 (-80.43%)
Mutual labels:  portscanner

BashScan

License contributions welcome Follow on Twitter

BashScan

BashScan is a port scanner built to utilize /dev/tcp for network and service discovery on systems that have limitations or are otherwise unable to use alternative scanning solutions such as nmap.

Installation

For users with more environmental flexibility, simply clone the repository and execute run.sh.

HTTPS git clone https://github.com/astryzia/BashScan.git

SSH git clone [email protected]:astryzia/BashScan.git

chmod +x *.sh lib/*.sh

On more limited systems, the bashscan.sh script can be downloaded and ran as a monolithic all-in-one solution. Included in the repository is a script named unify.sh that will combine all libraries and functions into the independent bashscan.sh script for those who make tweaks and/or port the script elsewhere for use.

How to use

Examples

./run.sh -r -p 22,80,443,3306,3389 -b

./run.sh -r --top-ports 1000 -T 6 -b

./run.sh --root --timing 6 --banner -p 22 10.0.0.1

./run.sh --root --timing 6 --banner -p 22 10.0.0.1-100

Alternatively, using the monolithic script

./bashscan.sh -r -p 22,80,443,3306,3389 -b

./bashscan.sh -r --top-ports 1000 -T 6 -b

./bashscan.sh --root --timing 6 --banner -p 22 10.0.0.1

./bashscan.sh --root --timing 6 --banner -p 22 10.0.0.1-100

Options

-h | --help Displays help message with usage options

-b | --banner Attempt to grab banners during port scanning

-p | --ports <PORTS> Comma-separaated list or range of integers up to 65535

-r | --root Force ARP ping to run even if user doesn't have root privileges

-t | --top-ports <1+> Specify number of top TCP ports to scan (default = 20)

-T | --timing <0-6> Timing template (default = 4)

-v | --version Print version

Dockerized example

To build the dockerized image run make build or make all to build and run the BashScan image. Examples to interact with the container:

./docker_bashscan.sh -r -p 22,80,443,3306,3389 -b

make run -r -p 22,80,443,3306,3389 -b

Contributors

The list of contributors can be found here. Thank you for everything!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].