jessemoore

Add-Content2Profile

Sep 12th, 2020 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Add to $Profile
  2.  
  3. #For Fun
  4. #Add-Content $PROFILE -Value ""
  5. #Add-Content $PROFILE -Value "Start-Process calc.exe"
  6. #
  7. # Make a banner
  8. Add-Content $PROFILE -Value ""
  9. Add-Content $PROFILE -Value "Invoke-RestMethod -uri "https://artii.herokuapp.com/make?text=PowerShell%20iS%20Monitored" -DisableKeepAlive"
  10. # From here https://artii.herokuapp.com/make?text=PowerShell_iS_Monitored
  11. #
  12. #Capture commandline of Powershell
  13. #This doesn't work on PS5
  14. # https://www.malwarearchaeology.com/cheat-sheets
  15. # To see what powershell version use this $PSVersionTable.PSVersion
  16. # Add-Content $PROFILE -Value ""
  17. # Add-Content $PROFILE -Value "$LogCommandHealthEvent = $true"
  18. # Add-Content $PROFILE -Value "$LogCommandHealthEvent = $true"
  19. # Add-Content $PROFILE -Value "$LogCommandLifecycleEvent = $true"
  20. # Add-Content $PROFILE -Value "$LogPipelineExecutionDetails = $true"
Add Comment
Please, Sign In to add comment