fix20152
@fix20152
javascript developer

Парсер под flash сайты

Все привет.
Вот такую себе задачу поставил - распарсить флеш сайт. Парсинг для меня не ново, ну вот флеш сайты, еще не когда не подавались, а так как только здесь дают дельные советы решил спросить.
Вообщем, что я знаю про парсинг флеш сайтов, это то что они тянуть информацию из xml файлов, ну как добраться до них не пойму. И того у меня такой вопрос - что нужно сделать, чтобы на странице найти нужный swf файл и потом найти от куда он тянет. Я понимаю что нужен сайт для примера, но мне не нужно готовый ответ, меня хотя бы подтолкнуть в нужною сторону, может кто знает где можно посмотреть, почитать и т.д.
  • Вопрос задан
  • 4098 просмотров
Пригласить эксперта
Ответы на вопрос 4
Снифить сеть. Если флеш тянет данные с сервера, перехватить откуда тянет.
Ответ написан
Комментировать
fix20152
@fix20152 Автор вопроса
javascript developer
Я так и пробую, не знаю может не так делаю. Я через firebug смотрю на сеть, вижу так куча swf файлов, а xml не одного. Может еще какие то инструменты для того чтобы слушать сеть.
Ответ написан
fix20152
@fix20152 Автор вопроса
javascript developer
Попробовал снифить трафик(wireshark), разобрался какие пакеты приходят и уходят, но тут проблема, пакеты приходят по TCP протоколу, и я не могу разобраться что они означают. Кто знает как эти пакеты понимать???
63303 6259.531873000 5.226.180.15 192.168.1.2 TCP 242 843 > kdm [PSH, ACK] Seq=213915 Ack=142 Win=14600 Len=188
Frame 63303: 242 bytes on wire (1936 bits), 242 bytes captured (1936 bits) on interface 0
eth

63304 6259.673966000 192.168.1.2 5.226.180.15 TCP 54 kdm > 843 [ACK] Seq=142 Ack=214103 Win=16771 Len=0
Frame 63304: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
frame

И такие пакеты повторяются каждые пару секунд.
Кто что подскажет???
Ответ написан
Комментировать
fix20152
@fix20152 Автор вопроса
javascript developer
Вот скопировал follow TCP stream array
char peer0_0[] = {
0x00, 0x00, 0x00, 0x38, 0x15, 0x00, 0x49, 0x6e,
0x50, 0x6c, 0x61, 0x79, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x43, 0x4c, 0x5f, 0x31, 0x38, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x4c, 0x32, 0x38, 0x36, 0x38,
0x39, 0x32, 0x33, 0x32, 0x41, 0x5f, 0x31, 0x5f,
0x39, 0x01, 0x55, 0x7c, 0x54, 0x53, 0x3d, 0x34,
0x37, 0x3b, 0x54, 0x44, 0x3d, 0x30, 0x3b, 0x7c };
char peer0_1[] = {
0x00, 0x00, 0x00, 0x52, 0x15, 0x00, 0x49, 0x6e,
0x50, 0x6c, 0x61, 0x79, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x43, 0x4c, 0x5f, 0x31, 0x35, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x4c, 0x32, 0x38, 0x38, 0x33,
0x33, 0x34, 0x39, 0x31, 0x41, 0x5f, 0x31, 0x5f,
0x39, 0x2f, 0x4c, 0x32, 0x38, 0x38, 0x33, 0x33,
0x36, 0x33, 0x34, 0x41, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x4c, 0x32, 0x38, 0x38, 0x33, 0x33, 0x39,
0x36, 0x38, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x01,
0x55, 0x7c, 0x4f, 0x44, 0x3d, 0x32, 0x2f, 0x37,
0x3b, 0x7c, 0x00, 0x00, 0x00, 0x52, 0x15, 0x00,
0x49, 0x6e, 0x50, 0x6c, 0x61, 0x79, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x43, 0x4c, 0x5f, 0x31, 0x35,
0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x4c, 0x32, 0x38,
0x38, 0x33, 0x33, 0x34, 0x39, 0x31, 0x41, 0x5f,
0x31, 0x5f, 0x39, 0x2f, 0x4c, 0x32, 0x38, 0x38,
0x33, 0x33, 0x36, 0x33, 0x34, 0x41, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x4c, 0x32, 0x38, 0x38, 0x33,
0x34, 0x30, 0x32, 0x31, 0x41, 0x5f, 0x31, 0x5f,
0x39, 0x01, 0x55, 0x7c, 0x4f, 0x44, 0x3d, 0x35,
0x2f, 0x32, 0x3b, 0x7c };
char peer0_2[] = {
0x00, 0x00, 0x00, 0x52, 0x15, 0x00, 0x49, 0x6e,
0x50, 0x6c, 0x61, 0x79, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x43, 0x4c, 0x5f, 0x31, 0x5f, 0x31, 0x5f,
0x39, 0x2f, 0x4c, 0x32, 0x38, 0x37, 0x30, 0x30,
0x34, 0x36, 0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x4c, 0x32, 0x38, 0x38, 0x38, 0x32, 0x35,
0x32, 0x34, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f,
0x4c, 0x32, 0x38, 0x38, 0x38, 0x32, 0x35, 0x32,
0x35, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55,
0x7c, 0x4f, 0x44, 0x3d, 0x31, 0x36, 0x2f, 0x31,
0x3b, 0x7c, 0x00, 0x00, 0x00, 0x3c, 0x15, 0x00,
0x49, 0x6e, 0x50, 0x6c, 0x61, 0x79, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x43, 0x4c, 0x5f, 0x31, 0x38,
0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x4c, 0x32, 0x38,
0x36, 0x36, 0x39, 0x35, 0x32, 0x34, 0x41, 0x5f,
0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c, 0x53, 0x53,
0x3d, 0x38, 0x37, 0x2d, 0x37, 0x37, 0x3b, 0x54,
0x53, 0x3d, 0x35, 0x32, 0x3b, 0x7c, 0x00, 0x00,
0x00, 0x4d, 0x15, 0x00, 0x36, 0x56, 0x32, 0x38,
0x37, 0x30, 0x30, 0x34, 0x36, 0x32, 0x41, 0x5f,
0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37, 0x30,
0x31, 0x39, 0x38, 0x38, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x32, 0x38, 0x37, 0x30, 0x31, 0x39, 0x38,
0x38, 0x43, 0x32, 0x2d, 0x31, 0x5f, 0x31, 0x5f,
0x39, 0x2f, 0x32, 0x38, 0x37, 0x30, 0x32, 0x34,
0x37, 0x36, 0x2d, 0x31, 0x5f, 0x31, 0x5f, 0x39,
0x01, 0x55, 0x7c, 0x4f, 0x44, 0x3d, 0x31, 0x2f,
0x31, 0x3b, 0x7c, 0x00, 0x00, 0x00, 0x4f, 0x15,
0x00, 0x36, 0x56, 0x32, 0x38, 0x37, 0x30, 0x30,
0x34, 0x36, 0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x32, 0x38, 0x37, 0x30, 0x31, 0x39, 0x38,
0x38, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38,
0x37, 0x30, 0x31, 0x39, 0x38, 0x38, 0x43, 0x32,
0x2d, 0x32, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32,
0x38, 0x37, 0x30, 0x32, 0x34, 0x37, 0x36, 0x2d,
0x32, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c,
0x4f, 0x44, 0x3d, 0x31, 0x37, 0x2f, 0x32, 0x30,
0x3b, 0x7c, 0x00, 0x00, 0x00, 0x4d, 0x15, 0x00,
0x36, 0x56, 0x32, 0x38, 0x37, 0x30, 0x30, 0x34,
0x36, 0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f,
0x32, 0x38, 0x37, 0x30, 0x31, 0x39, 0x38, 0x36,
0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37,
0x30, 0x31, 0x39, 0x38, 0x36, 0x43, 0x32, 0x2d,
0x31, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38,
0x38, 0x38, 0x32, 0x34, 0x35, 0x33, 0x2d, 0x31,
0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c, 0x4f,
0x44, 0x3d, 0x32, 0x2f, 0x31, 0x3b, 0x7c, 0x00,
0x00, 0x00, 0x4e, 0x15, 0x00, 0x36, 0x56, 0x32,
0x38, 0x37, 0x30, 0x30, 0x34, 0x36, 0x32, 0x41,
0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37,
0x30, 0x31, 0x39, 0x38, 0x36, 0x5f, 0x31, 0x5f,
0x39, 0x2f, 0x32, 0x38, 0x37, 0x30, 0x31, 0x39,
0x38, 0x36, 0x43, 0x32, 0x2d, 0x32, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x32, 0x38, 0x38, 0x38, 0x32,
0x34, 0x35, 0x33, 0x2d, 0x32, 0x5f, 0x31, 0x5f,
0x39, 0x01, 0x55, 0x7c, 0x4f, 0x44, 0x3d, 0x34,
0x2f, 0x31, 0x31, 0x3b, 0x7c, 0x00, 0x00, 0x00,
0x4e, 0x15, 0x00, 0x36, 0x56, 0x32, 0x38, 0x37,
0x30, 0x30, 0x34, 0x36, 0x32, 0x41, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37, 0x30, 0x31,
0x39, 0x38, 0x36, 0x5f, 0x31, 0x5f, 0x39, 0x2f,
0x32, 0x38, 0x37, 0x30, 0x31, 0x39, 0x38, 0x36,
0x43, 0x32, 0x2d, 0x31, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x32, 0x38, 0x38, 0x37, 0x36, 0x31, 0x32,
0x34, 0x2d, 0x31, 0x5f, 0x31, 0x5f, 0x39, 0x01,
0x55, 0x7c, 0x4f, 0x44, 0x3d, 0x32, 0x30, 0x2f,
0x31, 0x3b, 0x7c, 0x00, 0x00, 0x00, 0x4e, 0x15,
0x00, 0x36, 0x56, 0x32, 0x38, 0x37, 0x30, 0x30,
0x34, 0x36, 0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x32, 0x38, 0x37, 0x30, 0x31, 0x39, 0x38,
0x36, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38,
0x37, 0x30, 0x31, 0x39, 0x38, 0x36, 0x43, 0x32,
0x2d, 0x32, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32,
0x38, 0x38, 0x37, 0x36, 0x31, 0x32, 0x34, 0x2d,
0x32, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c,
0x4f, 0x44, 0x3d, 0x31, 0x2f, 0x36, 0x36, 0x3b,
0x7c, 0x00, 0x00, 0x00, 0x49, 0x15, 0x00, 0x36,
0x56, 0x32, 0x38, 0x37, 0x30, 0x30, 0x34, 0x36,
0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32,
0x38, 0x37, 0x30, 0x32, 0x31, 0x36, 0x38, 0x47,
0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37,
0x30, 0x32, 0x31, 0x36, 0x38, 0x5f, 0x31, 0x5f,
0x39, 0x2f, 0x32, 0x38, 0x38, 0x37, 0x35, 0x38,
0x37, 0x35, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55,
0x7c, 0x4f, 0x44, 0x3d, 0x31, 0x36, 0x2f, 0x31,
0x3b, 0x7c, 0x00, 0x00, 0x00, 0x47, 0x15, 0x00,
0x36, 0x56, 0x32, 0x38, 0x37, 0x30, 0x30, 0x34,
0x36, 0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f,
0x32, 0x38, 0x37, 0x30, 0x31, 0x39, 0x38, 0x33,
0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37,
0x30, 0x33, 0x31, 0x31, 0x36, 0x5f, 0x31, 0x5f,
0x39, 0x2f, 0x32, 0x38, 0x38, 0x37, 0x35, 0x39,
0x32, 0x31, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55,
0x7c, 0x4f, 0x44, 0x3d, 0x33, 0x2f, 0x31, 0x3b,
0x7c, 0x00, 0x00, 0x00, 0x47, 0x15, 0x00, 0x36,
0x56, 0x32, 0x38, 0x37, 0x30, 0x30, 0x34, 0x36,
0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32,
0x38, 0x37, 0x30, 0x31, 0x39, 0x38, 0x33, 0x5f,
0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37, 0x30,
0x33, 0x31, 0x31, 0x36, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x32, 0x38, 0x38, 0x37, 0x35, 0x39, 0x33,
0x36, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c,
0x4f, 0x44, 0x3d, 0x32, 0x2f, 0x39, 0x3b, 0x7c,
0x00, 0x00, 0x00, 0x49, 0x15, 0x00, 0x36, 0x56,
0x32, 0x38, 0x37, 0x30, 0x30, 0x34, 0x36, 0x32,
0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38,
0x37, 0x30, 0x31, 0x39, 0x38, 0x33, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37, 0x30, 0x32,
0x36, 0x32, 0x30, 0x5f, 0x31, 0x5f, 0x39, 0x2f,
0x32, 0x38, 0x38, 0x37, 0x35, 0x39, 0x32, 0x38,
0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c, 0x4f,
0x44, 0x3d, 0x31, 0x31, 0x2f, 0x31, 0x30, 0x3b,
0x7c, 0x00, 0x00, 0x00, 0x47, 0x15, 0x00, 0x36,
0x56, 0x32, 0x38, 0x37, 0x30, 0x30, 0x34, 0x36,
0x32, 0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32,
0x38, 0x37, 0x30, 0x31, 0x39, 0x38, 0x33, 0x5f,
0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37, 0x30,
0x32, 0x36, 0x32, 0x30, 0x5f, 0x31, 0x5f, 0x39,
0x2f, 0x32, 0x38, 0x38, 0x37, 0x35, 0x39, 0x34,
0x30, 0x5f, 0x31, 0x5f, 0x39, 0x01, 0x55, 0x7c,
0x4f, 0x44, 0x3d, 0x34, 0x2f, 0x36, 0x3b, 0x7c,
0x00, 0x00, 0x00, 0x40, 0x15, 0x00, 0x36, 0x56,
0x32, 0x38, 0x37, 0x30, 0x30, 0x34, 0x36, 0x32,
0x41, 0x5f, 0x31, 0x5f, 0x39, 0x2f, 0x32, 0x38,
0x37, 0x30, 0x31, 0x39, 0x38, 0x31, 0x5f, 0x31,
0x5f, 0x39, 0x2f, 0x32, 0x38, 0x37, 0x30, 0x32,
0x30, 0x30, 0x39, 0x5f, 0x31, 0x5f, 0x39, 0x2f,
0x32, 0x38, 0x37, 0x30, 0x35, 0x39, 0x37, 0x32 };
char peer0_3[] = {
0x5f, 0x31, 0x5f, 0x39, 0x01, 0x44, 0x7c, 0x7c };
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы