SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Load script from github and sync
  2. iex(New-Object net.webclient).DownloadString("https://raw.githubusercontent.com/Cyb3rWard0g/Invoke-ATTACKAPI/master/Invoke-ATTACKAPI.ps1")
  3.  
  4. # Group data sources
  5. $AllTechniques = Invoke-ATTACKAPI -All
  6. $AllTechniques | Where-Object platform -like "Windows" | Select "Data Source",TechniqueName -Unique |
  7. ForEach-Object {
  8.  
  9. $TechniqueName = $_.TechniqueName
  10. $_."Data Source" | ForEach-Object {
  11.  
  12. $Object = New-Object PSObject
  13. $Object | add-member Noteproperty TechniqueName $Technique
  14. $Object | add-member Noteproperty DataSource $_
  15. $Object
  16. }
  17.  
  18. } | Select TechniqueName,DataSource | Group-Object DataSource | Sort-Object count -Descending
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top