Update revoke-cleaner.pl

This commit is contained in:
nu11secur1ty
2023-01-17 14:29:33 +02:00
committed by GitHub
parent 9c39b4be45
commit f853ef2844

View File

@@ -38,7 +38,10 @@ print "$issued";
## Cleaning
my $ENVPKI = "/etc/openvpn/easy-rsa/pki/index.txt";
print "Preparing for cleaning...\n";
print color('RED');
print "Please, choose the username, or if you are not really sure, just press Enter to exit the cleaner...\n";
print color('RESET');
chomp (my $username = <STDIN>);
my $cleaner = `sed -i '/$username/d' $ENVPKI`;