| Category: | Encryption |
| Author/Contact Info | EvidencE Evidence@m-k-g.zzn.com |
| Description: | Well, I am a noob in perl world. So this litle lkamne script is very basic, and simple. It is used to put passwords on UNIX files, in unix shells. It is not completed yet, but maybe you can use it to make simillar program. |
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 = <STDIN>;
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 = <STDIN>;
chomp($file);
print "\n";
print " ------------\n";
print "\n";
my $pass;
print " PASSWORD: ";
$pass = <STDIN>;
chomp ($pass);
print "\n";
print " ------------\n";
print "\n";
my $pass2;
print " RETYPE PASS: ";
$pass2 = <STDIN>;
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";
}
}
|
|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passworder
by belg4mit (Prior) on Mar 14, 2003 at 17:42 UTC |