This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.
First, please read this awesome Medium tutorial on how to setup the Telegram bot.
I hereby claim:
- I am mmichaelb on github.
- I am mmichaelb (https://keybase.io/mmichaelb) on keybase.
- I have a public key whose fingerprint is 2463 F790 3522 87C3 70A7 EB31 E307 4CE4 7196 E8D3
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package multipartdetection | |
import ( | |
"bufio" | |
"bytes" | |
"errors" | |
) | |
const ( | |
// MultipartBodySniffLength declares the amount of bytes to read from the multipart body in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
tvdburgtArgon2 "github.com/tvdburgt/go-argon2" | |
goCryptoArgon2 "golang.org/x/crypto/argon2" | |
"log" | |
"strconv" | |
"testing" | |
) |