Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: What is wrong with variable?

by dws (Chancellor)
on Mar 19, 2006 at 01:01 UTC ( #537706=note: print w/ replies, xml ) Need Help??


in reply to What is wrong with variable?

if( $line =~ /^Subject: `(.*)`/ ){ system(`$1`); last }

I hope that's an extract from a script that does some extract checking, because if you're blindly executing commands that come in on subject lines to emails, you are setting yourself up for some major hurt. I've seen random spam come in with backquotes around the subject body.


Comment on Re: What is wrong with variable?
Download Code
Re^2: What is wrong with variable?
by w3b (Beadle) on Mar 19, 2006 at 04:35 UTC
    It's test version, if it work i'll add authorization function...
      Authorization is the second step, before that you will need an authentication check to make sure that the one who logs in is indeed who (s)he says (s)he is (that is the usual login-id and password stuff).

      It is a bit difficult to see how you can authenticate through e-mail (perhaps putting the log-in and password in the body of the e-mail? But that is not secure at all as anybody who intercepts the e-mail will know your log-in and password). Simply checking for the e-mail address of the sender is of course not enough as e-mail headers are far too easily spoofed. Anyone who has taken the Spam 101-course will know how to do it.

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://537706]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-11-28 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls