← Other projects

Antitheft go

CLI tool helps you to find stolen laptop

Source code GoDoc

That tools will help you to find stolen laptop. It collects following information:

and sends it to your email address.

Configuration $HOME/.config/antitheft.json:

{
    "here": {
        "apikey": "YOUR here.com API Key. It's optional"
    },
    "mail": {
        "host": "smtp.yourmailprovider.com",
        "port": 587,
        "user": "user@yourmailprovider.com",
        "password": "your_password",
        "subject": "Laptop information",
        "recipient": "where-should-i-send-email@yourmailprovider.com"
    }
}

Install

Binary

  1. Download from releases page
  2. Save in preferred directory (don’t forget about $PATH, so the best solution is to place /bin/any-name-that-you-want)
  3. chmod +x /path/to/binary

Golang

  1. go get gitlab.com/rakshazi/antitheft
  2. go install gitlab.com/rakshazi/antitheft

Usage

You may use it as you want, but here is list of examples

cron, hourly

  1. crontab -e
  2. Add 0 * * * * /path/to/binary

After that, you will receive report to your email, every hour