Skip to content

Instantly share code, notes, and snippets.

@nsapa
Last active April 19, 2022 02:39
Show Gist options
  • Save nsapa/6285ba0e008110f92157f990d17fe53e to your computer and use it in GitHub Desktop.
Save nsapa/6285ba0e008110f92157f990d17fe53e to your computer and use it in GitHub Desktop.
Alcatel Omnipcx
#!/bin/sh
##################################################################################
## SCRIPT : cmd_box.cgi ##
## DATE : 10-04-2011 ##
## PURPOSE: This script performs the command execution in ICT Phone ##
## sets which is selected. Done using SSH and SSHPASS for passwd ##
## free access to ICT Phones. ##
## FEATURE REF : crms00210086 ##
## Tool enhancement : crms00344140 ##
##################################################################################
function cleanup {
unset SSHPASS # Removing passwd from the environment for safety
}
function Flush_Out {
rm -rf /var/www/debug/ICTLogDebugFiles.tgz
rm -rf $ICT_DUMP
rm -rf /tmp/sipphones_info.out
exit 0
}
function dumping {
# @BD@OXO_8.1@crms00356055@120209@pnallath@
#echo "Content-Type: text/plain"
# @ED@OXO_8.1@crms00356055@120209@pnallath@
echo
if [ $switch -eq 2 ];then
GetAllPhoneIP
ICT_IP=(`grep -B 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "ip=" | sed 's/.*ip=\([0-9\.]*\).*/\1/'`)
ICT_SERVICE=(`grep -A 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "maintst=" | sed 's/.*maintst=//' | cut -d "," -f1 | tr -d " "`)
NO_OF_ICT=`echo ${#ICT_IP[@]}`
for (( i=0; i<$NO_OF_ICT; i++ ))
do
[ ${ICT_SERVICE[$i]} == "OutOfOrder" ] && continue
IP=${ICT_IP[$i]}
echo "========================Executing $CMD_EXE in $IP================================"
sshpass -e ssh $ADD_KNOWN_HOST admin@$IP sh --login -c "$CMD_EXE"
[ $? -ne 0 ] && echo "========================Execution failed in $IP========================"
done
cleanup
exit 0
fi
sshpass -e ssh $ADD_KNOWN_HOST admin@$IP sh --login -c "$CMD_EXE"
[ $? -ne 0 ] && echo "<html><font color='red'>Command exited with error status/Option supplied is not valid..!!</font></html>"
cleanup
}
function do_download {
echo "Content-Type: application/octet-stream"
echo
/bin/cat << EOM
<HTML>
<BODY>
<P>
<PRE>
EOM
# /usr/bin/wdt dump dumpSys
echo "<iframe src='../../ICTLogDebugFiles.tgz'width='100%' height='100%' ></iframe>"
/bin/cat << EOM
</PRE>
</P>
</BODY>
</HTML>
EOM
}
# Generic function for output display
function output {
#echo "Content-Type: text/plain"
echo
/bin/cat << EOM
<HTML>
<BODY>
<P>
<PRE>
EOM
case $switch in
"0")
echo "<font color='red'>$BASE_CMD: Command/Option not found or Permission denied</font>"
cleanup
;;
"1")
sshpass -e ssh $ADD_KNOWN_HOST admin@$IP sh --login -c "$CMD_EXE"
[ $? -ne 0 ] && echo "<font color='red'>Command exited with error status/Option supplied is not valid..!!</font>"
cleanup
;;
"2")
GetAllPhoneIP
ICT_IP=(`grep -B 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "ip=" | sed 's/.*ip=\([0-9\.]*\).*/\1/'`)
ICT_SERVICE=(`grep -A 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "maintst=" | sed 's/.*maintst=//' | cut -d "," -f1 | tr -d " "`)
NO_OF_ICT=`echo ${#ICT_IP[@]}`
for (( i=0; i<$NO_OF_ICT; i++ ))
do
[ ${ICT_SERVICE[$i]} == "OutOfOrder" ] && continue
IP=${ICT_IP[$i]}
echo "<font color='green'>========Executing $CMD_EXE in $IP============</font>"
sshpass -e ssh $ADD_KNOWN_HOST admin@$IP sh --login -c "$CMD_EXE"
[ $? -ne 0 ] && echo "<font color='red'>Execution failed in $IP</font>"
done
cleanup
;;
"3")
echo "<font color='green'>========Executing $CMD_EXE in $IP============</font>"
sshpass -e ssh $ADD_KNOWN_HOST admin@$IP sh --login -c "$CMD_EXE"
[ $? -ne 0 ] && echo "<font color='red'>Execution failed in $IP</font>"
;;
*)
echo "<font color='red'>Default case: Unknown execution</font>" # This case should not come
cleanup
;;
esac
/bin/cat << EOM
</PRE>
</P>
</BODY>
</HTML>
EOM
}
function GetAdmPasswd {
ADD_KNOWN_HOST="-o StrictHostKeyChecking=no"
adminPwd=`sed -rn 's@</?ICTAdminPasswd>@@pg' /current/sipdevices/config/generic_config.xml | sed -e 's/^[ \t]*//'`
[ $adminPwd ] && export SSHPASS=$adminPwd
}
function GetAllPhoneIP {
declare -a ICT_IP
[ -f /tmp/DBGCMD.DAT ] && rm -rf /tmp/DBGCMD.DAT
[ -f /tmp/sipphones_info.out ] && rm -rf /tmp/sipphones_info.out
echo "send sipphone s CTI device" >/tmp/DBGCMD.DAT
cd /tmp ; /var/www/debug/voip/voipdebug/voipdebug -s 127.0.0.1 -c >/tmp/sipphones_info.out
}
function SplCaseCmd {
[ $ALL ] && switch=2
if [ $BASE_CMD == "ping" ];then
echo $CMD_EXE | grep "\-c" >/dev/null
if [ $? -eq 0 ];then
output
exit 0
else
COUNT="-c\ 3"
echo "Output is restricted to count=3 -- Use -c option for desired count"
CMD_EXE="$CMD_EXE\ $COUNT"
output
exit 0
fi
fi
if [ $REMOTE_USER == "wdt" ] ; then
# Special case for commands starts with dump
echo "$BASE_CMD" | grep "^dump*" >/dev/null
if [ $? -eq 0 ]; then
dumping
# output
exit 0
fi
# Specail case for tcpdump: Limiting counts
if [ $BASE_CMD == "tcpdump" ]; then
echo $CMD_EXE | grep "\-c" >/dev/null
if [ $? -eq 0 ];then
output
exit 0
else
COUNT="-c\ 5"
echo "Output is restricted to count=5 -- Use -c option for desired count"
CMD_EXE="$CMD_EXE\ $COUNT"
output
exit 0
fi
fi
fi
}
function Exec_Installer {
[ $ALL ] && switch=2
# Allowing except "seturl" for dwl: special case
if [ $BASE_CMD == "dwl" ];then
OPTION=`echo $CMD_EXE | cut -d " " -f2`
if [ $OPTION != "seturl" ];then
output
exit 0
fi
switch=0;output;exit 0;
fi
# Allowed installer commands
declare -a installer=(ifconfig netstat traceroute audio ipconfig id mac dhcp phy btid btaddr reset ethernetstats arp redirect netlog level initstatus rtp codec route)
len=`echo ${#installer[@]}`
for (( i=0; i <= $len; i++ ))
do
if [ $BASE_CMD == ${installer[$i]} ];then
output
exit 0
fi
done
switch=0;output;exit 0; # Command not found in installer list.. Exiting with error..!!
}
function SplCaseCmd_All_Manufaturer {
GetAllPhoneIP
ICT_IP=(`grep -B 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "ip=" | sed 's/.*ip=\([0-9\.]*\).*/\1/'`)
ICT_SERVICE=(`grep -A 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "maintst=" | sed 's/.*maintst=//' | cut -d "," -f1 | tr -d " "`)
NO_OF_ICT=`echo ${#ICT_IP[@]}`
switch=3
for (( i=0; i<$NO_OF_ICT; i++ ))
do
[ ${ICT_SERVICE[$i]} == "OutOfOrder" ] && continue
IP=${ICT_IP[$i]}
CMD_PATH=`sshpass -e ssh $ADD_KNOWN_HOST admin@$IP export PATH="$PATH:/usr/sbin/debug;" which $BASE_CMD`
if [ $? -ne 0 ]; then
switch=0
output
exit 0 # Path unobtainable: Command not found. Exiting..!!
else
PATH_ALLOWED="/usr/sbin/debug/"
CMD_ET=`echo $CMD_PATH | sed "s/${BASE_CMD}//g"`
if [ $PATH_ALLOWED == $CMD_ET ]; then
output
else
switch=0
output
exit 0
fi
fi
done
cleanup
exit 0
}
function Exec_Manufacturer {
[ $ALL ] && switch=2
# Special case for commands starts with dump
echo "$BASE_CMD" | grep "^dump*" >/dev/null
if [ $? -eq 0 ]; then
dumping
exit 0
fi
# Specail case for tcpdump: Limiting counts
if [ $BASE_CMD == "tcpdump" ]; then
echo $CMD_EXE | grep "\-c" >/dev/null
if [ $? -eq 0 ];then
output
exit 0
else
COUNT="-c\ 5"
echo "Output is restricted to count=5 -- Use -c option for desired count"
CMD_EXE="$CMD_EXE\ $COUNT"
output
exit 0
fi
fi
# Special case commands:
# 1. Path fetching error: Permission problem in ICT
# 2. Commands not part of /usr/sbin/debug directory but needed as in spec
declare -a wdt=(ifconfig netstat traceroute arp route dwl redirect level comment deletelogs dwl defence fbset fbgrabjpg country certificate netlog)
len=`echo ${#wdt[@]}`
for (( i=0; i <= $len; i++ ))
do
if [ $BASE_CMD == ${wdt[$i]} ]; then
output
exit 0
fi
done
[ $ALL ] && SplCaseCmd_All_Manufaturer
CMD_PATH=`sshpass -e ssh $ADD_KNOWN_HOST admin@$IP export PATH="$PATH:/usr/sbin/debug;" which $BASE_CMD`
if [ $? -ne 0 ]; then
switch=0
output
exit 0 # Path unobtainable: Command not found. Exiting..!!
else
PATH_ALLOWED="/usr/sbin/debug/"
CMD_ET=`echo $CMD_PATH | sed "s/${BASE_CMD}//g"`
if [ $PATH_ALLOWED == $CMD_ET ]; then
output
exit 0
else
switch=0
output
exit 0
fi
fi
}
function DownloadLog {
[ -d $ICT_LOG_DIR ] && rm -rf $ICT_LOG_DIR
[ -f $ICT_DUMP ] && rm -rf $ICT_DUMP && rm -rf ./ICTLogDebugFiles.tgz
if [ $DOWN == "true" ]; then
GetAllPhoneIP
ICT_IP=(`grep -B 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "ip=" | sed 's/.*ip=\([0-9\.]*\).*/\1/'`)
ICT_SERVICE=(`grep -A 1 -o "termtyp=65" /tmp/sipphones_info.out | grep "maintst=" | sed 's/.*maintst=//' | cut -d "," -f1 | tr -d " "`)
NO_OF_ICT=`echo ${#ICT_IP[@]}`
for (( i=0; i<$NO_OF_ICT; i++ ))
do
[ ${ICT_SERVICE[$i]} == "OutOfOrder" ] && continue
IP=${ICT_IP[$i]}
mkdir -p $ICT_LOG_DIR/$IP/Data_Log $ICT_LOG_DIR/$IP/Var_Log
sshpass -e scp -r $ADD_KNOWN_HOST admin@$IP:/data/log/* $ICT_LOG_DIR/$IP/Data_Log/ >/dev/null
sshpass -e scp -r $ADD_KNOWN_HOST admin@$IP:/var/log/* $ICT_LOG_DIR/$IP/Var_Log/ >/dev/null
done
else
mkdir -p $ICT_LOG_DIR/$DOWN/Data_Log $ICT_LOG_DIR/$DOWN/Var_Log
sshpass -e scp -r $ADD_KNOWN_HOST admin@$DOWN:/data/log/* $ICT_LOG_DIR/$DOWN/Data_Log/ >/dev/null
sshpass -e scp -r $ADD_KNOWN_HOST admin@$DOWN:/var/log/* $ICT_LOG_DIR/$DOWN/Var_Log/ >/dev/null
fi
tar -zcf $ICT_DUMP $ICT_LOG_DIR
rm -rf $ICT_LOG_DIR
chmod 757 $ICT_DUMP
ln -fs $ICT_DUMP /var/www/debug/
do_download
# export QUERY_STRING="plugin=dump&function=dumpSys&op=files"
}
function Installer_Help {
echo "Content-Type: text/html"
echo
/bin/cat << EOM
<HTML>
<BODY>
<P>
<PRE>
EOM
echo "<font size="4" color='green'>Following are the list of possible installer commands.<br />Type the COMMAND in text box and click Help button.<br />Please select any Phone in the list before executing Help.<br /><br /></font>"
declare -a installer=('\0' ifconfig netstat traceroute audio ipconfig id mac dhcp phy btid btaddr reset ethernetstats arp redirect netlog level initstatus rtp codec route ping dwl)
len=`echo ${#installer[@]}`
for (( i=1; i < $len; i++ ))
do
echo "<font color='blue'>$i.${installer[$i]}</font>"
done
exit 0
/bin/cat << EOM
</PRE>
</P>
</BODY>
</HTML>
EOM
}
function Manufacturer_Help {
echo "Content-Type: text/html"
echo
/bin/cat << EOM
<HTML>
<BODY>
<P>
<PRE>
EOM
echo "<font size="4" color='green'>Following are the list of possible manufacturer commands.<br />Type the COMMAND in text box and click Help button.<br />Please select any Phone in the list before executing Help.<br /><br /></font>"
declare -a wdt=('\0' ifconfig netstat traceroute arp route dwl redirect level comment deletelogs dwl defence fbset fbgrabjpg country certificate netlog ping tcpdump)
len=`echo ${#wdt[@]}`
for (( i=1; i < $len; i++ ))
do
echo "<font color='blue'>$i.${wdt[$i]}</font>"
done
if [ $IP ]; then
echo "<font size="4" color='green'>Additional manufacturer commands...</font>"
GetAdmPasswd
x=1;
for i in `sshpass -e ssh $ADD_KNOWN_HOST admin@$IP sh --login -c "ls\ /usr/sbin/debug/"`
do
echo "<font color='blue'>$x.$i</font>"
x=`expr $x + 1`
done
else
echo "<font size="3" color='red'>Please select any Phone from phone list to get the complete list of commands.</font>"
fi
cleanup
exit 0
/bin/cat << EOM
</PRE>
</P>
</BODY>
</HTML>
EOM
}
function Show_Introduction {
echo
/bin/cat << EOM
<HTML>
<BODY>
<P>
<PRE>
EOM
echo "<font size="3"><b>Introduction:</b></font><br />"
echo "<font size="3" color='blue'>8082 My IC Phone Debug tool is used to debug the 8082 sets connected to OXO<br />through the given command line interface.By using this debug tool, you can</font><br /><br />"
echo "<font size="3" color='blue'><ol><li>Execute commands</li><li>Download logs</li><li>Get help</li></ol></font><br /><br />"
echo "<font size="3"><b>Execute commands:</b></font><br />"
echo "<font size="3" color='blue'>The list of possible commands for installer/manufacturer can be executed in<br />the target(s) 8082 Phone through the provided command textbox. Select the<br />target phone from the Phone list and execute the desired command. By<br />enabling/checking the checkbox \"All\" you can execute the desired commands in<br />all the target phones which are connected.<br /><br /></font><font size="3" color='red'><br />Warning: Using \"All\" option to excute in all target will take much time<br />depend on the number of Phones connected.</font><br /><br /><font size="3" color='green'><br />Note: Please use Help button to obtain the list of possible commands.</font><br /><br />"
echo "<font size="3"><b>Download logs:</b></font><br />"
echo "<font size="3" color='blue'>/data/log (Defence logs) and /var/log (Application logs) of the target<br />phone can be obtained using this button. By using the \"All\" option, logs in<br />all target can be downloaded.</font><br /><br /><font size="3" color='red'>Warning: Using \"All\" will take much time depends on the number of phones<br />connected.</font><br /><br />"
echo "<font size="3"><b>Get help:</b></font><br />"
echo "<font size="3" color='blue'>Get the list of possible commands for installer/manufacturer by using help<br />button. To get the help for individual command, type the command in given<br />textbox and click help button. Select any Phone from the list to get<br />complete list of possible commands (Only for Manufacturer).</font><br /><br /><font size="3" color='green'>Note: Any valid phone should be selected for getting the help of individual<br />command.</font><br /><br /><font size="3" color='red'>Warning: Using \"All\" option will give undesired output.</font><br /><br />"
/bin/cat << EOM
</PRE>
</P>
</BODY>
</HTML>
EOM
}
###############################################
############## Main : Entry point #############
###############################################
oIFS=$IFS
IFS="&"
echo $QUERY_STRING | sed s/"%2F"/"\/"/g | sed s/"\%23"/"#"/g > /tmp/net.$$
. /tmp/net.$$
OPT=`cat /tmp/net.$$ | cut -d "=" -f1`
rm /tmp/net.$$
IFS=$oIFS
[ $HELP == "All" ] && [ $REMOTE_USER == "installer" ] && Installer_Help
[ $HELP == "All" ] && [ $REMOTE_USER == "wdt" ] && Manufacturer_Help
# [ $HELP == "All" ] && Installer_Help
ICT_LOG_DIR="/current/debug/ICT_LOG_DUMP"
ICT_DUMP="/current/debug/ICTLogDebugFiles.tgz"
# [ $OPT == "CLEAN" ] && Flush_Out
COMMAND=`echo $CMD | sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g'` # URL Decoding
BASE_CMD=`echo -e $COMMAND | cut -d " " -f1`
CMD_EXE=`echo -e $COMMAND | sed 's/ /\\\ /g'`
case $OPT in
"DESCRIBE")
Show_Introduction
;;
"CLEAN")
Flush_Out
;;
"CMD")
switch=1 && GetAdmPasswd
# [ $ALL ] && GetAllPhoneIP && switch=2
SplCaseCmd
[ $REMOTE_USER == "installer" ] && Exec_Installer
[ $REMOTE_USER == "wdt" ] && Exec_Manufacturer
;;
"DOWN")
GetAdmPasswd
DownloadLog
;;
"HELP")
switch=1 && GetAdmPasswd
CMD_EXE=`echo -e "$BASE_CMD\\ --help"`
SplCaseCmd
[ $REMOTE_USER == "installer" ] && Exec_Installer
[ $REMOTE_USER == "wdt" ] && Exec_Manufacturer
;;
*)
echo "Unknown exception. Please try again."
;;
esac
04:05:31 [nico@Lyoko:~/temp … l/R103_064_001/DownloadingItems/bootl] $ binwalk -e boot-loader.bin
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
173528 0x2A5D8 CRC32 polynomial table, big endian
221788 0x3625C U-Boot version string, "U-Boot 1.3.0-rc3 (Nov 26 2015 - 16:16:13) 3EH30350ABAJ bootl100/001.009"
228972 0x37E6C uImage header, header size: 64 bytes, header CRC: 0xF6826BF7, created: 2015-11-26 10:46:50, image size: 10092 bytes, Data Address: 0x200000, Entry Point: 0x201D24, data CRC: 0x87F5A952, OS: Firmware, CPU: PowerPC, image type: Standalone Program, compression type: none, image name: "aleboot.bin"
239128 0x3A618 uImage header, header size: 64 bytes, header CRC: 0xE8415BBF, created: 2015-11-26 10:46:50, image size: 2850 bytes, Data Address: 0x200000, Entry Point: 0x200750, data CRC: 0x2A4DB81, OS: Firmware, CPU: PowerPC, image type: Standalone Program, compression type: none, image name: "gpioinit.bin"
242044 0x3B17C uImage header, header size: 64 bytes, header CRC: 0xB8357EBF, created: 2015-11-26 10:46:50, image size: 169216 bytes, Data Address: 0x0, Entry Point: 0x0, data CRC: 0xA1A1F0C6, OS: Firmware, CPU: PowerPC, image type: Firmware Image, compression type: none, image name: "FPGA4C1NV"
242108 0x3B1BC Xilinx Virtex/Spartan FPGA bitstream dummy + sync word
253980 0x3E01C Intel x86 or x64 microcode, sig 0x00000400, pf_mask 0x40000, 2002-02-02, size 72
359315 0x57B93 LZMA compressed data, properties: 0x66, dictionary size: 33554432 bytes, uncompressed size: 38 bytes
04:08:37 [nico@Lyoko:~/temp … Alcatel/R103_064_001/DownloadingItems] $ binwalk kernel/uImage
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 uImage header, header size: 64 bytes, header CRC: 0x2CB9E4BB, created: 2018-08-24 11:08:01, image size: 1967868 bytes, Data Address: 0x0, Entry Point: 0x0, data CRC: 0x1B3E5D00, OS: Linux, CPU: PowerPC, image type: OS Kernel Image, compression type: gzip, image name: "Linux-2.6.29.6-rt23-026.004"
64 0x40 gzip compressed data, maximum compression, has original file name: "vmlinux.bin.27932", from Unix, last modified: 2018-08-24 11:08:00
02:31:18 [nico@Lyoko:~/temp … mpac/_mpac.lf.extracted/squashfs-root] $ find . -type f
./var/www/home/lang/pt_PT.js
./var/www/home/lang/lv_LV.js
./var/www/home/lang/nl_NL.js
./var/www/home/lang/no_NO.js
./var/www/home/lang/da_DK.js
./var/www/home/lang/zh_CN.js
./var/www/home/lang/ru_RU.js
./var/www/home/lang/it_IT.js
./var/www/home/lang/el_GR.js
./var/www/home/lang/fi_FI.js
./var/www/home/lang/cs_CZ.js
./var/www/home/lang/lt_LT.js
./var/www/home/lang/ko_KR.js
./var/www/home/lang/sl_SL.js
./var/www/home/lang/he_HE.js
./var/www/home/lang/is_IS.js
./var/www/home/lang/fr_FR.js
./var/www/home/lang/de_DE.js
./var/www/home/lang/en_US.js
./var/www/home/lang/sv_SE.js
./var/www/home/lang/tw_TW.js
./var/www/home/lang/tr_TR.js
./var/www/home/lang/sk_SK.js
./var/www/home/lang/hu_HU.js
./var/www/home/lang/es_ES.js
./var/www/home/lang/ja_JP.js
./var/www/home/lang/pl_PL.js
./var/www/home/lang/et_EE.js
./var/www/home/lang/ar_AE.js
./var/www/home/home.js
./var/www/chooseOpHeader.sh
./var/www/debug/traces_m.php
./var/www/debug/procboard.php
./var/www/debug/certnames.php
./var/www/debug/resetcache.php
./var/www/debug/cgi-bin/CaInfo.cgi
./var/www/debug/cgi-bin/ict_list.cgi
./var/www/debug/cgi-bin/download_file.cgi
./var/www/debug/cgi-bin/cmd_box.cgi
./var/www/debug/cgi-bin/dircur.cgi
./var/www/debug/cgi-bin/NetFunct.cgi
./var/www/debug/cgi-bin/TrustStoreMgt.cgi
./var/www/debug/cgi-bin/ots_sync.cgi
./var/www/debug/cgi-bin/check_step.cgi
./var/www/debug/cgi-bin/gz.cgi
./var/www/debug/cgi-bin/dump.cgi
./var/www/debug/cgi-bin/RemoveCores.cgi
./var/www/debug/cgi-bin/corefile.cgi
./var/www/debug/cgi-bin/CertInfo.cgi
./var/www/debug/cgi-bin/all_check.cgi
./var/www/debug/cgi-bin/filesdebug.cgi
./var/www/debug/sys_files.php
./var/www/debug/process.php
./var/www/debug/generalInfos.php
./var/www/debug/header.php
./var/www/debug/check/voip.sh
./var/www/debug/check/index.php
./var/www/debug/ict.shtml
./var/www/debug/wlan.php
./var/www/debug/rtptick_freeze.php
./var/www/debug/rtptick_glbstats.php
./var/www/debug/tools/reset_sdp
./var/www/debug/tools/list_sdp
./var/www/debug/resetinccache.php
./var/www/debug/telnet_noeip.php
./var/www/debug/net.php
./var/www/debug/sip_mstate.php
./var/www/debug/ict.php
./var/www/debug/dir.php
./var/www/debug/sipinccache.php
./var/www/debug/proxy_m.php
./var/www/debug/download_file.php
./var/www/debug/inventory_disp.php
./var/www/debug/ca.php
./var/www/debug/setsipflgres.php
./var/www/debug/telewatching/cleanTW_Dir.cgi
./var/www/debug/telewatching/bashOnTheFly.cgi
./var/www/debug/telewatching/uploadFile.cgi
./var/www/debug/telewatching/tarCmd_TW.cgi
./var/www/debug/telewatching/tarCmd_TracesTW.cgi
./var/www/debug/telewatching/ckDevice.cgi
./var/www/debug/amcvDebug.php
./var/www/debug/list_sdp_shm.php
./var/www/debug/ots_sync.php
./var/www/debug/acd2.html
./var/www/debug/amcvMonitor2.html
./var/www/debug/proxy_i.php
./var/www/debug/voip.php
./var/www/debug/filesdebug.php
./var/www/debug/dircur.php
./var/www/debug/voip_m.php
./var/www/debug/setflg.php
./var/www/debug/tmp.html
./var/www/debug/hd.php
./var/www/debug/resources.sh
./var/www/debug/amcvVocoderCapture.php
./var/www/debug/js/voip.js
./var/www/debug/js/resources.js
./var/www/debug/js/sip_i.js
./var/www/debug/js/proxy.js
./var/www/debug/mount.php
./var/www/debug/net2.html
./var/www/debug/amcvDspStats.php
./var/www/debug/net_neighbors.php
./var/www/debug/amcvRead.shtml
./var/www/debug/device.php
./var/www/debug/daps_log.php
./var/www/debug/sip_i.php
./var/www/debug/rtptick_filelst.php
./var/www/debug/pppaddresses.php
./var/www/debug/debugvoip.php
./var/www/debug/resources.php
./var/www/debug/certificate.php
./var/www/debug/index.php
./var/www/debug/sipunreach.php
./var/www/debug/resetunreach.php
./var/www/debug/rtptick_display.php
./var/www/debug/proxy_d.php
./var/www/debug/cmd_box.html
./var/www/debug/amcvMonitor.php
./var/www/debug/route.php
./var/www/debug/process_albator.php
./var/www/debug/truststore_list.php
./var/www/debug/dump.php
./var/www/debug/amcvHeap.shtml
./var/www/debug/boot.php
./var/www/debug/rtptick_cmdlist.php
./var/www/debug/setflgres.php
./var/www/debug/im.php
./var/www/debug/ipphone_i.php
./var/www/debug/amcvLineCharac.shtml
./var/www/debug/amcvStats.shtml
./var/www/debug/ntp_forceUpdate.php
./var/www/debug/voip_dump.php
./var/www/debug/amcvWrite.shtml
./var/www/debug/ipphone.php
./var/www/debug/config_check.php
./var/www/debug/truststore.php
./var/www/debug/gz.php
./var/www/debug/files.php
./var/www/debug/sys_files2.html
./var/www/debug/nmc.php
./var/www/debug/sipphone.php
./var/www/debug/general.php
./var/www/debug/sip.php
./var/www/debug/sip_flag.php
./var/www/debug/footer.php
./var/www/debug/blank.html
./var/www/debug/inventory.php
./var/www/debug/acd.php
./var/www/debug/voip_check.php
./var/www/debug/core.php
./var/www/debug/sys_files_tmp.html
./var/www/debug/ntp_status.php
./var/www/debug/sipphone_i.php
./var/www/debug/traces.php
./var/www/debug/proxy/proxy_m.shtml
./var/www/debug/proxy/proxy_f.shtml
./var/www/debug/proxy/proxy_d.shtml
./var/www/debug/proxy/proxy.shtml
./var/www/debug/proxy/proxy_mf2.shtml
./var/www/debug/proxy/proxy_mf3.shtml
./var/www/debug/proxy/proxy_df1.shtml
./var/www/debug/proxy/proxy_df2.shtml
./var/www/debug/proxy/proxy_i.shtml
./var/www/debug/proxy/proxy_mf1.shtml
./var/www/debug/proxy/proxy_df3.shtml
./var/www/debug/dsp_status.php
./var/www/debug/traceroute.php
./var/www/debug/tele_db.php
./var/www/debug/sipcache.php
./var/www/debug/amcvMonitor3.html
./var/www/css/QM.css
./var/www/css/headerQT.shtml
./var/www/css/bootstrap.css
./var/www/css/headerQO.shtml
./var/www/css/header.shtml
./var/www/css/nop.css
./var/www/css/QQ.css
./var/www/css/QT.css
./var/www/css/QO.css
./var/www/css/tabs.css
./var/www/css/bootstrap-responsive.min.css
./var/www/css/headerQM.shtml
./var/www/css/headerQQ.shtml
./var/www/index.html
./var/www/plugins/ntp_status.so
./var/www/plugins/inventory.so
./var/www/plugins/proxyfiles.so
./var/www/plugins/licenses.so
./var/www/plugins/lldp.so
./var/www/plugins/version.so
./var/www/plugins/daps_log.so
./var/www/plugins/certificate.so
./var/www/plugins/hd.so
./var/www/plugins/telnet_noeip.so
./var/www/plugins/pcapp.so
./var/www/plugins/amcv_debug.so
./var/www/plugins/dump.so
./var/www/plugins/cab.so
./var/www/plugins/process.so
./var/www/plugins/sun_debug.so
./var/www/plugins/mem.so
./var/www/plugins/voipfiles.so
./var/www/plugins/resources.so
./var/www/plugins/boot.so
./var/www/plugins/cpu.so
./var/www/plugins/net.so
./var/www/plugins/board.so
./var/www/plugins/tele_db.so
./var/www/plugins/files.so
./var/www/plugins/heat.so
./var/www/plugins/sipdevice.so
./var/www/moh/htmlerr/pst_nwav.shtml
./var/www/moh/htmlerr/io_lock.shtml
./var/www/moh/htmlerr/int_main.shtml
./var/www/moh/htmlerr/io_def.shtml
./var/www/moh/htmlerr/peof_key.shtml
./var/www/moh/htmlerr/int_def.shtml
./var/www/moh/htmlerr/default.shtml
./var/www/moh/htmlerr/pst_fwav.shtml
./var/www/moh/htmlerr/pst_mark.shtml
./var/www/moh/htmlerr/peof_mis.shtml
./var/www/moh/htmlerr/pst_wavf.shtml
./var/www/moh/htmlerr/success.shtml
./var/www/moh/htmlerr/peof_pst.shtml
./var/www/moh/htmlerr/peof_def.shtml
./var/www/moh/htmlerr/int_grp.shtml
./var/www/moh/htmlerr/pst_lwav.shtml
./var/www/moh/htmlerr/io_lockd.shtml
./var/www/moh/htmlerr/pst_ent.shtml
./var/www/moh/htmlerr/peof_grp.shtml
./var/www/moh/htmlerr/pst_def.shtml
./var/www/moh/htmlerr/pst_swav.shtml
./var/www/moh/header.php
./var/www/moh/index.php
./var/www/moh/footer.php
./var/www/chooseOpCss.sh
./var/www/auth.cgi
./var/www/javascript/webInfra.js
./var/www/javascript/jquery.js
./var/www/javascript/bootstrap.min.js
./var/www/monitor/wdt.auth
./var/www/monitor/traces_m.php
./var/www/monitor/uploadLicense.shtml
./var/www/monitor/procboard.php
./var/www/monitor/cgi-bin/ict_list.cgi
./var/www/monitor/cgi-bin/cmd_box.cgi
./var/www/monitor/cgi-bin/uploadLicenses.cgi
./var/www/monitor/cgi-bin/serial_config.cgi
./var/www/monitor/cgi-bin/NetFunct.cgi
./var/www/monitor/cgi-bin/getFile.cgi
./var/www/monitor/cgi-bin/ots_sync.cgi
./var/www/monitor/cgi-bin/serial_config_submit.cgi
./var/www/monitor/cgi-bin/dump.cgi
./var/www/monitor/cgi-bin/uploadFile.cgi
./var/www/monitor/cgi-bin/reboot.cgi
./var/www/monitor/serial_config.php
./var/www/monitor/header.php
./var/www/monitor/sys_files_m.php
./var/www/monitor/wlan.php
./var/www/monitor/net.php
./var/www/monitor/meminfo.php
./var/www/monitor/data_saving.php
./var/www/monitor/inventory_disp.php
./var/www/monitor/sys_files2_m.html
./var/www/monitor/sys_files_m.html
./var/www/monitor/ots_sync.php
./var/www/monitor/wdt.cgi
./var/www/monitor/proxy_i.php
./var/www/monitor/voip_m.php
./var/www/monitor/tmp.html
./var/www/monitor/device.php
./var/www/monitor/daps_log.php
./var/www/monitor/index.php
./var/www/monitor/boot.php
./var/www/monitor/ipphone_i.php
./var/www/monitor/voip_dump.php
./var/www/monitor/ipphone.php
./var/www/monitor/sys_start.php
./var/www/monitor/nmc.php
./var/www/monitor/sys_files3_m.html
./var/www/monitor/footer.php
./var/www/monitor/inventory.php
./var/www/monitor/ntp_status.php
./var/www/monitor/traceroute.php
./var/www/imgs/logo.png
./var/www/imgs/logoQO.jpeg
./var/www/imgs/logoQM.jpeg
./var/www/imgs/icons/readme.txt
./var/www/imgs/icons/empty.png
./var/www/imgs/icons/connect.png
./var/www/imgs/icons/transmit.png
./var/www/imgs/icons/phone.png
./var/www/imgs/icons/glyphicons-halflings-white.png
./var/www/imgs/icons/favicon.ico
./var/www/imgs/icons/glyphicons-halflings.png
./var/www/imgs/icons/computer.png
./var/www/imgs/icone_snmp.png
./var/www/imgs/info.png
./var/www/imgs/myicoffice.png
./var/www/imgs/homepage.jpeg
./var/www/imgs/logo.gif
./var/www/imgs/logoQQ.jpeg
./var/www/imgs/menu.jpeg
./var/www/imgs/logoQT.jpeg
./var/www/imgs/certificat.png
./lib/preloadable_libiconv.so
./lib/libasn1code.so
./lib/libcharset.so.1.0.0
./lib/libiconv.so.2.3.0
./bin/tcpdump
./opt/isdn/hisaxctrl
./opt/isdn/isdnctrl
./opt/isdn/ipppd
./usr/lib/libapifw.so
./usr/lib/libSckCliServ.so
./usr/lib/libIpmexInox.so
./usr/lib/libThreadCfg.so
./usr/lib/libIpmexDsp.so
./usr/lib/libsocket.so
./usr/lib/gconv/ISO8859-1.so
./usr/lib/gconv/gconv-modules
./usr/bin/phd.cgi
./usr/bin/lsmmc.ids
./usr/bin/wdt
./usr/bin/lsmmc
./usr/bin/sipphone_quarantine.sh
./usr/bin/wdtSummary
./usr/bin/host
./usr/bin/trcsrv
./usr/bin/launcher
./usr/bin/trigger_lpcm
./usr/sbin/vle_init.sh
./usr/sbin/addipphone_to_dhcpd
./usr/sbin/dhclient
./usr/sbin/dhcpd
./usr/sbin/proftpd
./usr/sbin/send_req_OTS_sync.sh
./usr/sbin/emmc_hltchk.sh
./usr/sbin/update_dhcp
./usr/sbin/compute_hash.sh
./usr/sbin/update_802prio
./usr/sbin/hash_link.sh
./usr/sbin/dhcpd.sh
./usr/sbin/tp_dhcp
./usr/sbin/generate_hash.sh
02:31:47 [nico@Lyoko:~/temp … mpac/_mpac.lf.extracted/squashfs-root] $ strings ./opt/isdn/isdnctrl |grep -A2 -i isdn
system on|off switch isdn-system on or off
addlink name MPPP, increase number of links
removelink name MPPP, decrease number of links
--
/dev/isdninfo
Can't open /dev/isdninfo
from
%s connected %s %s
--
isdn.conf
ISDN Configuration written to %s.
ISDN Configuration read from %s.
%s joined to %s
%s detached from ??
--
isdnctrl's view of API-Versions:
ttyI: %d, net: %d, info: %d
Could not get version of kernel ioctl structs!
--
(Try recompiling isdnctrl).
Kernel's view of API-Versions:
Version of kernel ioctl structs (%d) does NOT match
version of isdnctrl (%d)!
Kernel-Version too old, terminating.
UPDATE YOUR KERNEL.
Kernel-Version newer than isdnctrl-Version, terminating.
GET A NEW VERSION OF isdn4k-utils.
Version 3 is an interim NOT compatible to others, terminating
RECOMPILE isdnctrl!
- Option 'trigger' disabled.
- Option 'chargeint' disabled.
Recompiling of isdnctrl is STRONGLY RECOMMENDED.
/dev/isdnctrl
ISDNCTRL
3.1beta7
/proc/net/dev
--
ISDN_CONF_PATH
/etc/isdn
%s%c%s.%s.pid
/var/run
--
isdn.conf
callerid.conf
~/.isdn
%s|%s/%s|!%s
NUMBER
04:09:26 [nico@Lyoko:~/temp … Alcatel/R103_064_001/DownloadingItems] $ cat ramdsk/conf.rc
# Syntaxe:
# CPU | Type | Path | Reaction | time_out: in seconds or mount point for Loopback
# CPU : (M)ain or (I)a or (V)oip
# Type: (L)oopback, (T)elephony, m(O)dule, (M)odule compressed, One (S)hot, (E)xternal, (A)lcatel, (D)aemon, archive g(Z),
# Reaction : action to perform in failure case : (N)othing = ignore error, (R)eboot, (F)ailure = restart it several times
# The number of fields depends of the Type field.
M+A | L | ./linpac/linpac.lf | ./linpac_mnt
M+A | S | /usr/bin/crontab /etc/cron | F
# Enable starting of failsafe service with logs activated
M+A | D | /usr/sbin/crond -S | N
M | S | /bin/start_noflushd.sh | N
M | D | /usr/bin/smartd | N
M | E | /usr/bin/GetHDTemp | N
M+A | S | /usr/bin/pass `/usr/bin/alzcheck --main; echo $?` /etc/httpfw.passwd | N
M+A | E | /usr/bin/web_file_server.sh --start | N
M+A | S | /usr/bin/http_framework_init.sh | N
M+A | S | /usr/sbin/check_mem.sh clean | N
M | E | /usr/sbin/init_lighttpd.sh | N
M+A | E | /usr/bin/lighttpd -f /etc/lighttpd.conf & | N
# @BA@OXO_10.3@crqms00188378@150205@pkailaru@
M+A | D | /usr/sbin/sys_monitor & | N
# @EA@OXO_10.3@crqms00188378@150205@pkailaru@
M+A | D | /usr/sbin/lldpd -v | N
M | D | /bin/ntpd | N
04:09:31 [nico@Lyoko:~/temp … Alcatel/R103_064_001/DownloadingItems] $ binwalk ramdsk/initrd.gz
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 uImage header, header size: 64 bytes, header CRC: 0x68463CBD, created: 2018-08-27 06:29:27, image size: 6200053 bytes, Data Address: 0x0, Entry Point: 0x0, data CRC: 0xC254C160, OS: Linux, CPU: PowerPC, image type: RAMDisk Image, compression type: gzip, image name: "PowerPC_RAMdisk"
64 0x40 gzip compressed data, maximum compression, from Unix, last modified: 2018-08-27 06:29:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment