imagine Posted October 16, 2006 Report Share Posted October 16, 2006 Vai ir taads html tags, vai arii PHP skripts, ar kura paliidziibu var palaist kaadu noteiktu programmu uz servera! Pienjemsim: Ieraxta tur adresi: www.blabla.lv/runprogram.html(vai php) un vinjsh attaisa lapu kuraa var redzeet divas pogas, starteet progu un izsleegt to. Shajaa gadijumaa, situaacija ir taada, ka man vajag iesleegt hlds.bat failu, un peec tam ar iespeeju vinju izsleegt. Gribu, lai to var izdariit paaris cilveeki, bet negribaas visiem kaut kaa dot remotecontrol pieeju serverim. Thx for help! Link to comment Share on other sites More sharing options...
andrisp Posted October 16, 2006 Report Share Posted October 16, 2006 (edited) Ar HTML noteikti nevar, bet ar php var. Skaties uz system/exec pusi. Palaist vienkārši - system() vai exec() Apstādināt gan īsti nezinu. Uz nix tu varētu savākt procesa PID pēc palaišanas un pēc tam ar to pašu system vai exec palaist kill -9 PID. Uz Win gan jau arī kautkā var, tik jāpameklē. Edited October 16, 2006 by andrisp Link to comment Share on other sites More sharing options...
imagine Posted October 16, 2006 Author Report Share Posted October 16, 2006 (edited) Nevajag taisīt muļķīgas QUOTEs (bubu) Paldies, vismaz tuvaak uzvedinaaji! Bet taa pat iisti neko nezinu! nesanaak man nekas :( Edited October 16, 2006 by bubu Link to comment Share on other sites More sharing options...
yancho Posted October 16, 2006 Report Share Posted October 16, 2006 Apskati apaches log failu, varbūt ieraudzīsi ko noderīgi, kas uzvedinās uz problēmu. Link to comment Share on other sites More sharing options...
andrisp Posted October 16, 2006 Report Share Posted October 16, 2006 Atceries, ka safe_mode (php konfigurācija, meklē failu php.ini) nedrīkst būt On. Link to comment Share on other sites More sharing options...
imagine Posted October 18, 2006 Author Report Share Posted October 18, 2006 Hmm.... Maybe kaads zin preciizus skriptus? Link to comment Share on other sites More sharing options...
bubu Posted October 18, 2006 Report Share Posted October 18, 2006 Manuālis visu zin: http://lv2.php.net/system un http://lv2.php.net/manual/en/function.exec.php Link to comment Share on other sites More sharing options...
Recommended Posts