Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/truekonrads/powerspells

Small collection of powershell scripts useful during lateral movement
https://github.com/truekonrads/powerspells

pentest-scripts powershell-script red-team

Last synced: 25 days ago
JSON representation

Small collection of powershell scripts useful during lateral movement

Awesome Lists containing this project

README

        

# powerspells
Small collection of powershell scripts useful during lateral movement

## Find-InterestingFiles
Look for keywords in files and package them for exfil. The "LocationIsServer" allows you to specify a file share (e.g. \\myserver) and it will pillage all shares
```
FindInterestingFiles 'C:\secrets' -packfiles $true -compress $true -outputfile here.bin
```
(decompress with gunzip)


## ADQuery
Ask Something of Active Directory (thin LDAP wrapper)
```
(AdQuery -ldapflter $ldapfilter).FindAll() | % {$_.Properties | Convert-LDAPProperty }
```
## FindVeryActiveComputers
Look for computers logged on to AD with their computer account in last 8 hours
```
FindVeryActiveComputers -osversion "*"
```

## OneObject
Fetch one object matching a filter
```
OneObject -ldapfilter "(name=truekonrads)"
```