in reply to passwords and system calls
Some commands will allow you to put usernames/passwords in files and use those files as input. For example:system("echo $password | foo -args file");
You may also be able to use perl to do some of this echoing. For example:system("foo -args file < passwordfile");
You may also want to look into IPC::open2. This allows you to write to a program as well as get information from it.open(FOO,"| foo -args file"); print FOO "username\n"; print FOO "password\n"; close(FOO);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: passwords and system calls
by KM (Priest) on Aug 17, 2000 at 23:30 UTC |