By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,848 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,848 IT Pros & Developers. It's quick & easy.

Site request.

P: 58
Well, I'm not very good with Perl, as I have just started, but I was wondering if anybody could lead me to a good page on where to start. My first program, I want to make a simple perl script that tries various usernames and passwords. If it get's redirected to a another webpage that I do not wish to view, it shows as "invalid" and if it shows a webpage that is "valid", I would want it to keep all this in a log file. Now what are the modules that would be used for this?
Jan 17 '08 #1
Share this Question
Share on Google+
3 Replies


prn
Expert 100+
P: 254
prn
Well, I'm not very good with Perl, as I have just started, but I was wondering if anybody could lead me to a good page on where to start. My first program, I want to make a simple perl script that tries various usernames and passwords. If it get's redirected to a another webpage that I do not wish to view, it shows as "invalid" and if it shows a webpage that is "valid", I would want it to keep all this in a log file. Now what are the modules that would be used for this?
Hi Shing,

Let me get this straight. I hope this is just a language problem, but it looks like you want to try hacking someone else's site by running a script to try out lots of username/password combinations and log the ones that are valid for future reference. Is that what you are talking about? I don't think you can expect to get any help here if it is.

I apologize if I got that wrong and in that case you might want to explain your problem more clearly.

Regards,
Paul
Jan 17 '08 #2

P: 58
It is purely for internal trials only. I could always MD5 hash my server passwords...but that would be a pain.

Even if you think I'm doing something illegal, you could always just lead me off on the course i wish to go...u know, some guidance. Kind of like how Dumbledore tells Harry not to take the dark path, but shows him the type of magic he can aquire.
Jan 17 '08 #3

prn
Expert 100+
P: 254
prn
It is purely for internal trials only. I could always MD5 hash my server passwords...but that would be a pain.

Even if you think I'm doing something illegal, you could always just lead me off on the course i wish to go...u know, some guidance. Kind of like how Dumbledore tells Harry not to take the dark path, but shows him the type of magic he can aquire.
Hi Shing,

I'll take you at your word for this. I will say that if you are planning to log passwords (internal or otherwise) then some kind of encryption for the result would be a very good idea. Storing plaintext passwords anywhere is definitely not something I can ever recommend.

Beyond that, I'll just point you to a couple of resources. You should check out the LWP family of modules, which are what you want for interacting with web pages programmatically. LWP::Simple may be too simple for what you want, but that's OK. I have found Lincoln Stein's book Network programming with Perl to be useful. I seem to recall that there is at least one newer book on similar topics, but I don't recall its name.

HTH,
Paul
Jan 17 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.