Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Trojan Horse? (taint mode)

by chromatic (Archbishop)
on Nov 25, 2001 at 23:15 UTC ( #127406=note: print w/replies, xml ) Need Help??


in reply to Trojan Horse? (taint mode)

ph3@r:

print "$\{system('echo \"hello\"')}";

Yet fear not so much:

chomp(my $input = <STDIN>); print "$input\n";
Feed this one the shell command above (a nice variable dereferencing scheme) and it'll print out literally.

Unless you're doing hazardous things with string eval, you're probably safe.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127406]
help
Chatterbox?
[perldigious]: A question since I'm ignorant of what's normal for database management... Do admins change column names a lot in databases?
[perldigious]: On occasion my scripts break, because they will do something that seems laregly pointless to me... like in this case, changing a column name from "ABC Category" to "ABC Category Override".
[perldigious]: Being the ignorant one, my initial reaction to that is, "that's sort of a dick move, a lot of people like me expect column names like that to stay the same, why the hell would you change them like that for seemingly no good reason?"

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-05-25 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?