SERVIDORES FIRMWARE

Ir abajo

SERVIDORES FIRMWARE Empty SERVIDORES FIRMWARE

Mensaje  paketorix el Vie Dic 11, 2009 8:44 pm

Enredando con la consola he podido ver los servidores de donde se bajan las actualizaciones:

haciendo ps



671 root 492 S sh
744 root 5640 S DvdPlayer -s power
747 root 396 S sh -c ./wget http://aswnus.lge.com/servlet/DownloadIm
748 root 344 S ./wget http://aswnus.lge.com/servlet/DownloadImageCmd




No se puede acceder porque, según he entendido, no son servidores para acceder por http...
Una curiosidad más Neutral


Última edición por paketorix el Miér Dic 16, 2009 6:08 pm, editado 1 vez

paketorix

Mensajes : 47
Fecha de inscripción : 08/12/2009

Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty Re: SERVIDORES FIRMWARE

Mensaje  vic1972 el Vie Dic 11, 2009 9:52 pm

Curioso, si. Gracias por el aporte.
Ya sabemos porque dejaron el wget Wink
Esa es la URL para comprobar y bajarse los firmware, lo unico que creo nos faltan serian los parametros correctos
de llamadas al servlet. Creo que snifando los paquetes se podria ver.
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 47
Localización : Malaga

Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty Re: SERVIDORES FIRMWARE

Mensaje  paketorix el Vie Dic 11, 2009 10:00 pm

Nunca he snifado... ni siquiera talco pirat

Si ya lo has instalado, lo suyo sería volver al anterior a través de usb y comenzar todo el proceso. (snifando) Wink

paketorix

Mensajes : 47
Fecha de inscripción : 08/12/2009

Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty firmware download protocol

Mensaje  DavidO el Lun Dic 28, 2009 10:27 pm

Hello,
I have posted this to a French forum, but I hope you won't be angry about posting it here too...

Here is what I have found listening to the communication my player had with the LG server:

The player asks for a new version by connecting to server aswnus.lge.com port 80 (i.e. standard http connection) with the following request:
Código:
POST /servlet/CheckFEInfoCmd.fec HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: aswnus.lge.com
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 365

PFJFUVVFU1Q+CjxQUk9EVUNUX0lEPlAwMDc8L1BST0RVQ1RfSUQ+CjxNT0RFTF9OTT5NUzQwMEQ8
L01PREVMX05NPgo8RldfVFlQRT5NYWluPC9GV19UWVBFPgo8SU1BR0VfUkVWPjwvSU1BR0VfUkVW
Pgo8SU1BR0VfVkVSPjA5MDcyOEE8L0lNQUdFX1ZFUj4KPEtFUk5FTF9WRVI+PC9LRVJORUxfVkVS
Pgo8Uk9PVEZTX1ZFUj48L1JPT1RGU19WRVI+CjxERVZJQ0VfSUQ+MDwvREVWSUNFX0lEPgo8SUdO
T1JFX0RJU0FCTEU+TjwvSUdOT1JFX0RJU0FCTEU+CjwvUkVRVUVTVD4K
The unencoded request body is:
Código:
<REQUEST>
<PRODUCT_ID>P007</PRODUCT_ID>
<MODEL_NM>MS400D</MODEL_NM>
<FW_TYPE>Main</FW_TYPE>
<IMAGE_REV></IMAGE_REV>
<IMAGE_VER>090728A</IMAGE_VER>
<KERNEL_VER></KERNEL_VER>
<ROOTFS_VER></ROOTFS_VER>
<DEVICE_ID>0</DEVICE_ID>
<IGNORE_DISABLE>N</IGNORE_DISABLE>
</REQUEST>
Notes:
1. The Content-Length is calculated based on the encoded body length
2. The body is sent base64 encoded
3. The IMAGE_VER data is the current firmware version of the player
4. My player is the MS450H, which is internally marked as MS400D as can be seen from the request. I cannot tell whether it is the same for LG MS400H (and the product ID too), this would have to be confirmed by a MS400H owner who would do the same as me.

The answer from the server is:
Código:
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Mon, 28 Dec 2009 14:23:33 GMT
Content-length: 584
Content-type: text/html;charset=UTF-8
Connection: close

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48UkVTUE9OU0U+PFJFUV9JRD4w
MDAwMDAwMDAwMDAyMjExMTQ0NDwvUkVRX0lEPjxSRVNVTFRfQ0Q+OTAwPC9SRVNVTFRfQ0Q+PE1T
Rz5TdWNjZXNzPC9NU0c+PElNQUdFX1VSTD5odHRwOi8vYXN3bnVzLmxnZS5jb20vc2VydmxldC9E
b3dubG9hZEltYWdlQ21kLmlkbjwvSU1BR0VfVVJMPjxVUERBVEVfQ05UPjE8L1VQREFURV9DTlQ+
PElNQUdFX1NJWkU+MTgxNTU1MzY8L0lNQUdFX1NJWkU+PElNQUdFX0RJUj4vZGF0YTQvYXN3bnVz
L2FwcGxpY2F0aW9ucy9HQlBTL0dCUFNfRU5WL3VwbG9hZC9zd251LzIwMDkxMjwvSU1BR0VfRElS
PjxJTUFHRV9OQU1FPjIwMDkxMjEwMDE0MjM5MzY1LmltZzwvSU1BR0VfTkFNRT48SU1BR0VfVkVS
PjA5MTIwOUM8L0lNQUdFX1ZFUj48L1JFU1BPTlNFPg==
The unencoded body is:
Código:
<?xml version="1.0" encoding="utf-8"?><RESPONSE><REQ_ID>00000000000022111444</REQ_ID><RESULT_CD>900</RESULT_CD><MSG>Success</MSG><IMAGE_URL>http://aswnus.lge.com/servlet/DownloadImageCmd.idn</IMAGE_URL><UPDATE_CNT>1</UPDATE_CNT><IMAGE_SIZE>18155536</IMAGE_SIZE><IMAGE_DIR>/data4/aswnus/applications/GBPS/GBPS_ENV/upload/swnu/200912</IMAGE_DIR><IMAGE_NAME>20091210014239365.img</IMAGE_NAME><IMAGE_VER>091209C</IMAGE_VER></RESPONSE>
Notes:
1. The Content-Length (in the header) is calculated based on the encoded request length
2. The body is sent base64 encoded
3. The body does not have any line ends (but that is no error, just "it is so")

Based on this answer, the player asks for the firmware by issuing the following request (after the user agrees to download the new firmware), again from aswnus.lge.com, port 80:
HEADER:
Código:
POST /servlet/DownloadImageCmd.idn HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: aswnus.lge.com
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 369
BODY (unencoded):
Código:
<REQUEST>
<PRODUCT_ID>P007</PRODUCT_ID>
<REQ_ID>00000000000022111444</REQ_ID>
<MODEL_NM>MS400D</MODEL_NM>
<FW_TYPE>Main</FW_TYPE>
<IMAGE_DIR>/data4/aswnus/applications/GBPS/GBPS_ENV/upload/swnu/200912</IMAGE_DIR>
<IMAGE_NAME>20091210014239365.img</IMAGE_NAME>
</REQUEST>
Again, the body is base64 encoded (I send it in plain text for convenience) and the Content-Length is calculated based on that.

The answer from the server is:
Código:
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Mon, 28 Dec 2009 14:27:33 GMT
Content-length: 18155536
Content-type: application/octect-stream; charset=ISO-8859-1
Pragma: no-cache;
Expires: -1;
Content-Disposition: attachment;filename=20091210014239365.img;
Content-Transfer-Encoding: binary;
Connection: close

(now comes the firmware image in binary)
With best regards,

DavidO

DavidO
Invitado


Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty Re: SERVIDORES FIRMWARE

Mensaje  vic1972 el Lun Dic 28, 2009 10:40 pm

Thanks a lot friend.
Very useful information,

I understand the link is not a normal link, but a kind of XML URL (like soap) ....
Where you from? UK? Just would like to know where are LG selling this product, probably all over the world Smile

Thanks a lot, and please, keep visiting us. Smile
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 47
Localización : Malaga

Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty Re: SERVIDORES FIRMWARE

Mensaje  DavidO el Miér Dic 30, 2009 10:30 pm

I'm from Czech. I think once LG (or other) prepares a device for one EU country, it sells it in all of them.

By the way, the machine can be switched to our language too - just some of the strings in Czech are really funny; I wonder who dared to do it ... Rolling Eyes

DavidO

Mensajes : 2
Fecha de inscripción : 30/12/2009

Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty Re: SERVIDORES FIRMWARE

Mensaje  vic1972 el Miér Dic 30, 2009 10:57 pm

Welcome again David,
I think I found some where in the filesystem the different translations of different languagues,
probably to can even fix the translations Wink
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 47
Localización : Malaga

Volver arriba Ir abajo

SERVIDORES FIRMWARE Empty Re: SERVIDORES FIRMWARE

Mensaje  Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.