GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - flowchartsman/deadman: A usb-based dead man's switch

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
github
github
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
config.go
config.go
 
 
deadman.conf.example
deadman.conf.example
 
 
deadman_windows.manifest
deadman_windows.manifest
 
 
device.go
device.go
 
 
filecheck.go
filecheck.go
 
 
main.go
main.go
 
 
shutdown.go
shutdown.go
 
 
shutdown_darwin.go
shutdown_darwin.go
 
 
shutdown_linux.go
shutdown_linux.go
 
 
shutdown_windows.go
shutdown_windows.go
 
 
usb_enum_darwin.go
usb_enum_darwin.go
 
 
usb_enum_linux.go
usb_enum_linux.go
 
 
usb_enum_windows.go
usb_enum_windows.go
 
 

Repository files navigation

deadman

a usb-based dead man's switch for your computer.

Usage

sudo ./deadman

-or-

deadman.exe

Can be killed with SIGINT (ctrl-c)

Purpose

deadman is intended as an anti-forensics/compulsion tool that will prevent or limit access to your machine if you are compelled away from it, or a device is attached to it without your consent. While it is running, if any USB device is attached or removed, it will execute a forced shut down. Possible use cases could involve a usb fob attached to the user with a lanyard as a kill switch, or as a countermeasure to devices like mouse jigglers or programmable HID devices.

Inspiration

I recently came across heaphaest0s' cool project, usbkill, which is written in Python. I thought I might be able to improve it somewhat by making an alternative Go version that would have no external dependencies and also would work on Windows 7/8. It currently has feature parity with USBKill, though new features are being developed all the time.

TODO

  • Moar testing
  • Moar docs
  • Add support for FreeBSD
  • Device whitelisting
  • Better logging. You won't see much at the moment as it shuts down as soon as it can.
  • Hook into system calls as much as possible. For now, linux and OSX systems parse lsusb or its equivalent every second. There is a branch in development for an event-based model, though this still requires polling in both OSX and Windows. On linux, it can receive udev events via a netlink socket. Whether a similar model is easily obtained in OSX or is even possible in Windows at all is being researched. In the meantime, a more efficient method of polling via WMI is being developed.

About

A usb-based dead man's switch

Resources

Readme
Activity

Stars

145 stars

Watchers

4 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.