Here's my script that can capture the user details with devices (except mobile app).
The script looks unprofessional but the function is working.
1. Any OS that can run php command.
2. Any OS that can create scheduled task/Crontab
3. Create a file and copy the scripts below.
4. Create a scheduled tasks that run below script.
5. Add a script to send an email and attach the file once the php script finishes running.
Code is on comment