https://github.com/akamajoris/lastlogparser
lastlog file parser (golang + cgo)
https://github.com/akamajoris/lastlogparser
golang lastlog parser
Last synced: 5 months ago
JSON representation
lastlog file parser (golang + cgo)
- Host: GitHub
- URL: https://github.com/akamajoris/lastlogparser
- Owner: akamajoris
- Created: 2017-10-26T09:17:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T10:11:27.000Z (over 8 years ago)
- Last Synced: 2024-06-20T03:42:12.517Z (about 2 years ago)
- Topics: golang, lastlog, parser
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
root@ubuntu:~/lastlogparser# go build && ./lastlogparser
2017/10/26 02:21:09 &main.UserInfo{Name:"root", Line:"pts/19", Host:"127.0.0.1", Last:"2017-09-01 09:40:45 -0700 PDT"}
2017/10/26 02:21:09 &main.UserInfo{Name:"daemon", Line:"", Host:"", Last:"**Never logged in**"}
2017/10/26 02:21:09 &main.UserInfo{Name:"bin", Line:"", Host:"", Last:"**Never logged in**"}
2017/10/26 02:21:09 &main.UserInfo{Name:"sys", Line:"", Host:"", Last:"**Never logged in**"}
2017/10/26 02:21:09 &main.UserInfo{Name:"sync", Line:"", Host:"", Last:"**Never logged in**"}
...
2017/10/26 02:21:09 &main.UserInfo{Name:"sshd", Line:"", Host:"", Last:"**Never logged in**"}
2017/10/26 02:21:09 &main.UserInfo{Name:"lolkin", Line:"pts/18", Host:"127.0.0.1", Last:"2017-10-25 08:09:29 -0700 PDT"}
```