Schnell mal eine Festplatte löschen, shreddern oder wipen: openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt
-
-
Some Nmap Commands
Turn on OS and version detection scanning script (IPv4) nmap -A 192.168.1.254 nmap -v -A 192.168.1.1 nmap -A -iL /tmp/scanlist.txt Find out if a host/network is protected by a firewall nmap -sA…
-
CLI: General OpenSSL Commands
Generate a new private key and Certificate Signing Request openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key Remove a passphrase from a private key openssl rsa -in privateKey.pem -out newPrivateKey.pem
-
CLI: Converting Using OpenSSL
Convert a DER file (.crt, .cer, .der) to PEM openssl x509 -inform der -in certificate.cer -out certificate.pem Convert a PEM file to DER openssl x509 -outform der -in certificate.pem -out certificate.der Convert…
-
CLI: Live dmesg output in human readable format (colors, timing)
Live dmesg output in human readable format (colors, timing) dmesg -wH
-
CLI: PNG Bilder optimieren
PNG sollte man gerade im Web optimieren, damit zum Beispiel die Website schneller geladen wird. Das kann man direkt auf dem Server mit Optipng erledigen. Optipng installieren (Ubuntu) sudo apt-get install optipng…