<?php
error_reporting(1);
$Status = system("/usr/bin/ctlmgr_ctl r power status/act_temperature");
header("Content-Type: text/plain");
echo "T";
if ($Status) {
echo "#".$Status."#";
}
else {
echo "E#";
}
exit;
?>
//EOF
../cgi-bin/php-cgi -f pseudocputemp.php
61
T#61#
$Status = system("/usr/bin/ctlmgr_ctl r dslstatistic status/ifacestat0/ipaddr");
header("Content-Type: text/plain");
header("Content-Type: text/html");
header("Content-Type: text/xml");
header("Content-Type: application/xhtml+xml");
su - nobody ls
su: can't change directory to '/nonexistent'
su: can't change directory to '/': Permission denied
nobody:x:65535:65535:nobody:/nonexistent:/bin/false
#!/bin/sh
ff_wlan () {
if [ $(/usr/bin/ctlmgr_ctl r wlan status/ap_enabled) == 0 ]
then
/usr/bin/ctlmgr_ctl w wlan settings/ap_enabled 1
echo 'WLAN ein'
else
/usr/bin/ctlmgr_ctl w wlan settings/ap_enabled 0
echo 'WLAN aus'
fi
}
ff_wlan
#EOF
#!/bin/sh
echo 'Content-type: application/xhtml+xml; charset="utf-8"
'
echo '<?xml version="1.0" encoding="utf-8"?>
<SnomIPPhoneText state="relevant">
<Title></Title>
<Prompt></Prompt>
<Text>'$(../scripts/flipflop_wlan.sh)'</Text>
<Fetch mil="5000">snom://mb_exit</Fetch>
</SnomIPPhoneText>
'
#EOF
Shellskriptbefehle...
...und das ist noch längst nicht alles.Code:#!/bin/sh local TEMPERATUR=$(ctlmgr_ctl r power status/act_temperature) local STAT_TEMP=$(ctlmgr_ctl r cpu status/StatTemperature) local CONN_STATUS=$(ctlmgr_ctl r dslstatistic status/ifacestat0/connection_status) local DS_RATE=$(ctlmgr_ctl r sar status/dsl_ds_rate) local US_RATE=$(ctlmgr_ctl r sar status/dsl_us_rate) local MYIPADDR=$(ctlmgr_ctl r dslstatistic status/ifacestat0/ipaddr) local MYIP6=$(ctlmgr_ctl r ipv6 settings/enabled) local NUM_ONLINE=$(ctlmgr_ctl r wlan settings/active_stations) local DECT_STATUS=$(ctlmgr_ctl r dect settings/enabled) local NUM_NEW_MESSAGES=$(ctlmgr_ctl r tam settings/NumNewMessages) local WLAN_AP="$(ctlmgr_ctl r wlan status/ap_enabled)" local WLAN_GUEST="$(ctlmgr_ctl r wlan settings/guest_ap_enabled)"
Was steht denn als Homeverzeichnis und Shell für boxusr99 in der /etc/passwd ?