Forum Discussion
LewisMutton
Bronze III
2 months agoTrick or Treat on Specter Street: Ghost of the SOC
I know it's one of the challenge labs but I'm fairly sure I'm missing something extremely straight forward, it's 100 point difficulty 4.... Someone help me please! I'm banging my head against a wall ...
steven
Silver II
24 days agomaybe I was too radical, i've deleted everything which was not by windows :)
Get-ScheduledTask | Where-Object { $_.TaskPath -notlike '\Microsoft\*' } | ForEach-Object {
try {
Disable-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath -ErrorAction Stop | Out-Null
Unregister-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath -Confirm:$false -ErrorAction Stop
Write-Host "Removed: $($_.TaskPath)$($_.TaskName)"
} catch {
Write-Warning "Failed: $($_.TaskPath)$($_.TaskName) — $($_.Exception.Message)"
}
}solved the lab and removed some services too much, but hey, .. to be on the safe side :)
jitu
Bronze I
15 days agoHow do you run this with the service account credential? I schedule a task and chose to run it with the svc credential, but it does not delete the persistence. I just removes some local tasks for the normal user.
- edgarloredo15 days ago
Bronze III
If you already have svc credentials, try to open Schedule Task as svc user and you can easily find and delete the task
- PRABAKARANRAMAMURTHY9 days ago
Bronze III
How did you get the svc creds? edgarloredo
- PRABAKARANRAMAMURTHY9 days ago
Bronze III
Have you got the credentials? jitu