use strict; use warnings; { print "\n" x 5; print "***********************************************#\n"; print "################################################\n"; print "### ###\n"; print "### ###\n"; print "### Lockness ###\n"; print "### ###\n"; print "### ###\n"; print "################################################\n"; print "################################################\n"; print "\n" x 4 ; print "Infinity Resource Group"; print "\n" x 4; print "By: EvidencE \n"; print "================================================\n"; print "For help type 'help'"; } while(1){ print "\n" x 3; print "Lockness: "; my $input; $input = ; chomp($input); if($input eq "help"){ print "\n" x 2 ; print "Here is the list of avaliable commands:\n"; print "================\n"; print "\n" x 2; print " 'password' - Set the password for a file\n\n"; print " 'exit' - Exit this program\n\n"; print "================\n"; } elsif($input eq "password"){ print "\n" x 2 ; print "-------------------------------"; print "\n! Type the path and file name !\n"; print "-------------------------------"; print "\n" x 2; print " PATH/FILE: "; my $file; $file = ; chomp($file); print "\n"; print " ------------\n"; print "\n"; my $pass; print " PASSWORD: "; $pass = ; chomp ($pass); print "\n"; print " ------------\n"; print "\n"; my $pass2; print " RETYPE PASS: "; $pass2 = ; chomp($pass2); print "\n" x 3; print "================"; print "\n" x 2; if($pass ne $pass2){ print "\n ERROR: You misstyped the passwords."; print "\n"; print "================\n\n"; } else{ print "\n" x2; print "================\n"; print "The password is set for '$file'."; print "\n"; print "================\n"; } } elsif($input eq "exit"){ print "\nThis should exit this shit....."; print "\n"; } else{ print "\n" x 2 ; print "Nothing here yet.....\n"; } }