This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Super duper dumb PS script to query ActiveDirectory for misconfigured User accounts. | |
| # Created by Trevor Bryant (@apporima) | |
| # Get-StaleADUserAccounts.ps1 version 1.0.0 | |
| # Set variables | |
| $timestamp = (Get-Date -f HHmmss_MMddyyyy) | |
| $ADDomainInfo = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() | |
| $ADDomainInfoMode = $ADDomainInfo.DomainMode | |
| $ADDomainInfoName = $ADDomainInfo.Name | |
| $Export = "C:\temp\AD_Audit\Stale_AD_User_Account_Audit_$ADDomainInfoName`_$timestamp.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $Users = @() | |
| $Export = @() | |
| $RecursiveUsers = @() | |
| $AdminGroups = $args | |
| ForEach ($Group in $args) { | |
| Get-ADGroupMember "$Group" -ErrorAction SilentlyContinue | ForEach-Object { | |
| $Export = New-Object -TypeName PSObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form> | |
| <label>Windows Event Collection - Primary User Logons</label> | |
| <description>Filtered search for identifying non-administrative log on to servers.</description> | |
| <fieldset submitButton="false" autoRun="true"> | |
| <input type="text" token="computername" searchWhenChanged="true"> | |
| <label>Computer Name (FQDN)</label> | |
| <default>*</default> | |
| <initialValue>*</initialValue> | |
| </input> | |
| <input type="text" token="workstationname" searchWhenChanged="true"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Thomas Roccia | IconDhash.py | |
| # pip3 install lief | |
| # pip3 install pillow | |
| # resource: https://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html | |
| import lief | |
| import os | |
| import argparse |