Skip to content

Simple service to log consultant's IP address during engagements

Notifications You must be signed in to change notification settings

TechArchSA/LogMyIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Log My IP

A simple service to log consultant's IP address during engagements.

The application contains 2 files:

  • logmyip.rb: The core application
  • logmyipd.rb: The daemon, which runs the core application as a service to avoid keep shell/cmd open all the time.

Features

  • Runs as a daemon (support: start, stop, status command and Linux daemons)
  • Support desktop notification

Requirements

gem install daemons libnotify

Usage

Run the service

Notice the -- used for logmyip.rb mandatory argument, which is the desired log directory path

ruby logmyipd.rb start -- /log/path/

Check service status

ruby logmyipd.rb status

Stop the service

ruby logmyipd.rb stop

Troubleshooting

ruby logmyipd.rb run -- /log/path/

Note: Desktop notification supports Linux only, If you are going to run it on Windows, please comment out all likes that contains notify and Libnotify from the code, then you'll good to go.

Changelog

  • [Feature] Add run as a daemon
  • [Fix] Repeated IP in logs
  • [Feature] Adding desktop notification
  • [Fix] If a file path is given instead of directory path
  • [Fix] Repeated IP logic

About

Simple service to log consultant's IP address during engagements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages