สอบถามเกี่ยวกับ Control Panel

Control Panel shoutcast ของไทยหายากจริงๆ

ช่วยแนะนำของนอก ที่นิยมใช้กัน และใช้ได้ดีหน่อยครับ ขอแบบมีระบบออโต้ดีเจนะครับ ขอบคุณครับ

shoutcast admin ครับ

http://www.streamerspanel.com/en/home/

ทดลองติดตั้งดูแล้ว แต่ไม่สามารถ start พอทได้ มันจะค้างหน้าขาวๆ ใครทราบวิธีแก้บอกหน่อยละกันครับ

Requirements: Web Server with Shell / System Access, PHP5,

เป็นเหมือนกันครับ

มีเพื่อนร่วมชะตากรรมแล้ว ใครรู้และแก้ได้ช่วยหน่อยนะครับ อิอิ

จริงๆ ผมเองก็ไม่ได้ใช้หรอกครับ เพียงแต่มาช่วยลองน่ะครับ หากทำได้รบกวนบอกด้วยนะครับ

แนะได้ครับ ให้ดูที่ไฟส์ php.ini ว่า disable_function ได้ทำการปิด shell_exec อยู่หรือเปล่า [ทำ .htaccess เปิดเฉพาะไซต์ พอเดี๋ยวเครื่องเป็นรู]

ลอง Link เครื่องผมดูครับ http://radio.bangkok4u.com/test.php

คำสั่งในไฟส์ test.php ของผมลองสั่ง ls -l คือแสดงไฟส์ คำสั่งนี้คือคำสั่งของ linux ถ้าทำงานได้แสดงว่าเครื่องสั่งคำสั่งอื่นๆ ได้เช่นกัน

<?

$output = shell_exec(‘ls -lart’);

echo “<pre>$output</pre>”;

?>

ผมใช้โปรแกรมตัวนี้มานานแล้วครับ ได้ 3ปีแล้ว ใช้งานได้ดี http://radio.bangkok4u.com

*** Function นี้อัตรายต่อเครื่องมาก ดังนั้นควรมีความเข้าใจในการเปิดเฉพาะเว็บ ไม่ควรเปิดทั้งเครื่องจ้า เดี๋ยวเครื่องเป็นรู

หลังจากสามารถสั่งการได้แล้วเข้าไปที่ server_top.php ไล่แก้โค๊ดเลยครับ โดยเราไม่ใช้ ssh2_connect เป็นต้น เช่น

if ($setting[‘os’] == ‘linux’) {

   $connection = ssh2_connect('localhost', $setting['ssh_port']);

   ssh2_auth_password($connection, ''.base64_decode($setting['ssh_user']).'', ''.base64_decode($setting['ssh_pass']).'');

   $ssh2_exec_com = ssh2_exec($connection, 'sudo -u '.base64_decode($setting['ssh_user']).' '.$setting["dir_to_cpanel"].'files/linux/sc_serv '.$setting["dir_to_cpanel"].$filename.' &lt;/dev/null 2&gt;/dev/null &gt;/dev/null & echo $!');

   sleep(4);

   $pid = stream_get_contents($ssh2_exec_com);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ตัวอย่างโค๊ดที่ผมได้แก้ลงไป เช่น

shell_exec(ps -ef | grep /temp/8002/8002.conf | awk ‘{print $2}’);

$string = shell_exec(‘ps -ef | grep /temp/8002/8002.conf’);

$stringcut = explode(" ",$string);

echo $stringcut[1];

#! /bin/sh

for PID in ps -ef | grep /temp/8006/8006.conf | awk '{print $2}'

do

echo killing $PID

kill -9 $PID

done

shell_exec("nohup ".$setting[‘dir_to_cpanel’].“files/linux/sc_trans “.$setting[‘dir_to_cpanel’].$filename.” > /dev/null & echo $!”);

$pid = shell_exec("nohup ".$setting[‘dir_to_cpanel’].“files/linux/sc_serv “.$setting[‘dir_to_cpanel’].$filename.” > /dev/null & echo $!”);

shell_exec(“nohup /home/radio/public_html/files/linux/sc_trans /home/radio/public_html/temp/8000/8000.conf”);

shell_exec('kill '.$pid );

echo("<meta http-equiv=‘refresh’ content=‘0;url=http://radio.bangkok4u.com/content.php?include=admradio’>");

echo ‘<script type=“text/javascript”>alert(’’ . $text_count . ‘’);</script>’;

ps -ef | grep /temp/8000/8000.conf | awk ‘{print $2}’