Command line tool to authenticate fortigate, Written in C++
If you are compiling from source, then you need libcurl
.
Install using
sudo apt-get install libcurl4-openssl-dev
git clone https://github.com/ms-jagadeeshan/fortigate-authenticate.git
cd fortigate-authenticate/src
g++ fauth.cpp util.cpp -o ../bin/fauth -lcurl
This will clone and compile the program.
Binary program is stored under fortigate-authenticate/bin
folder
# ./fauth username:password
$ ./fauth ma30c203:1234
# or to securely enter password, don't pass any argument, program will ask for username and password
$ ./fauth
> Enter username:
> Enter password: