forked from robertdavidgraham/masscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from robertdavidgraham/master
111
- Loading branch information
Showing
140 changed files
with
9,976 additions
and
3,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: masscan unit tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [master] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
regress: | ||
name: Run regression tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout masscan | ||
uses: actions/checkout@v3 | ||
- name: Install libpcap-dev | ||
if: ${{ vars.RUNNER_OS == 'Linux' }} | ||
run: sudo apt-get install -y libpcap-dev | ||
- name: Run regression tests | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
paused.conf | ||
.Makefile.swp | ||
.vscode | ||
vs10/.vs/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[![Build Status](https://travis-ci.org/robertdavidgraham/masscan.svg?branch=master)](https://travis-ci.org/robertdavidgraham/masscan.svg) | ||
[![unittests](https://github.com/robertdavidgraham/masscan/actions/workflows/unittests.yml/badge.svg?branch=master)](https://github.com/robertdavidgraham/masscan/actions/workflows/unittests.yml/?branch=master) | ||
|
||
# MASSCAN: Mass IP port scanner | ||
|
||
|
@@ -152,11 +152,11 @@ On FreeBSD and older MacOS, use an `ipfw` command: | |
On newer MacOS and OpenBSD, use the `pf` packet-filter utility. | ||
Edit the file `/etc/pf.conf` to add a line like the following: | ||
|
||
block in proto tcp from any to any port 40000 | ||
block in proto tcp from any to any port 40000:40015 | ||
|
||
Then to enable the firewall, run the command: | ||
|
||
# pfctrl -E | ||
# pfctl -E | ||
|
||
If the firewall is already running, then either reboot or reload the rules | ||
with the following command: | ||
|
@@ -504,7 +504,7 @@ probably faster than you want anyway. | |
A bounty is offered for vulnerabilities, see the VULNINFO.md file for more | ||
information. | ||
|
||
This project uses safe functions like `strcpy_s()` instead of unsafe functions | ||
This project uses safe functions like `safe_strcpy()` instead of unsafe functions | ||
like `strcpy()`. | ||
|
||
This project has automated unit regression tests (`make regress`). | ||
|
@@ -599,3 +599,19 @@ at which they perform this calculation, making `masscan` much faster. | |
This tool created by Robert Graham: | ||
email: [email protected] | ||
twitter: @ErrataRob | ||
|
||
# License | ||
|
||
Copyright (c) 2013 Robert David Graham | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, version 3 of the License. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.