trustedsec / CS-Situational-Awareness-BOF

Situational Awareness commands implemented using Beacon Object Files
GNU General Public License v2.0
1.26k stars 218 forks source link

Add netuptime & netloggedon #88

Closed RemiEscourrou closed 1 year ago

RemiEscourrou commented 1 year ago

2 additional netapi functions that can be useful:

Output preview:

> netloggedon 192.168.232.133
[12/16 11:38:10] [+] Running netloggedon (T1049)
[12/16 11:38:10] [*] Running netloggedon (T1049)
[12/16 11:38:10] [+] host called home, sent: 2914 bytes
[12/16 11:38:10] [+] received output:
Users logged on: 
---------------------192.168.232.133----------------------------------

Username: Administrator
Domain:       TEST
Oth_domains:  
Logon server: WIN-5JLDL6DRRAD

> netuptime 192.168.232.133
[12/16 11:38:11] [+] Running netuptime (T1082)
[12/16 11:38:11] [*] Running netuptime (T1082)
[12/16 11:38:11] [+] host called home, sent: 2810 bytes
[12/16 11:38:11] [+] received output:
ServerName:   192.168.232.133
Boot time:    2022-12-01 13:53:37