mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 09:27:32 +00:00
Update README.md
Finding a newer files with powershell
This commit is contained in:
parent
e51a01beb0
commit
d90f632846
1 changed files with 12 additions and 0 deletions
|
@ -234,6 +234,18 @@ The steps performing API cal hooking of .NET methods are:
|
|||
Get-Content C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Powershell\PSReadline\ConsoleHost_history.txt
|
||||
```
|
||||
|
||||
## Find a newer files
|
||||
|
||||
Options : `CreationTime`, `CreationTimeUtc`, `LastAccessTime`, `LastAccessTimeUtc`, `LastWriteTime`, `LastWriteTimeUtc`
|
||||
|
||||
```powershell
|
||||
# LastAccessTime:
|
||||
(gci C:\ -r | sort -Descending LastAccessTime | select -first 100) | Select-Object -Property LastAccessTime,FullName
|
||||
|
||||
# LastWriteTime:
|
||||
(gci C:\ -r | sort -Descending LastWriteTime | select -first 100) | Select-Object -Property LastWriteTime,FullName
|
||||
```
|
||||
|
||||
## Get permissions
|
||||
|
||||
```powershell
|
||||
|
|
Loading…
Reference in a new issue