Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: exec na script prez web {za Momchil Ivanov}


  • Subject: Re: lug-bg: exec na script prez web {za Momchil Ivanov}
  • From: gggg ggg <gashti_dolu@xxxxxxxxx>
  • Date: Sat, 9 Jul 2005 02:09:10 -0700 (PDT)
  • Delivered-to: lug-bg-list@xxxxxxxxxxxxxxxxxx
  • Delivered-to: lug-bg@xxxxxxxxxxxxxxxxxx

brat4e na kakuv enkoding si pisal ne e istina,nishto
ne 4eta , no ina4e gledam si mi obiasnil niakolko
varianta .ako smenish enkodinga shte sam blagodaren.

g.

--- Momchil Ivanov <idiotbg@xxxxxxxxx> wrote:

> On 7/9/05, gggg ggg <gashti_dolu@xxxxxxxxx> wrote:
> > zdraveite,
> > imam 2 scripta : edinia diga interfeisi i
> prenastroiva
> > rutingi i t.n., a drugia pravi to4no obratnoto,
> t.e.
> > edinia puska neshtata , a drugia gi spira.
> > 
> > iskam da moje ot web da se puskat scriptovete, bez
> > zna4enie dali s PHP,Perl,CGI-niakakuv, SH ili
> kakvoto
> > i da e.
> > 
> 
> §Þ§à§Ø§Ö
> 
> > problema mi e 4e ne moga da izvikam scriptowete ot
> > web,apache gi stopira.razrovih mu po4ti vsi4koto
> > secure i podiviah ve4e. daite malko help za tova
> > ,kolkoto i prosto da izglejda.
> 
> §Ü§Ñ§Ü §Ú§Ù§Ó§Ú§Ü§Ó§Ñ§ê §ã§Ü§â§Ú§á§ä§à§Ó§Ö§ä§Ö?
> 
> > 
> > g.
> > 
> > P.S. Slack 10.1
> > 
> > 
> > 
> > 
> >
> ____________________________________________________
> > Sell on Yahoo! Auctions ¨C no fees. Bid on great
> items.
> > http://auctions.yahoo.com/
> > 
> 
> 
> §Ó§Ñ§â§Ú§Ñ§ß§ä§Ú§ä§Ö §ã§Ñ §ß§ñ§Ü§à§Ý§Ü§à
> 1)
>  §Ù§Ñ§â§Ö§Ø§Õ§Ñ§ê §ã§Ú CGI §Þ§à§Õ§å§Ý§Ñ §ß§Ñ
> §Ñ§á§Ñ§é§Ö§ä§à, §Õ§Ñ§Ó§Ñ§ê §ß§Ñ §ã§Ü§â§Ú§á§ä§Ñ +§ç
> (§Ù§Ñ §Õ§Ñ §Þ§à§Ø§Ö §Õ§Ñ
> §ã§Ö §Ú§Ù§á§ì§Ý§ß§ñ§Ó§Ñ) §Ú §ã§Ý§Ö§Õ §ä§à§Ó§Ñ §Ô§à
> §Ú§Ù§Ó§Ú§Ü§Ó§Ñ§ê §á§â§Ö§Ù §å§Ö§Ò
> (http://test/test.sh)
> §ß§Ñ§á§â§Ú§Þ§Ö§â
> 
> 2)
> §á§â§Ñ§Ó§Ú§ê §ã§Ú Perl/PHP §ã§Ü§â§Ú§á§ä §Ú §Ó
> §ß§Ö§Ô§à §Ú§Ù§Ó§Ú§Ü§Ó§Ñ§ê §ã§ì§à§ä§Ó§Ö§ä§ß§Ú§ñ
> §ã§Ü§â§Ú§á§ä
> 
> php:
> <?php echo exec('/path/to/script 2>&1'); ?>
> §ä§à§Ó§Ñ §ë§Ö §ä§Ú §Ú§Ù§á§ì§Ý§ß§Ú §ã§Ü§â§Ú§á§ä§Ñ §Ú
> §ë§Ö §Ú§Ù§Ó§Ö§Õ§Ö §â§Ö§Ù§å§Ý§ä§Ñ§ä§Ñ (§Ñ§Ü§à
> §ã§Ü§â§Ú§á§ä§ì§ä §Ó§â§ì§ë§Ñ §ä§Ñ§Ü§ì§Ó)
> 
> perl:
> $output = `/path/to/script 2>&1`;
> print $output;
> 
> 
> §´§å§Ü §Ó§Ö§é§Ö §Ú§Þ§Ñ §Ö§Õ§ß§à §Ô§à§Ý§ñ§Þ§à §¯§°!
> §ª §á§â§Ú §Õ§Ó§Ñ§ä§Ñ §ã§Ý§å§é§Ñ§ñ
> §á§à§ä§â§Ö§Ò§Ú§ä§Ö§Ý§ñ§ä, §Ü§à§Û§ä§à
> §Ú§Ù§á§à§Ý§Ù§Ó§Ñ §Ñ§á§Ñ§é§Ö§ä§à §ä§â§ñ§Ò§Ó§Ñ §Õ§Ñ
> §Ú§Þ§Ñ §á§â§Ñ§Ó§Ñ §Õ§Ñ §Ú§Ù§á§ì§Ý§ß§ñ§Ó§Ñ
> §à§á§Ö§â§Ñ§è§Ú§Ú§ä§Ö, §Ü§à§Ú§ä§à
> §ã§ì§Õ§ì§â§Ø§Ñ §ã§Ü§â§Ú§á§ä§Ñ (ifconfig, iptables,
> etc.....). §¦§Õ§ß§à §â§Ö§ê§Ö§ß§Ú§Ö §ß§Ñ §ä§à§Ù§Ú
> §á§â§à§Ò§Ý§Ö§Þ §Ö §Õ§Ñ §ß§Ö §Ó§Ú§Ü§Ñ§ê
> §Õ§Ú§â§Ö§Ü§ä§ß§à §ã§Ü§â§Ú§á§ä§à§Ó§Ö§ä§Ö, §Ñ §Õ§Ñ
> §Ó§Ú§Ü§Ñ§ê §Õ§â§å§Ô§Ú §á§â§à§Ô§â§Ñ§Þ§Ú
> (§Ü§à§Ú§ä§à §à§ä §ã§Ó§à§ñ §ã§ä§â§Ñ§ß§Ñ §Ó§Ú§Ü§Ñ§ä
> §ã§Ü§â§Ú§á§ä§à§Ó§Ö§ä§Ö). §¡§Ù  §á§â§Ñ§Ó§ñ §ä§Ñ§Ü§Ñ:
> §Ú§Ù§Ó§Ú§Ü§Ó§Ñ§Þ
> §á§â§à§ã§ä§Ñ §á§â§à§Ô§â§Ñ§Þ§Ü§Ñ
> (§ã§à§Ò§ã§ä§Ó§Ö§ß§à§ã§ä §ß§Ñ root §ã§ì§ã
> §ã§Ö§ä§ß§Ñ§ä setuid §æ§Ý§Ñ§Ô), §Ñ §ä§ñ §Þ§Ú
> §Ú§Ù§Ó§Ú§Ü§Ó§Ñ §ã§Ü§â§Ú§á§ä§Ñ
> §¦§ä§à §ñ §Ú §á§â§à§Ô§â§Ñ§Þ§Ü§Ñ:
> 
> int main() {
> setuid(0);
> setgid(0);
> execvp("/path/to/scipt");
> }
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.