Skip to content

a demonstration Github/Docker/bash project that is both handy and introduces a few concepts

License

Notifications You must be signed in to change notification settings

MarcDoughty/mpd-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpd-scanner

This is a demonstration project that is both handy and introduces a few concepts.

  1. There's a code workflow through GitHub.
  2. There's a Docker container running Kali Linux that we can run on any system that can run Linux containers.
  3. There's a simple bash script with options we can pass to it for different scans.
  4. There's persistent storage on the host.

Getting the Code

  1. CD to a place on your computer you want the project to live.
  2. Run 'git clone https://github.com/MarcDoughty/mpd-scanner.git'
  3. CD to 'mpd-scanner'
  4. Read through the project, starting from the Dockerfile and ending in scanner.sh.

Building and Updating the container

To build or update the container, CD to the project directory and run:

docker pull kalilinux/kali-rolling (this pulls the latest Kali Linux image from [https://hub.docker.com/r/kalilinux/kali-rolling])

docker build . -t mpd-scanner (this uses the Dockerfile to add to the Kali Linux image, and names it in the local container registry)

Using

The scanner will perform a scan of the targets in targets.txt, one IP or FQDN target per line (nmap can accept ranges, per its documentation). The type of scans are defined in stanzas within scanner.sh (you are welcome to add your own) and are passed to the container as environment vairable SCANTYPE when you run the scanner.

To run the scanner, use this command:

docker run -e SCANTYPE=portscan --mount type=bind,source=/full/path/to/mpd-scanner,target=/mount/mpd-scanner mpd-scanner /mount/mpd-scanner/scanner.sh (This runs the container you just built, and 'binds' the container to your local project folder so your output is saved locally)

About

a demonstration Github/Docker/bash project that is both handy and introduces a few concepts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published