{"id":1513,"date":"2014-08-29T07:54:13","date_gmt":"2014-08-29T14:54:13","guid":{"rendered":"https:\/\/surfrock66.com\/?p=1513"},"modified":"2018-11-15T22:52:58","modified_gmt":"2018-11-16T06:52:58","slug":"improving-the-motorola-blink-baby-monitorcamera-part-2","status":"publish","type":"post","link":"https:\/\/surfrock66.com\/?p=1513","title":{"rendered":"Improving the Motorola Blink Baby Monitor\/Camera (Part 2)"},"content":{"rendered":"<p><p>So, I was able to acquire the actual ROM image for the firmware.  <a href=\"https:\/\/surfrock66.com\/romfsList.txt\">Here's a dump of the file structure.<\/a>  I found a few gems:<\/p>\r\n<p>The contents of \/etc\/passwd:<\/p><br \/>\n<code>root:x:0:0:root:\/:\/bin\/sh<br \/>\nnobody:x:99:99:Nobody:\/:\/sbin\/nologin<br \/>\nftp:x:501:0:ftp:\/var:\/bin\/sh<br \/>\nusb:x:504:100::\/usb:<\/code><br \/>\r\n<p>Also, this appears to be an init script mounting a bunch of things:<\/p><!--more--><br \/>\n<code>#!\/bin\/sh<br \/>\n\/bin\/mount -t proc none \/proc<br \/>\n\/bin\/mount -t sysfs none \/sys<br \/>\n\/bin\/mount -t ramfs none \/dev<br \/>\n\/bin\/tar xzf \/dev.tar.gz -C \/<br \/>\n\/bin\/mount -t devpts none \/dev\/pts<br \/>\n\/bin\/mount -t ramfs none \/dev\/shm<\/code><br \/>\r\n<p>Here's another one called initscript.sh:<\/p><br \/>\n<code>#!\/bin\/sh<br \/>\nSOURCE_FOLDER=\/mlsrb_src<br \/>\nDEST_FOLDER=\/mlsrb<br \/>\nDEST2_FOLDER=mlswwwn<br \/>\nDEST3_FOLDER=cgi-bin<br \/>\n#extra folder needed<br \/>\nmkdir \/var\/run<br \/>\nmkdir \/var\/log<br \/>\nmkdir $DEST_FOLDER<br \/>\nmkdir $DEST_FOLDER\/$DEST2_FOLDER<br \/>\nmkdir $DEST_FOLDER\/$DEST2_FOLDER\/$DEST3_FOLDER<br \/>\nfor i in $SOURCE_FOLDER\/* ; do<br \/>\n&emsp;name=${i##*\/}<br \/>\n&emsp;ln -s $SOURCE_FOLDER\/$name $DEST_FOLDER\/$name<br \/>\ndone<br \/>\nfor i in $SOURCE_FOLDER\/$DEST2_FOLDER\/* ; do<br \/>\n&emsp;name=${i##*\/}<br \/>\n&emsp;ln -s $SOURCE_FOLDER\/$DEST2_FOLDER\/$name $DEST_FOLDER\/$DEST2_FOLDER\/$name<br \/>\ndone<br \/>\nfor i in $SOURCE_FOLDER\/$DEST2_FOLDER\/$DEST3_FOLDER\/* ; do<br \/>\n&emsp;name=${i##*\/}<br \/>\n&emsp;ln -s $SOURCE_FOLDER\/$DEST2_FOLDER\/$DEST3_FOLDER\/$name<br \/>\n$DEST_FOLDER\/$DEST2_FOLDER\/$DEST3_FOLDER\/$name<br \/>\ndone<br \/>\n#any extra thing need to do?????<br \/>\ncp \/RT2870AP.dat \/tmp\/RT2870AP.dat<br \/>\ncp \/RT2870STA.dat \/tmp\/RT2870STA.dat<br \/>\n\/bin\/pcd -c<br \/>\n\/sbin\/syslogd -S -s1024 -l7<br \/>\n#\/mlsrb\/iperf -s -D &<br \/>\n#\/usr\/sbin\/telnetd -l \/bin\/sh<br \/>\n#remember to put any read\/write file to this script<\/code><br \/>\r\n<p>Now, getting access to the web server, I can see some new pages:<\/p>\r\n<ul>\r\n<li>http:\/\/IP\/BadPage.html<\/li>\r\n<li>http:\/\/IP\/OkPage.html<\/li>\r\n<li>http:\/\/IP\/test.html<\/li>\r\n<li>http:\/\/IP\/test.bk.html<\/li>\r\n<\/ul><br \/>\r\n<p>Test introduces some new commands...some of which are very important!<\/p>\r\n<ul>\r\n<li>move_backward_cont1.0 - Pan the camera backwards continuously until the limit of movement<\/li>\r\n<li>move_left_cont1.0 - Pan the camera left continuously until the limit of movement<\/li>\r\n<li>move_right_cont1.0 - Pan the camera right continuously until the limit of movement<\/li>\r\n<li>move_forward_cont1.0 - Pan the camera forward continuously until the limit of movement<\/li>\r\n<li>melodystop - Stop a looping lullaby<\/li>\r\n<li>melody1 - Play lullaby 1 in a loop<\/li>\r\n<li>melody2 - Play lullaby 1 in a loop<\/li>\r\n<li>melody3 - Play lullaby 1 in a loop<\/li>\r\n<li>melody4 - Play lullaby 1 in a loop<\/li>\r\n<li>melody5 - Play lullaby 1 in a loop<\/li>\r\n<\/ul><br \/>\r\n<p>Related Posts:<\/p>\r\n<ul>\r\n<li><a href=\"https:\/\/surfrock66.com\/improving-the-motorola-blink-baby-monitorcamera\/\">Improving the Motorola Blink Baby Monitor\/Camera<\/a><\/li>\r\n<li><a href=\"https:\/\/surfrock66.com\/improving-the-motorola-blink-baby-monitorcamera-part-3\/\">Improving the Motorola Blink Baby Monitor\/Camera (Part 3)<\/a><\/li>\r\n<li><a href=\"https:\/\/surfrock66.com\/improving-the-motorola-blink-baby-monitorcamera-part-4\/\">Improving the Motorola Blink Baby Monitor\/Camera (Part 4)<\/a><\/li>\r\n<li><a href=\"https:\/\/surfrock66.com\/improving-the-motorola-blink-baby-monitorcamera-part-5-2\/\">Improving the Motorola Blink Baby Monitor\/Camera (Part 5)<\/a><\/li>\r\n<\/ul><br \/>\r\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>root:x:0:0:root:\/:\/bin\/sh nobody:x:99:99:Nobody:\/:\/sbin\/nologin ftp:x:501:0:ftp:\/var:\/bin\/sh usb:x:504:100::\/usb:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3],"tags":[],"class_list":["post-1513","post","type-post","status-publish","format-standard","hentry","category-geek","category-projects"],"_links":{"self":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/1513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1513"}],"version-history":[{"count":20,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/1513\/revisions"}],"predecessor-version":[{"id":1640,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/1513\/revisions\/1640"}],"wp:attachment":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}