- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scritping
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2000 11:02 AM
09-20-2000 11:02 AM
Scritping
echo ZZ | vi -x wpass > wpasstemp
but this then throws me out of my script after I have typed in the decryption key. Is there a better way of doing this whilst maintaining the integrity of the password file via encryption. I would intend to remove the wpasstemp file immediately.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2000 11:10 AM
09-20-2000 11:10 AM
Re: Scritping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2000 11:11 AM
09-20-2000 11:11 AM
Re: Scritping
crypt is also a command, try this:
crypt PASSWORD < filename | grep ...
Note: the PASSWORD will show up in the process list in that brief execution time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2000 11:30 AM
09-20-2000 11:30 AM
Re: Scritping
A very recent thread may be of interest to you on this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x66ec6c96588ad4118fef0090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2000 12:15 PM
09-20-2000 12:15 PM
Re: Scritping
#include
#include
int main (void)
{
int result;
result=check_pass("password","24489");
printf ("%d",result);
}
int check_pass(const char *plainpw, const char *cryptpw)
{
printf ("%sn",crypt(plainpw,cryptpw));
return strcmp(crypt(plainpw,cryptpw), cryptpw) == 0;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2000 12:18 PM
09-20-2000 12:18 PM
Re: Scritping
#!/usr/local/bin/perl
# Usage:
#
# enc_passwd _plaintxt_ [ _salt_ ]
#
# When trying to compare a plaintext password to an already-existing
# encrypted password, use the first two characters of the encrypted
# password as the salt. If you are generating a new encrypted password,
# omit the second argument and the script will generate a random salt.
#
# Note: only the first 8 characters of the plaintext and the first 2
# characters of the salt are significant. Extra characters are silently
# ignored.
#
srand(time);
if
(scalar(@ARGV) == 0) { die "Usage:n enc_passwd _plaintxt_ [ _salt_ ]n"; }
$plaintext=$ARGV[0];
$alphabet="./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
";
if (length($ARGV[1]) >= 2) { $salt=$ARGV[1]; } else { substr($salt, 0, 1)=s
ubstr($alphabet,rand(63), 1); substr($salt, 1, 1)=substr($alphabet, rand(63), 1); } $cipher
text=crypt($plaintext,$salt); print $ciphertext, "n";