Sep 22, 2021

Windows

How to manage services via cmd?

> sc \\comp-name config AVP start=demand

> sc \\comp-name config AVP start=disabled

> sc \\comp-name config AVP start=auto

How to escalade priv up to system?

1. Download and extract pack from Mark Russinovich

2. Run cmd from administrator

3. > psexec.exe -i -s cmd.exe

4. > whoami

5. > procexp64.exe

6. Find service with system priv

7. Open properties and permissions

8. Add user permissions for the current service

9. Go to the services and edit settings for service 

Where is the hosts file?

C:\Windows\System32\drivers\etc\hosts

Kubernetes

kubectl installation $ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl...