in reply to how to avoid web server from getting hacked
Can anyone tell me what I am doing wrong??
You're not checking the success status of your system calls:
use strict; use warnings; use Fatal qw(:void open close print); use CGI; use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; open(OUT, ">>/home/jma/Documents/cron-job") or die "Can't open file fo +r writing: $!"; print OUT "blah\n"; close OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cgi script write to crontab
by Niner710 (Sexton) on May 13, 2008 at 22:38 UTC | |
by moritz (Cardinal) on May 13, 2008 at 22:51 UTC | |
by Niner710 (Sexton) on May 14, 2008 at 00:55 UTC | |
by Niner710 (Sexton) on May 14, 2008 at 03:28 UTC | |
by Niner710 (Sexton) on May 14, 2008 at 15:58 UTC |