mirror of
https://github.com/carlospolop/hacktricks.git
synced 2023-12-14 19:12:55 +01:00
GitBook: [master] one page modified
This commit is contained in:
parent
6cfb2c6223
commit
7b5ff0d0b2
|
@ -75,9 +75,11 @@ dir env:
|
|||
Get-ChildItem Env: | ft Key,Value
|
||||
```
|
||||
|
||||
### Powershell history
|
||||
### PowerShell History
|
||||
|
||||
```bash
|
||||
ConsoleHost_history #Find the PATH where is saved
|
||||
|
||||
type %userprofile%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt
|
||||
type C:\Users\swissky\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt
|
||||
type $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
|
||||
|
@ -85,6 +87,21 @@ cat (Get-PSReadlineOption).HistorySavePath
|
|||
cat (Get-PSReadlineOption).HistorySavePath | sls passw
|
||||
```
|
||||
|
||||
### PowerShell Transcript files
|
||||
|
||||
You can learn how to turn this on in [https://sid-500.com/2017/11/07/powershell-enabling-transcription-logging-by-using-group-policy/](https://sid-500.com/2017/11/07/powershell-enabling-transcription-logging-by-using-group-policy/)
|
||||
|
||||
```bash
|
||||
#Check is enable in the registry
|
||||
reg query HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription
|
||||
reg query HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription
|
||||
dir C:\Transcripts
|
||||
|
||||
#Start a Transcription session
|
||||
Start-Transcript -Path "C:\transcripts\transcript0.txt" -NoClobber
|
||||
Stop-Transcript
|
||||
```
|
||||
|
||||
### Internet Settings
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue