PoC Codes - sample 1
# NBOX HDTV client for ITI 5800S, ITI 5800SX, ITI 2850ST, ITI2849ST
# (c) SECURITY EXPLORATIONS 2011 poland
box> jcat /flash/standalone.properties
#
gateway=010.000.000.002
presetGroupDefinitions=[]
latestDisplayedInvoice=649998
signal3Scan=false
LastUpgradeSatelliteSymbolrateKS=27500
videoMode=1080i
ip=010.000.000.006
singleCableMode=true
terrestrialUsedTuners=0
scanPromptHandled=true
appConfigOld=10
firstTimeInstallation=false
signal2Scan=false
downloadVersion=0X34
subnetMask=255.255.255.000
internetRadioTableVersion=1003
ethConfigType=2
signal4Scan=false
dns1=010.000.000.002
presetTableVersion=1006
lastUnreadInvoicePopup=649998_1321316262624
LastUpgradeSatelliteFrequencyMHz=11448
doNotRemoveThisLine=yes
box> cat /etc/udhcpc_iptv.script
#!/bin/sh
RESOLV_CONF="/etc/resolv.conf"
UDHCPC_INF="/tmp/udhcpc.inf"
update_interface()
{
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
ifconfig $interface $ip $BROADCAST $NETMASK
}
update_hosts()
{
echo "siaddr:$siaddr" >> $UDHCPC_INF
}
update_routes()
{
if [ -n "$router" ]
then
for i in $router
do
echo "[INFO] router: $i"
echo "[INFO] siaddr: $siaddr"
route add $siaddr gw $i dev $interface
echo "[INFO] IGMP 224.0.0.0 routing added to $interface"
route add -net 224.0.0.0 netmask 240.0.0.0 dev $interface
done
fi
}
rmfiles()
{
rm -f $UDHCPC_INF 2> /dev/null
}
deconfig()
{
ifconfig $interface 0.0.0.0
}
nak_received()
{
echo NAK
echo $message
}
echo $0 $1
case "$1" in
bound)
rmfiles
update_interface;
update_hosts;
update_routes;
;;
renew)
rmfiles
update_interface;
update_hosts;
update_routes;
;;
deconfig)
rmfiles
deconfig;
;;
leasefail)
rmfiles
;;
nak)
nak_received;
;;
*)
echo "Usage: $0 {bound|renew|deconfig|leasefail|nak}"
exit 1
;;
esac
exit 0