Modification of https://raymii.org/s/software/ProxBash.html