Skip to content

BitterMug/PingSweep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PingSweep

Simple ping scan connected to mysql database for longterm usage and statistics. Starts http server on 8081 for data access.

MySQL setup:

> CREATE DATABASE webData;
> CREATE USER 'admin'@'localhost' IDENTIFIED BY 'Arsenrot';
> GRANT ALL PRIVILEGES ON webData.* TO 'admin'@'localhost';
> FLUSH PRIVILEGES

Requests

localhost:8081/api/ping
localhost:8081/api/ping/"ip"
localhost:8081/api/activity
localhost:8081/api/activity/"ip"
localhost:8081/api/activity/week?weeknum="{weeknum}" //Get activity of week before today
localhost:8081/api/activity/lastweek

Activity gets formated for future usage in app for easy visualisation per user, days in week and hour.

Only successful pings and nameList for aliases are stored in db. Statistics calculated on request.

Not suteable for specific deployment without major changes in code. Config accesability is not priority for initial purpose of this SW. SW is provided "AS IS", without warranty of any kind expressed or implied and should be handled as such. Developed for educational purposes and sould not be viewed as template for real life aplication.

About

Simple ping scan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages