Kategorie: Linux

Home / Linux

Some Nmap Commands

Turn on OS and version detection scanning script (IPv4) nmap -A nmap -v -A nmap -A -iL /tmp/scanlist.txt Find out if a host/network is protected by a firewall nmap -sA Scan a host when protected by the firewall nmap -PN Scan a network and find out which servers and devices are...


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 a PKCS#12 file (.pfx, .p12) containing a private key and certificates to PEM openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes You can add...


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 Syntax von Optipng: optipng file optipng [options] file optipng [options] input.png Alle PNGs (auch in Unterordnern) finden und optimieren. Die vorhandenen PNGs werden...