Monday, February 1, 2021

lslogins command within Linux

The lslogins command returns details for user accounts.  The command will display information on all accounts including service accounts by default.  To only view user accounts, use the -u switch.


To view details for a particular user account, use the user name.


Use the switch -uf to view failed logins.


Use the -ua switch to view password expiration details.









Convert to CSV web site

The following web site offers several options to convert data to and from the .CSV format.

http://convertcsv.com/

Duf

Duf is a disk usage utility.  It is available for multiple platforms.

https://github.com/muesli/duf



Text File Splitter

Text File Splitter is a free Windows utility that allows you to split a large text or log file into multiple, smaller files.

http://textfilesplitter.org/

ZMap

ZMap is a fast single packet network scanner designed for Internet-wide network surveys.

https://github.com/zmap/zmap

INetSim

INetSim is a software suite for simulating common internet services in a lab environment.

https://www.inetsim.org/

CodeSandbox

 CodeSandbox is an online coding environment that has a free trier.

https://codesandbox.io/

Recover an object from Active Directory Recycle Bin

To recover an object or user account that was deleted from Active Directory (if the AD Recycle Bin has been enabled), use the command below to view the contents of the items that have been deleted.

Get-ADObject -filter 'isDeleted -eq $true -and name -ne "Deleted Objects"' -includeDeletedObjects

Found the object in question and make note of the GUID parameter.

Deleted           : True
DistinguishedName : CN=Test Account\0ADEL:a769525b-0ac1-40c6-9cb5-9cdd8d221435
                    ,CN=Deleted Objects,DC=test,DC=local
Name              : Test Account
                    DEL:a769525b-0ac1-40c6-9cb5-9cdd8d221435
ObjectClass       : user
ObjectGUID        : a769525b-0ac1-40c6-9cb5-9cdd8d221435

Use the command below with the GUID value.

Restore-ADObject -Identity 'a769525b-0ac1-40c6-9cb5-9cdd8d221435'

https://stealthbits.com/blog/active-directory-object-recovery-recycle-bin/