$ sudo apt update
$ sudo apt install openvas
$ sudo gvm-setup
$ sudo gvm-start
Open web UI: http://localhost:9392
Add "Target" (hosts)
Check "Scan Configs"
Create new "Task"
Check results and report
$ sudo apt update
$ sudo apt install openvas
$ sudo gvm-setup
$ sudo gvm-start
Open web UI: http://localhost:9392
Add "Target" (hosts)
Check "Scan Configs"
Create new "Task"
Check results and report
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
How to increase the hard disk size?
- shutdown VM
- add VirtualBox path to the PATH env. variable via computer properties
C:\Program Files\Oracle\VirtualBox
- open the cmd and go to the hard disk location
- modify disk
> VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB
How to add shared folder?
- add folder via gui
- add current user to vbox group
$ sudo adduser $USER vboxsf
- logout
Victoria ( hdd[dot]by/victoria )
MiniTool Partition Wizard ( partitionwizard[dot]com )
...
...
How to create a systemd service?
Application:
$ cat myapp.sh
#!/usr/bin/bash
echo "I'm a test app" > /tmp/test.file
Service:
$ cat /etc/systemd/system/myapp.service
...$ sudo systemctl start myapp
Start on boot:
$ sudo systemctl enable myapp
How to disable beep speaker?
# temporary
$ sudo rmmod pcspkr
# permanently
$ sudo gedit /etc/modprobe.d/blacklist
blacklist pcspkr
$ reboot
SSH by key
$ ssh-keygen -t ed25519 -C "new"
$ cat ~/.ssh/config
Host x.x.x.x
HostName x.x.x.x$ ssh x.x.x.x
Target OS is Cent OS 7.
Step 1. Install Java
Download RPM Linux x64 RPM Package from oracle.com - jdk-11.0.11_linux-x64_bin.rpm1. Download archive with JDK from oracle website.
2. Copy it to special folder
$ sudo mkdir /usr/java
$ sudo cp ~/Downloads/jdk-8u281-linux-x64.tar.gz /usr/java
$ rm ~/Downloads/jdk-8u281-linux-x64.tar.gz
3. Unpack the archive
$ cd /usr/java
$ sudo tar xvfz jdk-8u281-linux-x64.tar.gz
$ sudo rm jdk-8u281-linux-x64.tar.gz
4. Add environment variable
$ vim ~/.profile
export JAVA_HOME=/usr/java/jdk1.8.0_281
export PATH=${PATH}:${JAVA_HOME}/bin
5. Apply changes
$ source ~/.profile
6. Check JAVA version
$ java -version
java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)
kubectl installation $ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl...