Skip to content
Extremely simple way to gather a basic inventory of hosts on your network
PHP HTML Visual Basic Shell JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
inventory
linux_scan_script
windows_scan_script
LICENSE
README.md
inventory.sql

README.md

inventory

Description

Extremely simple and quick way to gather a basic inventory of hosts on your network This was created using Centos 7, Apache, MariaDB, and PHP.

Instructions

  1. Create a database called "inventory".
  2. Import the .sql file into that database.
  3. Set up an Apache server with PHP support.
  4. In the codebase, there's an includes dir with a database class. Put the database credentials in there.
  5. Put the codebase into the web root so that apache can serve up the files (thought that one would be obvious)
  6. Put the bash script on a Linux box that can scan all the target hosts, but can also reach the web server created above. For example, you could put one of these on a jump box for each isolated environment. This script assumes that you have put a public key on each target linux host that will allow the script to log in and gather the information.
  7. Put the scan range(s) into the script.
  8. Put the hostname of the server you're going to post all this information to into the script.
  9. Put the vbscript on a Windows box. This could be a Windows jump box. You'll need to put credentials into the vbscript that are valid on whatever servers you are scanning. If you want to try multiple credentials, the script allows for that. Just add multiple items in the arrUser and arrPassword arrays. It will loop through them. Make sure the credentials match up (i.e. the first username goes with the first password, etc).
  10. Put the appropriate script on each jump host such that all servers in all environments can be reached.
  11. Put the scan range into the script.
  12. Put in the hostname of the server you're going to post all this information to.
  13. The scripts run on the jump hosts, and scan the target host subnet ranges. They then take the information that they gather and post it back to the web server.
You can’t perform that action at this time.