-
Notifications
You must be signed in to change notification settings - Fork 16
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 #7 from nerdalert/brent-formatting
- Loading branch information
Showing
5 changed files
with
108 additions
and
38 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
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,14 @@ | ||
FROM debian | ||
|
||
MAINTAINER Brent Salisbury <[email protected]> | ||
|
||
# build initial cache | install binary | remove cache | ||
RUN apt-get update -qq \ | ||
&& apt-get install -y fping \ | ||
&& apt-get clean | ||
|
||
# The usage example will execute fping and any arguments passed. | ||
# once complete, Docker will delete the container if --rm was used: | ||
# Try it out with: docker run -it --rm networkstatic/fping -help | ||
|
||
ENTRYPOINT ["fping"] |
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,29 @@ | ||
### fping | ||
|
||
[Fping](http://fping.org/fping.1.html) for network testing e.g. ping on steroids. | ||
|
||
*Example Fping Usage:* | ||
|
||
* View the help options | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/fping -help | ||
``` | ||
|
||
* Ping a range of IP addresses | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/fping echo 10.1.5.{1,2,3,4,5} | fmt -1 | fping | ||
``` | ||
|
||
* Ping and print the latency of a range of hosts represented by a network CIDR notation | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/fping -aeg 192.168.1.0/24 | ||
``` | ||
|
||
* Ping a range of hosts and record the output and latency to a text file named `uptime.txt` | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/fping -aeg 192.168.1.0/24 > uptime.txt | ||
``` |
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,14 @@ | ||
FROM debian | ||
|
||
MAINTAINER Brent Salisbury <[email protected]> | ||
|
||
RUN apt-get update -qq \ | ||
&& apt-get install -y nmap \ | ||
&& apt-get clean | ||
|
||
# A couple of example usages: | ||
# [ docker run -it --rm networkstatic/nmap --help ] | ||
# Scan for open ssh (tcp/22) ports on a range of IPs | ||
# [ docker run -it --rm networkstatic/nmap -sT 192.168.1.1-100 -p 22 ] | ||
|
||
ENTRYPOINT ["nmap"] |
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,42 @@ | ||
### nmap | ||
|
||
[Nmap](https://nmap.org) is a perennial favorite for security fuzzing. | ||
|
||
*Example NMAP Usage:* | ||
|
||
* Scan a single host for all open TCP ports with `-sS` (TCP SYN scan) | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/nmap -sT 192.168.1.1 | ||
``` | ||
|
||
* Scan for open ssh (tcp/22) ports on a range of IPs. | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/nmap -sS 192.168.1.1-100 -p 22 | ||
``` | ||
|
||
* Scan multiple hosts | ||
|
||
``` | ||
nmap 192.168.1.1 192.168.1.2 192.168.1.3 | ||
``` | ||
|
||
* Scan a range of hosts (192.168.1.1 through 192.168.1.50) | ||
|
||
``` | ||
nmap 192.168.1.1-50 | ||
``` | ||
* Scan a range of hosts for a specified range of ports (70 through 90) | ||
|
||
``` | ||
nmap 192.168.1.1-50 -p 70-90 | ||
``` | ||
|
||
* As with most of the apps listed, add `--help` to view additional options. | ||
|
||
``` | ||
$ docker run -it --rm networkstatic/nmap --help | ||
``` | ||
|
||
More detailed usage at [nmap.org](https://nmap.org/book/man-briefoptions.html) |