solved (was Re: any idea to solve this problem?)

2002-12-17 Thread Admin-Stress
Hi, It solved by putting this codes for flushing cgi output : $|=1; sleep 5; It was suggested by someone. Anyone can explain, what does $|=1 means? kapot --- Larry Coffin <[EMAIL PROTECTED]> wrote: > >I was wondering if I can 'flush' the cgi operation, so in SAVE_CONFIG.PL > >will be lik

any idea to solve this problem?

2002-12-16 Thread Admin-Stress
I wrote a very simple cgi to change an IP address of a linux server. First, user will get LOGIN.PL LOGIN.PL will call EDIT_IP.PL if user click 'Save', EDIT_IP.PL will call SAVE_CONFIG.PL SAVE_CONFIG.PL will do these : - modifying ip address configuration (/etc/sysconfig/...) - calling exter

RE: can we use "system()" inside cgi ?

2002-12-10 Thread Admin-Stress
ript can't find "ifup" Are you calling it as ifup or /sbin/ifup? > > good luck! > > -peter > > > -Original Message- > From: Admin-Stress [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 1:29 PM > To: perl cgi > Subject: RE: can w

RE: can we use "system()" inside cgi ?

2002-12-10 Thread Admin-Stress
up on tainted variables, I think. > > perldoc perlsec > > The problem isn't that it is a CGI, pretty sure the problem is that it is setuid. > > http://danconia.org > > ---- > On Tue, 10 Dec 2002 07:20:16 -0800 (PST)

can we use "system()" inside cgi ?

2002-12-10 Thread Admin-Stress
I got this error : [error] [client 10.0.0.88] Insecure $ENV{PATH} while running setuid at /var/www/cgi-bin/ifcfg_rh80.pl line 60., referer: http://10.0.0.50/cgi-bin/editconfig.pl And line 60 of ifcfg_rh80.pl is : system("/sbin/ifdown $device"); sleep 2; system("/sbin/ifup $device"); I

Installing CGI.pm in RedHat 8.0.

2002-12-10 Thread Admin-Stress
I dont know why, in my OTHER RedHat 8.0 installation, I cant find CGI.pm. I did install perl5.8.0. Anyone know how to install it? I looked in cpan, it seems it's default perl module. And I cant find any installer for it. Is it OK if I just copy CGI.pm from cpan? into /usr/lib/perl5/5.8.0/CGI.

RE: html redirect using CGI.pm

2002-12-09 Thread Admin-Stress
wrote: > You might want to just use redirect(), check perldoc CGI > > - > Scot Robnett > inSite Internet Solutions > [EMAIL PROTECTED] > > > > -Original Message- > From: Admin-Stress [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 09, 2002 2:42 PM &

html redirect using CGI.pm

2002-12-09 Thread Admin-Stress
Hi, Could someone check my code below? I need to redirect to a html using CGI.pm perl module. But when I executed, I got blank page. If I commented out $cgi->start_html ... it's working fine, but no redirection. $cgi = new CGI; sub Error { my ($msg) = @_; print ""; print ""; print " Err

solved (was RE: how to hide form parameter from displayed in browser ?)

2002-12-09 Thread Admin-Stress
Yupe, thanks, I forgot to reload the browser after I changed to POST method. silly me! Sorry for consuming your bandwidth. thanks --- "Kipp, James" <[EMAIL PROTECTED]> wrote: > try using the POST method, instead of GET ? __ Do you Yahoo!? Yahoo! M

how to hide form parameter from displayed in browser ?

2002-12-09 Thread Admin-Stress
I made a simple html form to input a password field : http://mydomain.homelinux.net/cgi-bin/login.pl"; method="GET"> Password : And a cgi to compare that password : #!/usr/bin/perl use CGI; print "Content-type: text/html\n\n"; $cgi = new CGI; $upassword = $cgi->param('password'); $passwo

cgi session

2002-12-05 Thread Admin-Stress
Hi, How can I check cgi session? mmm .. maybe better I explain like this: I just want to make a 'secure site' that need username and password. So, the first page of my site would be "fill in you username and password", for example, it will be placed here : http://www.mydomain.com/login.html

libwww example / tutorial

2002-11-23 Thread Admin-Stress
Hi, Anyone know any URL about libwww example / tutorial? I cant find decent source. I just want to learn how to GET an ouput from a website and parse the output. from one of example, I can print the output like this : if ($res->is_success) { print $res->content; } else { prin

setting user-agent string

2002-11-08 Thread Admin-Stress
Hi, Here I got a code to upload file to a cgi running in a webserver : #!/usr/bin/perl use warnings; use strict; use HTTP::Request::Common qw(POST); use LWP::UserAgent; my $url ='http://www.mydomain.com/cgi-bin/upload.cgi'; my $file = 'testfile.dat'; my $ua = new LWP::UserAgent; my $req = POST

mysql

2002-11-01 Thread Admin-Stress
Sorry, another out of topic. Is it safe to use mySQL in cgi? I meant, if my update.pl perl cgi will do this : connect to mysql database insert into table values (values from FORM) ... other tasks ... close What happen if there are, let say 100 people accessing that perl cgi? I meant

auto execute cgi

2002-11-01 Thread Admin-Stress
Hi, Maybe this is not so related with perl it self, but still ... Is there any way to 'auto execute cgi' ? I meant, I have to trigger something (like updating database via perl) just after user viewed the html. Thanks, kapot __ Do you Yahoo!? Ho

RE: perl cgi security

2002-10-28 Thread Admin-Stress
Nice, but that will produce .exe, executable file for Windows :( --- David Simcik <[EMAIL PROTECTED]> wrote: > See perl2exe.exe for details on converting scripts into executables. > > -D __ Do you Yahoo!? Y! Web Hosting - Let the expert host your

perl cgi security

2002-10-27 Thread Admin-Stress
Hi, I am new to perl cgi. I would like to ask (maybe a silly question) : Is it possible to VIEW the source code of a perl cgi from a website? For example, I wrote a perl cgi like this http://www.myweb.com/cgi-bin/addcustomer.pl The purpose of that script is to add new customer into my MySQL dat

Viruses

2002-07-17 Thread Admin
Please ensure your computers are virus free before sending attachments through this mailing list. In the past 2 weeks I have received notification from my Microtrend PC-cillin of no less than 6 worm/trojan infected files sent through this group. If others on this list do not have adequate virus