https://github.com/jmcph4/dms
dms is a dead man's switch for Windows.
https://github.com/jmcph4/dms
c-plus-plus cpp dms security tool
Last synced: about 1 year ago
JSON representation
dms is a dead man's switch for Windows.
- Host: GitHub
- URL: https://github.com/jmcph4/dms
- Owner: jmcph4
- Created: 2015-01-23T02:23:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-23T02:24:14.000Z (over 11 years ago)
- Last Synced: 2025-02-16T00:44:46.602Z (over 1 year ago)
- Topics: c-plus-plus, cpp, dms, security, tool
- Language: C++
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dms - The Dead Man's Switch #
---
dms is a dead man's switch for Windows. I was inspired to write it by [an article](http://blog.viktorpetersson.com/post/108852454049/a-dead-mans-switch-for-your-computer) I found while on [Hacker News](https://news.ycombinator.com/item?id=8931735).
Basically, it accepts two arguments from the command line - the path to the "canary file" (as I call it) and an unsigned integer representing the number of seconds to wait after each check (inversely proportional to your paranoia) - like so:
`dms canaryfile seconds`
For example, check for the file `foo.txt` every `5` seconds:
`dms foo.txt 5`
It makes use of the Win32 API, so factor that in if you're playing with the code. Although, this is very simple to do with pretty much any programming language worth learning.