0.1.2 • Published 11 years ago

shell-trigger v0.1.2

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

Shell Trigger

About

It can happen to anyone. You've logged into shell on your production node.js server. You've executed the 'last' command—to see when you last logged in. Now you're having one of those heart-in-mouth moments as you see someone—apparently, but definitely not, you—logged in at 2am this morning. You were asleep. Uh oh...

Shell trigger generates a hash digest of the 'last' command's output at regular intervals and fires a callback, or kills the process entirely, when a change is detected.

Install

npm install shell-trigger

Usage

options = {cb: -> console.log 'intrusion detected'}
trigger = require('shell-trigger')(options)
0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago