Change user password through BASH script

Published on Author gryzliLeave a comment

Very often I need to automate some bulk user password change. In the following examples we have: $user as username $pass as password in plain text Currently these are the methods I use to change user passwords: chpasswd method

The old passwd method

  Also I use the following to GENERATE RANDOM passwords:… Continue reading Change user password through BASH script

Nmap – Port scanning

Published on Author gryzli

Here I will post some basic examples: 1. Scan all hosts in a given network for specific open port – This will scan network 192.168.0.1 /24 for open port 10000 (which belongs to WebMin)

2. Scan all ports on given host

 

Mikrotik – Configuring OpenVPN Server + Linux client

Published on Author gryzliLeave a comment

The first thing we must assure is the following: – We have working configuration on our Mikrotik router (internet access + local network) – We have generated SSL certfificate/key pair for the OpenVPN server   Import SSL Certificates + Root CA on the router We can use FTP to upload the following files: – cacert.pem… Continue reading Mikrotik – Configuring OpenVPN Server + Linux client

Creating Root SSL Authority with OpenSSL

Published on Author gryzli

1. Create directory structure

  2. Create some default openssl.cnf file

  3. Create Key and CSR (Certificate Sign Request) 3.1 Create the CSR & Key

  3.2 Sign the CSR and issue the certificate

  References: How to setup a Certificate Authority Create Root Certificate Creating and using SSL certificates… Continue reading Creating Root SSL Authority with OpenSSL