Unknown compression method - json

Can someone explain me, what is that compression method used?
I tried to reverse engeneer old application. It using tcp connection and send messages using json.
All data was the plain json, but that data is json value "pb_rsp" was binary and i cant uncompress that.
120113837000265, Xanthus, EliteDog, flag30, 574949063200274 - thats a plain data. Around them some unknown separators.
I think thats encoded json, but cant detect method, help please
�
9181129d4be64c36ad42401c8227226f��
"Z
120113837000265Xanthus *8
84860c8bfafb48b1b6ef8b595fcf6246EEDEliteDog"flag30�(��0#H����0P�����0X�����0`j�
574949063200274Z
120113837000265Xanthus *8
84860c8bfafb48b1b6ef8b595fcf6246EEDEliteDog"flag30� �����0(�����02�(0#ZJ
107107ddR
or hex
1A D5 02 0A 0F 35 37 35 30 33 30 39 37 36 39 30 30 32 37 34 10 3F 1A 58 0A 0F 31 36 37 38 34 37 30 37 35 30 30 30 32 37 34 12 05 41 6B 61 72 64 20 09 2A 38 0A 20 38 34 38 36 30 63 38 62 66 61 66 62 34 38 62 31 62 36 65 66 38 62 35 39 35 66 63 66 36 32 34 36 12 03 45 45 44 1A 08 45 6C 69 74 65 44 6F 67 22 05 66 6C 61 67 33 30 EB A7 12 2A 39 0A 1C 77 6F 72 6C 64 52 6F 62 6F 74 2D 31 36 37 31 34 37 32 38 35 30 31 34 38 2D 33 33 39 12 0A 41 6E 6F 6E 79 6D 6F 75 73 31 1A 0D 70 69 63 5F 31 32 5F 5A 68 75 6A 75 65 38 97 91 A4 EF D2 30 40 CF C5 C4 EF D2 30 48 01 50 9B E1 1C 5A 27 08 98 11 28 01 30 0E 40 50 4A 0C 0A 06 31 30 37 30 30 38 10 5A 18 5A 4A 0C 0A 06 31 30 37 30 30 39 10 0A 18 0A 52 00 5A 19 08 E0 12 28 02 30 0E 40 50 4A 0C 0A 06 31 30 37 30 30 38 10 64 18 64 52 00 5A 19 08 EB 12 28 05 30 0E 40 64 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 5A 19 08 E1 12 28 04 30 0E 40 64 4A 0C 0A 06 31 30 37 32 30 38 10 64 18 64 52 00 5A 19 08 99 11 28 03 30 0E 40 64 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 60 AA F9 0F 1A C7 02 0A 0F 35 37 35 30 33 31 30 32 38 30 30 30 32 37 34 10 3F 1A 58 0A 0F 31 36 37 38 34 37 30 37 35 30 30 30 32 37 34 12 05 41 6B 61 72 64 20 09 2A 38 0A 20 38 34 38 36 30 63 38 62 66 61 66 62 34 38 62 31 62 36 65 66 38 62 35 39 35 66 63 66 36 32 34 36 12 03 45 45 44 1A 08 45 6C 69 74 65 44 6F 67 22 05 66 6C 61 67 33 30 EB A7 12 2A 39 0A 1C 77 6F 72 6C 64 52 6F 62 6F 74 2D 31 36 37 31 34 37 32 38 35 30 31 34 38 2D 33 33 39 12 0A 41 6E 6F 6E 79 6D 6F 75 73 31 1A 0D 70 69 63 5F 31 32 5F 5A 68 75 6A 75 65 38 A1 A6 A4 EF D2 30 40 D9 DA C4 EF D2 30 48 01 50 9B E1 1C 5A 19 08 B4 10 28 01 30 0E 40 46 4A 0C 0A 06 31 30 37 30 30 38 10 64 18 64 52 00 5A 19 08 BF 10 28 02 30 0D 40 5F 4A 0C 0A 06 31 30 37 30 30 38 10 64 18 64 52 00 5A 19 08 B5 10 28 05 30 0E 40 5F 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 5A 19 08 BE 10 28 04 30 0E 40 5F 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 5A 19 08 C1 10 28 03 30 0E 40 5F 4A 0C 0A 06 31 30 37 32 30 38 10 64 18 64 52 00 60 AA F9 0F 1A C7 02 0A 0F 35 37 35 30 33 31 31 35 34 37 30 30 32 37 34 10 3F 1A 58 0A 0F 31 36 37 38 34 37 30 37 35 30 30 30 32 37 34 12 05 41 6B 61 72 64 20 09 2A 38 0A 20 38 34 38 36 30 63 38 62 66 61 66 62 34 38 62 31 62 36 65 66 38 62 35 39 35 66 63 66 36 32 34 36 12 03 45 45 44 1A 08 45 6C 69 74 65 44 6F 67 22 05 66 6C 61 67 33 30 EB A7 12 2A 39 0A 1C 77 6F 72 6C 64 52 6F 62 6F 74 2D 31 36 37 31 34 37 32 38 35 30 31 34 38 2D 33 33 39 12 0A 41 6E 6F 6E 79 6D 6F 75 73 31 1A 0D 70 69 63 5F 31 32 5F 5A 68 75 6A 75 65 38 E3 B6 A4 EF D2 30 40 9B EB C4 EF D2 30 48 01 50 9B E1 1C 5A 19 08 FD 11 28 03 30 0E 40 46 4A 0C 0A 06 31 30 37 32 30 38 10 64 18 64 52 00 5A 19 08 FC 11 28 01 30 0E 40 46 4A 0C 0A 06 31 30 37 30 30 38 10 64 18 64 52 00 5A 19 08 86 12 28 04 30 0D 40 5A 4A 0C 0A 06 31 30 37 32 30 38 10 64 18 64 52 00 5A 19 08 FE 11 28 05 30 0E 40 46 4A 0C 0A 06 31 30 37 32 30 38 10 64 18 64 52 00 5A 19 08 81 12 28 02 30 0E 40 46 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 60 AA F9 0F 1A D5 02 0A 0F 35 37 35 30 33 31 32 30 34 34 30 30 32 37 34 10 3F 1A 58 0A 0F 31 36 37 38 34 37 30 37 35 30 30 30 32 37 34 12 05 41 6B 61 72 64 20 09 2A 38 0A 20 38 34 38 36 30 63 38 62 66 61 66 62 34 38 62 31 62 36 65 66 38 62 35 39 35 66 63 66 36 32 34 36 12 03 45 45 44 1A 08 45 6C 69 74 65 44 6F 67 22 05 66 6C 61 67 33 30 EB A7 12 2A 39 0A 1C 77 6F 72 6C 64 52 6F 62 6F 74 2D 31 36 37 31 34 37 32 38 35 30 31 34 38 2D 33 33 39 12 0A 41 6E 6F 6E 79 6D 6F 75 73 31 1A 0D 70 69 63 5F 31 32 5F 5A 68 75 6A 75 65 38 86 C6 A4 EF D2 30 40 BE FA C4 EF D2 30 48 01 50 9B E1 1C 5A 27 08 A2 11 28 01 30 0E 40 3C 4A 0C 0A 06 31 30 37 30 30 38 10 63 18 63 4A 0C 0A 06 31 30 37 30 30 39 10 01 18 01 52 00 5A 19 08 E4 12 28 02 30 0E 40 41 4A 0C 0A 06 31 30 37 30 30 38 10 64 18 64 52 00 5A 19 08 E2 12 28 05 30 0E 40 46 4A 0C 0A 06 31 30 37 32 30 38 10 64 18 64 52 00 5A 19 08 E5 12 28 04 30 0E 40 46 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 5A 19 08 EC 12 28 03 30 0E 40 55 4A 0C 0A 06 31 30 37 31 30 38 10 64 18 64 52 00 60 AA F9 0F
or base64
Ev8HCiAwYjk5MGU1NzIwNzU0ZTNlODhlYTc2MDc3YmViNWNmYxji2AsicAoPMTQ1MTk2NDk1MDAwMjk0Eghzb29uMTAwNBoVcGljXzEwX0tlZXJtYW5fTElOU0hJKjgKIDg0ODYwYzhiZmFmYjQ4YjFiNmVmOGI1OTVmY2Y2MjQ2EgNFRUQaCEVsaXRlRG9nIgVmbGFnMzDrpxIohpEMMA9ABUjLneju0jBQm5GO79IwWIvtjO/SMGABapwCCg81NzQ5OTUyNTY5MDAyNzQScAoPMTQ1MTk2NDk1MDAwMjk0Eghzb29uMTAwNBoVcGljXzEwX0tlZXJtYW5fTElOU0hJKjgKIDg0ODYwYzhiZmFmYjQ4YjFiNmVmOGI1OTVmY2Y2MjQ2EgNFRUQaCEVsaXRlRG9nIgVmbGFnMzDrpxIgk+2M79IwKJuRju/SMDIbCOwSKAQwDEBfSgwKBjEwNzEwNxBkGGRSAggBMhsItRAoAzAMQF9KDAoGMTA3MTA3EGQYZFICCAEyGQi0ECgBMAlARkoMCgYxMDcwMDcQZBhkUgAyGQi4ECgCMA5AVUoMCgYxMDcyMDcQZBhkUgAyGQi2ECgFMA5AWkoMCgYxMDcyMDcQZBhkUgBqgAIKDzU3NDk5NjA5MTQwMDI3NBJYCg8xNjk1ODE1MjIwMDAyNjUSBUt3b24yIAwqOAogODQ4NjBjOGJmYWZiNDhiMWI2ZWY4YjU5NWZjZjYyNDYSA0VFRBoIRWxpdGVEb2ciBWZsYWczMOunEiCYi+ru0jAo0KLq7tIwMhkIuBAoAjAOQDJKDAoGMTA3MjA3EGQYZFIAMhkIgBIoATALQDxKDAoGMTA3MDA3EGQYZFIAMhkI/xEoBTAOQEZKDAoGMTA3MjA3EGQYZFIAMhkIthAoBDAOQEZKDAoGMTA3MjA3EGQYZFIAMhkIgRIoAzAOQEZKDAoGMTA3MTA3EGQYZFIAaoUCCg81NzUwMDUzNTMxMDAyNzQSWwoOMTk4NDcxMjQwMDAyNzESCUFtYW5kYTI2NSAGKjgKIDg0ODYwYzhiZmFmYjQ4YjFiNmVmOGI1OTVmY2Y2MjQ2EgNFRUQaCEVsaXRlRG9nIgVmbGFnMzDrpxIgo5367tIwKLPc/+7SMDIZCOQSKAEwDkBBSgwKBjEwNzAwNxBkGGRSADIZCOASKAIwCkBBSgwKBjEwNzAwNxBkGGRSADIZCJoRKAMwCUAFSgwKBjEwNzIwNxBkGGRSADIbCOESKAQwDUBkSgwKBjEwNzIwNxBkGGRSAggCMhkI6xIoBTAMQGRKDAoGMTA3MTA3EGQYZFIAggEGOTAwMDM3sAEBugEPNTc0OTk1MjU2OTAwMjc0
Thanks
Thats not a gzip or zip

Related

Convert captured packet data to html in C

I have captured a packet using libpcap and have the packet data in a char array. When I print it in hex and ascii the output is
47 45 54 20 2f 62 72 6f 77 73 65 2f 64 69 63 74 GET /browse/dict
69 6f 6e 61 72 79 3f 73 3d 74 20 48 54 54 50 2f ionary?s=t HTTP/
31 2e 31 0d 0a 48 6f 73 74 3a 20 77 77 77 2e 64 1.1..Host: www.d
69 63 74 69 6f 6e 61 72 79 2e 63 6f 6d 0d 0a 55 ictionary.com..U
73 65 72 2d 41 67 65 6e 74 3a 20 4d 6f 7a 69 6c ser-Agent: Mozil
.....
......
41 31 25 32 43 31 30 31 25 33 41 31 25 32 43 32 A1%2C101%3A1%2C2
25 33 41 31 25 32 43 31 30 32 25 33 41 31 25 32 %3A1%2C102%3A1%2
43 31 30 33 25 33 41 31 25 32 43 33 25 33 41 31 C103%3A1%2C3%3A1
............
.....
Now I want to convert above http request/response from captured packet to html tags. How can I do that?

How to convert BLOB object to PL Json

i am using below code to load image file from server to BLOB Object
but after convert it to clob and put it into json it reformatted.
how can i fix this
FUNCTION get_person_image(v_file_name varchar2) RETURN json AS
tmp_blob blob default EMPTY_BLOB();
tmp_bfile bfile := null;
dest_offset integer := 1;
src_offset integer := 1;
v_ret_json json := json();
BEGIN
tmp_bfile := BFILENAME('PICTURES', v_file_name);
DBMS_LOB.OPEN(tmp_bfile, DBMS_LOB.FILE_READONLY);
DBMS_LOB.CREATETEMPORARY(tmp_blob, TRUE);
DBMS_LOB.LOADBLOBFROMFILE(tmp_blob,
tmp_bfile,
DBMS_LOB.LOBMAXSIZE,
dest_offset,
src_offset);
DBMS_LOB.CLOSE(tmp_bfile);
v_ret_json.put('name', v_file_name);
v_ret_json.put('image', blob_to_clob(tmp_blob));
RETURN v_ret_json;
END get_person_image;
FUNCTION blob_to_clob(blob_in IN BLOB) RETURN CLOB AS
v_clob CLOB;
v_varchar VARCHAR2(32767);
v_start PLS_INTEGER := 1;
v_buffer PLS_INTEGER := 32767;
begin
DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
FOR i IN 1 .. CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer) LOOP
v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in,
v_buffer,
v_start));
DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
v_start := v_start + v_buffer;
END LOOP;
RETURN v_clob;
END blob_to_clob;
Once the get_person_image read image file the CLOB Contains data like below HEX:
00 01 00 00 FF DB 00 84 00 09 06 07 13 13 12 15
13 12 13 15 16 15 15 18 1D 17 17 16 18 17 17 16
18 18 17 18 1A 18 18 17 18 17 18 18 1D 28 20 1A
1A 25 1B 18 17 22 31 21 25 29 2B 2E 2E 2E 17 20
33 38 33 2C 37 28 2D 2E 2B 01 0A 0A 0A 0E 0D 0E
1B 10 10 1B 2D 25 20 25 2D 2D 2D 2D 2D 2D 2D 2D
2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2F 2D 2D 2D 2D 2D
2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D
2D 2D 2D 2D 2D 2D 2D 2D 2D 2D FF C0 00 11 08 01
0F 00 BA 03 01 22 00 02 11 01 03 11 01 FF C4 00
1C 00 00 01 05 01 01 01 00 00 00 00 00 00 00 00
00 00 05 00 03 04 06 07 02 01 08 FF C4 00 43 10
00 01 02 03 05 05 06 03 07 02 05 02 07 00 00 00
01 02 11 00 03 21 04 05 12 31 41 06 51 61 71 91
22 32 81 A1 B1 F0 13 C1 D1 14 23 42 52 62 82 E1
07 72 15 92 A2 B2 F1 33 C2 16 24 43 63 74 B3 F3
FF C4 00 18 01 00 03 01 01 00 00 00 00 00 00 00
00 00 00 00 00 00 01 02 03 04 FF C4 00 21 11 01
01 00 03 01 01 01 01 01 00 03 01 00 00 00 00 00
01 02 11 21 31 41 03 12 22 42 51 81 32 FF DA 00
0C 03 01 00 02 11 03 11 00 3F 00 DB A3 89 B3 00
04 9A 01 1E A9 4D 19 8E DF 6D 62 D4 A3 67 B3 BD
28 A5 0D FB 9F D7 FE 61 5B A3 93 69 3B 5F B7 69
41 32 E4 76 D4 EC 5B 2E 35 1E 9C 6B BA 33 F9 B6
D5 AD 41 53 89 5A F4 4E 89 F9 0F 7C E2 39 93 84
BB E2 51 A5 32 F3 88 76 89 85 CA 52 5B F3 1E 3A
87 FA C4 5B B6 D2 69 2E D7 7B 2A A1 FA 51 23 A6
71 09 53 54 4E A4 EF 67 3E 03 21 E3 0A 4A 10 1A
98 BA 81 EB E6 63 A5 CF 03 26 E6 3D E5 EF 93 93
45 6E CC AA C4 09 FB C5 37 E9 15 5F 5C 93 E0 22
44 A4 24 1F BB 96 90 77 9E D2 FC E2 32 2D 6F 90
61 F9 8D 49 E5 BA 1C 33 30 A5 CD 3A 97 30 C9 39
04 20 E2 99 32 BB 80 0F D6 24 D9 2F 79 45 60 09
20 F1 38 49 26 9A AA 83 C6 2B 33 A6 13 5C 87 31
EB 1D D8 E8 71 00 4B 74 FE 7C 61 06 AB 79 4A 49
97 2F EE A5 8C 75 0A 49 ED 00 CC A0 A3 91 0C 68
74 2D 1D DD 56 F9 72 08 29 99 50 18 B1 A1 6A 54
0A 13 C7 D2 33 4B 55 F4 65 E6 5D 67 47 A2 79 EF
3E F9 C0 5D ED 31 59 13 E8 3A 6B 07 A3 91 F4 75
DB 7B 95 80 42 82 81 19 1A 1C B4 3A C1 8B 35 A9
2B 1D 93 96 63 50 63 06 D9 CB DE 6C 89 92 E6 29
01 68 52 80 51 72 0A 08 EC F6 AA 03 38 53 BB D2
B5 70 0D D6 6D F2 A9 33 5E 59 55 49 39 12 4A 58
66 06 7A D2 1E F4 5F CE DA 58 8F 60 3D C5 7F 4A
B4 20 29 2A 0F AB 1D 60 BB C5 22 CD 3D 85 0A 14
04 50 A1 42 80 14 28 50 A0 05 0A 14 28 02 AF B6
D7 DF D9 E4 16 3D B5 F6 53 F3 57 24 FA B4 63 CA
99 53 9B E6 B5 1F 24 8E 3E F9 17 DB 5B EC CF
.....
and when i open as text in PLSQL it is something like this :
���JFIF
after v_ret_json.put('image', blob_to_clob(tmp_blob)); it reformatted as :
Hex View :
7B 0D 0A 20 20 22 6E 61 6D 65 22 20 3A 20 22 34
31 32 2E 70 6E 67 22 2C 0D 0A 20 20 22 69 6D 61
67 65 22 20 3A 20 22 5C 75 46 46 46 44 5C 75 46
46 46 44 5C 75 46 46 46 44 4A 46 49 46 5C 75 30
30 30 30 5C 75 30 30 30 31 5C 75 30 30 30 31 5C
75 30 30 30 30 5C 75 30 30 30 30 5C 75 30 30 30
31 5C 75 30 30 30 30 5C 75 30 30 30 31 5C 75 30
30 30 30 5C 75 30 30 30 30 5C 75 46 46 46 44 5C
75 46 46 46 44 5C 75 46 46 46 44 5C 75 30 30 30
30 5C 74 5C 75 30 30 30 36 5C 75 30 30 30 37 5C
75 30 30 31 33 5C 75 30 30 31 33 5C 75 30 30 31
32 5C 75 30 30 31 35 5C 75 30 30 31 33 5C 75 30
30 31 32 5C 75 30 30 31 33 5C 75 30 30 31 35 5C
75 30 30 31 36 5C 75 30 30 31 35 5C 75 30 30 31
35 5C 75 30 30 31 38 5C 75 30 30 31 44 5C 75 30
30 31 37 5C 75 30 30 31 37 5C 75 30 30 31 36 5C
75 30 30 31 38 5C 75 30 30 31 37 5C 75 30 30 31
37 5C 75 30 30 31 36 5C 75 30 30 31 38 5C 75 30
30 31 38 5C 75 30 30 31 37 5C 75 30 30 31 38 5C
75 30 30 31 41 5C 75 30 30 31 38 5C 75 30 30 31
38 5C 75 30 30 31 37 5C 75 30 30 31 38 5C 75 30
30 31 37 5C 75 30 30 31 38 5C 75 30 30 31 38 5C
75 30 30 31 44 28 20 5C 75 30 30 31 41 5C 75 30
30 31 41 25 5C 75 30 30 31 42 5C 75 30 30 31 38
5C 75 30 30 31 37 5C 22 31 21 25 29 2B 2E 2E 2E
5C 75 30 30 31 37 20 33 38 33 2C 37 28 2D 2E 2B
5C 75 30 30 30 31 5C 6E 5C 6E 5C 6E 5C 75 30 30
30 45 5C 72 5C 75 30 30 30 45 5C 75 30 30 31 42
5C 75 30 30 31 30 5C 75 30 30 31 30 5C 75 30 30
31 42 2D 25 20 25 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D
2D 2D 2D 2D 2D 2D 2D 2D 2F 2D 2D 2D 2D 2D 2D 2D
2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D
2D 2D 2D 2D 2D 2D 2D 2D 5C 75 46 46 46 44 5C 75
46 46 46 44 5C 75 30 30 30 30 5C 75 30 30 31 31
5C 62 5C 75 30 30 30 31 5C 75 30 30 30 46 5C 75
30 30 30 30 5C 75 46 46 46 44 5C 75 30 30 30 33
5C 75 30 30 30 31 5C 22 5C 75 30 30 30 30 5C 75
30 30 30 32 5C 75 30 30 31 31 5C 75 30 30 30 31
5C 75 30 30 30 33 5C 75 30 30 31 31 5C 75 30 30
30 31 5C 75 46 46 46 44 5C 75 46 46 46 44 5C 75
30 30 31 43 5C 75 30 30 30 30 5C 75 30 30 30 30
5C 75 30 30 30 31 5C 75 30 30 30 35 5C 75 30 30
30 31 5C 75 30 30 30 31 5C 75 30 30 30 31 5C 75
30 30 30 30 5C 75 30 30 30 30 5C 75 30 30 30 30
5C 75 30 30 30 30 5C 75 30 30 30 30 5C 75 30 30
30 30 5C 75 30 30 30 30 5C 75 30 30 30 30 5C 75
30 30 30 30 5C 75 30 30 30 30 5C 75 30 30 30 35
5C 75 30 30 30 30 5C 75 30 30 30 33 5C 75 30 30
Text View :
"name" : "412.png",
"image" : "\uFFFD\uFFFD\uFFFDJFIF\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0001\u0000\u0000\uFFFD\uFFFD\uFFFD\u0000\t\u0006\u0007\u0013\u0013\u0012\u0015\u0013\u0012\u0013\u0015\u0016\u0015\u0015\u0018\u001D\u0017\u0017\u0016\u0018\u0017\u0017\u0016\u0018\u0018\u0017\u0018\u001A\u0018\u0018\u0017\u0018\u0017\u0018\u0018\u001D( \u001A\u001A%\u001B\u0018\u0017\"1!%)+...\u0017 383,7(-.+\u0001\n\n\n\u000E\r\u000E\u001B\u0010\u0010\u001B-% %------------------/-------------------------------\uFFFD\uFFFD\u0000\u0011\b\u0001\u000F\u0000\uFFFD\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001\uFFFD\uFFFD\u001C\u0000\u0000\u0001\u0005\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0005\u0000\u0003\u0004\u0006\u0007\u0002\u0001\b\uFFFD\uFFFDC\u0010\u0000\u0001\u0002\u0003\u0005\u0005\u0006\u0003\u0007\u0002\u0005\u0002\u0007\u0000\u0000\u0000\u0001\u0002\u0011\u0000\u0003!\u0004\u0005\u00121A\u0006Qaq\uFFFD\"2\uFFFD\uFFFD\uFFFD\uFFFD\u0014#BRb\uFFFD\uFFFD\u0015\uFFFD\uFFFD\uFFFD\uFFFD$Cct\uFFFD\uFFFD\u0018\u0001\u0000\u0003\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\uFFFD\uFFFD!\u0011\u0001\u0001\u0000\u0003\u0001\u0001\u0001\u0001\u0001\u0000\u0003\u0001\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0011!1A\u0003\u0012\"BQ\uFFFD2\uFFFD\uFFFD\f\u0003\u0001\u0000\u0002\u0011\u0003\u0011\u0000?\u0000\u06E3\uFFFD\uFFFD\u0000\u0004\uFFFD\u0001\u001E\uFFFDM\u0019\uFFFD\uFFFDb\u0523g\uFFFD\uFFFD(\uFFFD\r\uFFFD\uFFFD\uFFFDa[\uFFFD\uFFFDi;_\uFFFDiA2\uFFFD\uFFFD5\u001E\uFFFDk\uFFFD3\uFFFD\uFFFD\u056DAS\uFFFDZ\uFFFD\u000F|\uFFFD\uFFFD\uFFFD\uFFFD2\uFFFD\uFFFD\uFFFD[\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD.\uFFFD*\uFFFD\uFFFDQ#\uFFFDq\tSTN\uFFFD\uFFFD\u0003!\uFFFD\u0010\u001A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD&\uFFFD\uF4D3En\u032A

How to filter regex in SQL developer

I have receive some kind of below regrex message with random set as below pattern. I want to filter this message by insert filter table in SQL developer how to make the pattern to filter out. Query to insert the filter is below.
37 35 32 41 44 44 37 36 32 46 34 34 34 45 45 34 42 31 31 34 31 41 36 43 39
44 37 41 35 45 35 39 20 44 61 74 65 54 69 6D 65 20 3A 20 53 75 6E 20 41 75 67 20 32 30
20 32 30 3A 30 37 3A 33 39 20 41 53 54 20 32 30 31 37 2C 20 65 72 72 6F 72 4D 65 73 73
61 67 65 20 3A 20 45 78 63 65 70 74 69 6F 6E 20 67 65 6E 65 72 61 74 65 64 20 6F 6E 20
D9 A2 D9 A0 D9 A1 D9 A7 2D D9 A0 D9 A8 2D D9 A2 D9 A0 20 D9 A2 D9 A0 3A D9 A0 D9 A7 3A D9
A5 D9 A0 0A 0A 45 78 63 65 70 74 69 6F 6E 3A 20 6A 61 76 61 2E 6C
insert
into FILTER_IGNR (
ID_ALARM_FILTER_IGNR,
FILTER_PATTERN,
CREATED_DATE_TIME,
UPDATED_DATE_TIME,
IS_ACTIVE)
select MAX(ID_ALARM_FILTER_IGNR)+1,
'.*ERROR.*', -- Check and change in this one
sysdate,
sysdate,
1
from FILTER_IGNR

Change default Sorting by Adding a Simple Collation to an 8-Bit Character Set

Posted previously the question with zero responses, so I am replacing it with further clarification and details from my research results based on this MySQL manual entry.
In the past, I've worked with alternate collations that allowed us to specify alternate default sorting. Mysql allows for this down to the column level, but I don't understand something to get it working.
Our customers use a standard set of one character codes in almost all references to any master table, and presenting these codes in the order they need is always very cumbersome and difficult using functions and routines in PHP.
SELECT * FROM myTable order by my_code
NORMAL, default sorting would return this: DESIRED, default sorting should return this:
my_code | Description my_code | Description
1 | Grade 1 P | Pre-Kindergarten
2 | Grade 2 K | Kindergarten
3 | Grade 3 1 | Grade 1
A | Adult 2 | Grade 2
K | Kindergarten 3 | Grade 3
P | Pre-Kindergarten A | Adult
The steps to accomplish this are described in the Docs at 10.4.3. , and examples are shown in the Docs at 10.1.78.
In the steps, it shows this table, and how the weights are specified. This, I think is where I get lost. I've altered the weights as shown below, putting "P" (x50P) and "K" (x4B) before "0" (x30), but all it accomplishes is changing the sorting so that "1" (x31) appears between "P" and "K", all other sorting appears to remain unchanged.
<collation name="latin1_test_ci">
<map>
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F
50 4B 30 31 32 33 34 35 36 37 38 39 41 43 55 3A
3B 3C 3D 3E 3F 40 42 44 45 46 47 48 49 4A 4C 4D
4E 4F 51 52 53 54 56 57 58 59 5A 5B 5C 5D 5E 5F
60 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
50 51 52 53 54 55 56 57 58 59 5A 7B 7C 7D 7E 7F
80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F
90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF
B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF
41 41 41 41 5C 5B 5C 43 45 45 45 45 49 49 49 49
44 4E 4F 4F 4F 4F 5D D7 D8 55 55 55 59 59 DE DF
41 41 41 41 5C 5B 5C 43 45 45 45 45 49 49 49 49
44 4E 4F 4F 4F 4F 5D F7 D8 55 55 55 59 59 DE FF
</map>
</collation>
Sort results WITH the Alternate Collation above
Hex |my_code | Description
32 | 2 |Grade 2
33 | 3 |Grade 3
41 | A |Adult Ed
4B | K |Kindergarten
31 | 1 |Grade 1
50 | P |Pre-K
I realize you said you wanted to change the collation, but this requires no ORDER BY and is worth considering. You can convert these to an ENUM type and they will sort in the order they appear in the ENUM.
CREATE TABLE myTable (
my_code ENUM('P', 'K', '1', '2', '3', 'A'),
...
)
Using numbers in ENUMs is strongly discouraged, so you'll have to be careful. The main issue is that numbers can be treated as an index or a value in the ENUM. So it's behavior depends on it's type, leading to unexpected results.
This table are weights table. If you want that P i less than K, then put 00 weight to P and 01 weight to K. To put a weight you should assign a value in 'letter position': for P position 50. Sample to put P as first order letter:
<collation name="latin1_test_ci">
<map>
FF FF FF FF FF FF FF 07 08 09 0A 0B 0C 0D 0E 0F
10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F
30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F
60 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
00 51 52 53 54 55 56 57 58 59 5A 7B 7C 7D 7E 7F <-- first weight
80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F
90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF
B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF
41 41 41 41 5B 5D 5B 43 45 45 45 45 49 49 49 49
44 4E 4F 4F 4F 4F 5C D7 5C 55 55 55 59 59 DE DF
41 41 41 41 5B 5D 5B 43 45 45 45 45 49 49 49 49
44 4E 4F 4F 4F 4F 5C F7 5C 55 55 55 59 59 DE FF
</map>
</collation>
Edit: Adding test and compete table.
The complete table for should be:
<collation name="latin1_test_ci">
<map>
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F
30 02 03 04 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
40 05 42 43 44 45 46 47 48 49 4A 01 4C 4D 4E 4F
00 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F
60 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
50 51 52 53 54 55 56 57 58 59 5A 7B 7C 7D 7E 7F
80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F
90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF
B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF
41 41 41 41 5B 5D 5B 43 45 45 45 45 49 49 49 49
44 4E 4F 4F 4F 4F 5C D7 5C 55 55 55 59 59 DE DF
41 41 41 41 5B 5D 5B 43 45 45 45 45 49 49 49 49
44 4E 4F 4F 4F 4F 5C F7 5C 55 55 55 59 59 DE FF
</map>
</collation>
* Testing: *
mysql> create table b (a varchar(1) collate latin1_test_ci );
mysql> insert into b values
-> ( 'P' ),
-> ('K'),
-> ('A'),
-> ('1'),
-> ('2'),
-> ('3');
mysql> SHOW COLLATION LIKE 'latin1_test_ci';
+----------------+---------+----+---------+----------+---------+
| Collation | Charset | Id | Default | Compiled | Sortlen |
+----------------+---------+----+---------+----------+---------+
| latin1_test_ci | latin1 | 56 | | | 0 |
+----------------+---------+----+---------+----------+---------+
1 row in set (0.00 sec)
mysql> select * from b order by a;
+------+
| a |
+------+
| P |
| K |
| 1 |
| 2 |
| 3 |
| A |
+------+
6 rows in set (0.00 sec)
I don't think you need a custom collation to accomplish your goals.
To order the result set:
ORDER BY FIELD(my_code, 'P','K','1','2','3','4','5','6',
'7','8','9','10','11','12','A')
To limit the result set:
WHERE my_code IN('K','1','2','3','4','5')
If you'll be writing this sort of functionality into a lot of queries, a helper function might be a good idea:
DELIMITER $$
CREATE FUNCTION `f_position`(in_char CHAR(1)) RETURNS INTEGER
BEGIN
RETURN FIELD(in_char, 'P','K','1','2','3','4','5','6',
'7','8','9','10','11','12','A');
END$$
DELIMITER ;
Just make sure that all possible codes are referenced in the function, and are placed in the order that you want.
With a helper function like that, you can write queries like so:
WHERE f_position(grade) BETWEEN f_position('K') AND f_position('5')
ORDER BY f_position(grade)
The only downside to using a helper function to limit result sets like that (as opposed to the WHERE grade IN(...)) is that the function call would prevent any indexes on the column "grade" from being used.

HTTP malformed packet exception

I'm developing a proxy in node.js. I have developed an addon which analyses packets and almost always changes the packets' length. Here is the code:
var http = require('http');
var eamorr=require('./Eamorr_addon/out/Release/Eamorr_addon');
http.createServer(function(request,response){
var proxy=http.createClient(80,request.headers['host']);
var proxy_request=proxy.request(request.method,request.url,request.headers);
proxy_request.addListener('response',function(proxy_response){
proxy_response.addListener('data',function(chunk){
var x=eamorr.analyse(chunk);
if(proxy_response.headers['content-length'] || proxy_response.headers['Content-Length']){
proxy_response.headers['content-length']=x.length;
}
response.writeHead(proxy_response.statusCode,proxy_response.headers);
response.write(x,'binary');
});
proxy_response.addListener('end',function(){
response.end();
});
});
request.addListener('data',function(chunk){
proxy_request.write(chunk,'binary');
});
request.addListener('end',function(){
proxy_request.end();
});
}).listen(10002);
The problem is, I keep getting malformed http packets on the receiving end. It works fine for packets with a defined content-length, but not for chunked responses.
Here is a dump from Wireshark which shows up as a malformed packet for some reason I can't get to the bottom of:
0000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK.
0010 0a 64 61 74 65 3a 20 4d 6f 6e 2c 20 32 37 20 46 .date: M on, 27 F
0020 65 62 20 32 30 31 32 20 30 38 3a 32 31 3a 33 38 eb 2012 08:21:38
0030 20 47 4d 54 0d 0a 65 78 70 69 72 65 73 3a 20 2d GMT..ex pires: -
0040 31 0d 0a 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 1..cache -control
0050 3a 20 70 72 69 76 61 74 65 2c 20 6d 61 78 2d 61 : privat e, max-a
0060 67 65 3d 30 0d 0a 63 6f 6e 74 65 6e 74 2d 74 79 ge=0..co ntent-ty
0070 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 pe: text /html; c
0080 68 61 72 73 65 74 3d 55 54 46 2d 38 0d 0a 73 65 harset=U TF-8..se
0090 72 76 65 72 3a 20 67 77 73 0d 0a 78 2d 78 73 73 rver: gw s..x-xss
00a0 2d 70 72 6f 74 65 63 74 69 6f 6e 3a 20 31 3b 20 -protect ion: 1;
00b0 6d 6f 64 65 3d 62 6c 6f 63 6b 0d 0a 78 2d 66 72 mode=blo ck..x-fr
00c0 61 6d 65 2d 6f 70 74 69 6f 6e 73 3a 20 53 41 4d ame-opti ons: SAM
00d0 45 4f 52 49 47 49 4e 0d 0a 74 72 61 6e 73 66 65 EORIGIN. .transfe
00e0 72 2d 65 6e 63 6f 64 69 6e 67 3a 20 63 68 75 6e r-encodi ng: chun
00f0 6b 65 64 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a ked..Con nection:
0100 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 0d 0a 34 keep-al ive....4
0110 39 65 0d 0a 0a fd 09 08 00 11 00 00 00 00 00 00 9e...... ........
0120 00 00 1a fd 09 3c 21 64 6f 63 74 79 70 65 20 68 .....<!d octype h
0130 74 6d 6c 3e 3c 68 74 6d 6c 20 69 74 65 6d 73 63 tml><htm l itemsc
0140 6f 70 65 20 69 74 65 6d 74 79 70 65 3d 22 68 74 ope item type="ht
0150 74 70 3a 2f 2f 73 63 68 65 6d 61 2e 6f 72 67 2f tp://sch ema.org/
0160 57 65 62 50 61 67 65 22 3e 3c 68 65 61 64 3e 3c WebPage" ><head><
0170 6d 65 74 61 20 68 74 74 70 2d 65 71 75 69 76 3d meta htt p-equiv=
0180 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 22 20 63 "content -type" c
0190 6f 6e 74 65 6e 74 3d 22 74 65 78 74 2f 68 74 6d ontent=" text/htm
01a0 6c 3b 20 63 68 61 72 73 65 74 3d 55 54 46 2d 38 l; chars et=UTF-8
01b0 22 3e 3c 6d 65 74 61 20 69 74 65 6d 70 72 6f 70 "><meta itemprop
01c0 3d 22 69 6d 61 67 65 22 20 63 6f 6e 74 65 6e 74 ="image" content
01d0 3d 22 2f 69 6d 61 67 65 73 2f 67 6f 6f 67 6c 65 ="/image s/google
01e0 5f 66 61 76 69 63 6f 6e 5f 31 32 38 2e 70 6e 67 _favicon _128.png
01f0 22 3e 3c 74 69 74 6c 65 3e 47 6f 6f 67 6c 65 3c "><title >Google<
0200 2f 74 69 74 6c 65 3e 3c 73 63 72 69 70 74 3e 77 /title>< script>w
0210 69 6e 64 6f 77 2e 67 6f 6f 67 6c 65 3d 7b 6b 45 indow.go ogle={kE
0220 49 3a 22 45 6a 31 4c 54 5f 72 38 4e 64 43 32 68 I:"Ej1LT _r8NdC2h
0230 41 66 58 5f 4b 32 4c 44 67 22 2c 67 65 74 45 49 AfX_K2LD g",getEI
0240 3a 66 75 6e 63 74 69 6f 6e 28 61 29 7b 76 61 72 :functio n(a){var
0250 20 64 3b 77 68 69 6c 65 28 61 26 26 21 28 61 2e d;while (a&&!(a.
0260 67 65 74 41 74 74 72 69 62 75 74 65 26 26 28 64 getAttri bute&&(d
0270 3d 61 2e 67 65 74 41 74 74 72 69 62 75 74 65 28 =a.getAt tribute(
0280 22 65 69 64 22 29 29 29 29 61 3d 61 2e 70 61 72 "eid"))) )a=a.par
0290 65 6e 74 4e 6f 64 65 3b 72 65 74 75 72 6e 20 64 entNode; return d
02a0 7c 7c 67 6f 6f 67 6c 65 2e 6b 45 49 7d 2c 68 74 ||google .kEI},ht
02b0 74 70 73 3a 66 75 6e 63 74 69 6f 6e 28 29 7b 72 tps:func tion(){r
02c0 65 74 75 72 6e 20 77 69 6e 64 6f 77 2e 6c 6f 63 eturn wi ndow.loc
02d0 61 74 69 6f 6e 2e 70 72 6f 74 6f 63 6f 6c 3d 3d ation.pr otocol==
02e0 22 68 74 74 70 73 3a 22 7d 2c 6b 45 58 50 49 3a "https:" },kEXPI:
02f0 22 33 31 32 31 35 2c 33 33 35 35 31 2c 33 34 33 "31215,3 3551,343
0300 32 34 2c 33 34 39 30 34 2c 33 35 30 35 35 2c 33 24,34904 ,35055,3
0310 35 32 31 33 2c 33 36 36 30 34 2c 33 36 36 38 33 5213,366 04,36683
0320 2c 33 36 39 34 32 2c 33 37 30 31 37 2c 33 37 31 ,36942,3 7017,371
0330 30 32 22 2c 6b 43 53 49 3a 7b 65 3a 22 33 31 32 02",kCSI :{e:"312
0340 31 35 2c 33 33 35 35 31 2c 33 34 33 32 34 2c 33 15,33551 ,34324,3
0350 34 39 30 34 2c 33 35 30 35 35 2c 33 35 32 31 33 4904,350 55,35213
0360 2c 33 36 36 30 34 2c 33 36 36 38 33 2c 33 36 39 ,36604,3 6683,369
0370 34 32 2c 33 37 30 31 37 2c 33 37 31 30 32 22 2c 42,37017 ,37102",
0380 65 69 3a 22 45 6a 31 4c 54 5f 72 38 4e 64 43 32 ei:"Ej1L T_r8NdC2
0390 68 41 66 58 5f 4b 32 4c 44 67 22 7d 2c 61 75 74 hAfX_K2L Dg"},aut
03a0 68 75 73 65 72 3a 30 2c 0a 6d 6c 3a 66 75 6e 63 huser:0, .ml:func
03b0 74 69 6f 6e 28 29 7b 7d 2c 70 61 67 65 53 74 61 tion(){} ,pageSta
03c0 74 65 3a 22 23 22 2c 6b 48 4c 3a 22 65 6e 22 2c te:"#",k HL:"en",
03d0 74 69 6d 65 3a 66 75 6e 63 74 69 6f 6e 28 29 7b time:fun ction(){
03e0 72 65 74 75 72 6e 28 6e 65 77 20 44 61 74 65 29 return(n ew Date)
03f0 2e 67 65 74 54 69 6d 65 28 29 7d 2c 6c 6f 67 3a .getTime ()},log:
0400 66 75 6e 63 74 69 6f 6e 28 61 2c 64 2c 66 2c 68 function (a,d,f,h
0410 29 7b 76 61 72 20 65 3d 6e 65 77 20 49 6d 61 67 ){var e= new Imag
0420 65 2c 67 3d 67 6f 6f 67 6c 65 2c 6b 3d 67 2e 6c e,g=goog le,k=g.l
0430 63 2c 69 3d 67 2e 6c 69 2c 6d 3d 22 22 3b 65 2e c,i=g.li ,m="";e.
0440 6f 6e 65 72 72 6f 72 3d 28 65 2e 6f 6e 6c 6f 61 onerror= (e.onloa
0450 64 3d 28 65 2e 6f 6e 61 62 6f 72 74 3d 66 75 6e d=(e.ona bort=fun
0460 63 74 69 6f 6e 28 29 7b 64 65 6c 65 74 65 20 6b ction(){ delete k
0470 5b 69 5d 7d 29 29 3b 6b 5b 69 5d 3d 65 3b 69 66 [i]}));k [i]=e;if
0480 28 21 66 26 26 64 2e 73 65 61 72 63 68 28 22 26 (!f&&d.s earch("&
0490 65 69 3d 22 29 3d 3d 2d 31 29 6d 3d 22 26 65 69 ei=")==- 1)m="&ei
04a0 3d 22 2b 67 6f 6f 67 6c 65 2e 67 65 74 45 49 28 ="+googl e.getEI(
04b0 68 29 3b 76 61 72 20 6a 3d 66 7c 7c 22 2f 67 65 h);var j =f||"/ge
04c0 6e 5f 32 30 34 3f 61 74 79 70 3d 69 26 63 74 3d n_204?at yp=i&ct=
04d0 22 2b 61 2b 22 26 63 61 64 3d 22 2b 64 2b 6d 2b "+a+"&ca d="+d+m+
04e0 22 26 7a 78 3d 22 2b 67 6f 6f 67 6c 65 2e 74 69 "&zx="+g oogle.ti
04f0 6d 65 28 29 2c 62 3d 2f 5e 68 74 74 70 3a 2f 69 me(),b=/ ^http:/i
0500 3b 69 66 28 62 2e 74 65 73 74 28 6a 29 26 26 67 ;if(b.te st(j)&&g
0510 6f 6f 67 6c 65 2e 68 74 74 70 73 28 29 29 7b 67 oogle.ht tps()){g
0520 6f 6f 67 6c 65 2e 6d 6c 28 6e 65 77 20 45 72 72 oogle.ml (new Err
0530 6f 72 28 22 47 4c 4d 4d 22 29 2c 66 61 6c 73 65 or("GLMM "),false
0540 2c 7b 73 72 63 3a 6a 7d 29 3b 0a 64 65 6c 65 74 ,{src:j} );.delet
0550 65 20 6b 5b 69 5d 3b 72 65 74 75 72 6e 7d 65 2e e k[i];r eturn}e.
0560 73 72 63 3d 6a 3b 67 2e 6c 69 3d 69 2b 31 7d 2c src=j;g. li=i+1},
0570 6c 63 3a 5b 5d 2c 6c 69 3a 30 2c 6a 3a 7b 65 6e lc:[],li :0,j:{en
0580 3a 31 2c 6c 3a 66 75 6e 63 74 69 6f 6e 28 29 7b :1,l:fun ction(){
0590 67 6f 6f 67 6c 65 2e 66 6c 3d 74 72 75 65 7d 2c google.f l=true},
05a0 65 3a 66 75 6e 63 74 69 6f 6e 28 29 7b 67 6f 6f e:functi on(){goo
05b0 67 6c 0d 0a 48 54 54 50 2f 31 2e 31 20 32 30 30 gl..HTTP /1.1 200
05c0 20 4f 4b 0d 0a 64 61 74 65 3a 20 4d 6f 6e 2c 20 OK..dat e: Mon,
05d0 32 37 20 46 65 62 20 32 30 31 32 20 30 38 3a 32 27 Feb 2 012 08:2
05e0 31 3a 33 38 20 47 4d 54 0d 0a 65 78 70 69 72 65 1:38 GMT ..expire
05f0 73 3a 20 2d 31 0d 0a 63 61 63 68 65 2d 63 6f 6e s: -1..c ache-con
0600 74 72 6f 6c 3a 20 70 72 69 76 61 74 65 2c 20 6d trol: pr ivate, m
0610 61 78 2d 61 67 65 3d 30 0d 0a 63 6f 6e 74 65 6e ax-age=0 ..conten
0620 74 2d 74 79 70 65 3a 20 74 65 78 74 2f 68 74 6d t-type: text/htm
0630 6c 3b 20 63 68 61 72 73 65 74 3d 55 54 46 2d 38 l; chars et=UTF-8
0640 0d 0a 73 65 72 76 65 72 3a 20 67 77 73 0d 0a 78 ..server : gws..x
0650 2d 78 73 73 2d 70 72 6f 74 65 63 74 69 6f 6e 3a -xss-pro tection:
0660 20 31 3b 20 6d 6f 64 65 3d 62 6c 6f 63 6b 0d 0a 1; mode =block..
0670 78 2d 66 72 61 6d 65 2d 6f 70 74 69 6f 6e 73 3a x-frame- options:
0680 20 53 41 4d 45 4f 52 49 47 49 4e 0d 0a 74 72 61 SAMEORI GIN..tra
0690 6e 73 66 65 72 2d 65 6e 63 6f 64 69 6e 67 3a 20 nsfer-en coding:
06a0 63 68 75 6e 6b 65 64 0d 0a 43 6f 6e 6e 65 63 74 chunked. .Connect
06b0 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d ion: kee p-alive.
06c0 0a 0d 0a 62 32 35 0d 0a 0a fd 16 08 00 11 00 00 ...b25.. ........
06d0 00 00 00 00 00 00 1a fd 16 65 2e 66 6c 3d 74 72 ........ .e.fl=tr
06e0 75 65 7d 2c 62 3a 6c 6f 63 61 74 69 6f 6e 2e 68 ue},b:lo cation.h
06f0 61 73 68 26 26 6c 6f 63 61 74 69 6f 6e 2e 68 61 ash&&loc ation.ha
0700 73 68 21 3d 22 23 22 2c 62 76 3a 32 31 2c 63 66 sh!="#", bv:21,cf
0710 3a 22 6f 73 62 22 2c 70 6d 3a 22 70 22 2c 70 6c :"osb",p m:"p",pl
0720 3a 5b 5d 2c 6d 63 3a 30 2c 73 63 3a 30 2e 35 2c :[],mc:0 ,sc:0.5,
0730 75 3a 22 65 64 30 31 37 30 65 35 22 7d 2c 54 6f u:"ed017 0e5"},To
0740 6f 6c 62 65 6c 74 3a 7b 7d 2c 79 3a 7b 7d 2c 78 olbelt:{ },y:{},x
0750 3a 66 75 6e 63 74 69 6f 6e 28 61 2c 64 29 7b 67 :functio n(a,d){g
0760 6f 6f 67 6c 65 2e 79 5b 61 2e 69 64 5d 3d 0a 5b oogle.y[ a.id]=.[
0770 61 2c 64 5d 3b 72 65 74 75 72 6e 20 66 61 6c 73 a,d];ret urn fals
0780 65 7d 7d 3b 28 66 75 6e 63 74 69 6f 6e 28 29 7b e}};(fun ction(){
0790 76 61 72 20 61 3d 67 6f 6f 67 6c 65 2e 6a 3b 77 var a=go ogle.j;w
07a0 69 6e 64 6f 77 2e 6f 6e 70 6f 70 73 74 61 74 65 indow.on popstate
07b0 3d 0a 66 75 6e 63 74 69 6f 6e 28 29 7b 61 2e 70 =.functi on(){a.p
07c0 73 63 3d 31 7d 3b 66 6f 72 28 76 61 72 20 64 3d sc=1};fo r(var d=
07d0 30 2c 66 3b 66 3d 5b 22 61 64 22 2c 22 62 63 22 0,f;f=[" ad","bc"
07e0 2c 22 69 6e 70 72 22 2c 22 69 73 22 2c 22 70 22 ,"inpr", "is","p"
07f0 2c 22 70 61 22 2c 22 61 63 22 2c 22 70 63 22 2c ,"pa","a c","pc",
0800 22 70 61 68 22 2c 22 70 68 22 2c 22 73 61 22 2c "pah","p h","sa",
0810 22 73 69 66 70 22 2c 22 73 6c 70 22 2c 22 73 70 "sifp"," slp","sp
0820 66 22 2c 22 73 70 6e 22 2c 22 78 78 22 2c 22 7a f","spn" ,"xx","z
0830 63 22 2c 22 7a 7a 22 5d 5b 64 2b 2b 5d 3b 29 28 c","zz"] [d++];)(
0840 66 75 6e 63 74 69 6f 6e 28 68 29 7b 61 5b 68 5d function (h){a[h]
0850 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 61 2e 70 6c =functio n(){a.pl
0860 2e 70 75 73 68 28 5b 68 2c 61 72 67 75 6d 65 6e .push([h ,argumen
0870 74 73 5d 29 7d 7d 29 28 66 29 7d 29 28 29 3b 69 ts])}})( f)})();i
0880 66 28 21 77 69 6e 64 6f 77 2e 63 68 72 6f 6d 65 f(!windo w.chrome
0890 29 77 69 6e 64 6f 77 2e 63 68 72 6f 6d 65 3d 7b )window. chrome={
08a0 7d 3b 77 69 6e 64 6f 77 2e 63 68 72 6f 6d 65 2e };window .chrome.
08b0 73 76 3d 31 2e 30 30 3b 28 66 75 6e 63 74 69 6f sv=1.00; (functio
08c0 6e 28 29 7b 76 61 72 20 61 3d 0a 67 6f 6f 67 6c n(){var a=.googl
08d0 65 2e 6b 45 49 3b 77 69 6e 64 6f 77 2e 70 70 5f e.kEI;wi ndow.pp_
08e0 74 6f 73 3d 7b 7d 3b 76 61 72 20 64 3d 64 6f 63 tos={};v ar d=doc
08f0 75 6d 65 6e 74 2e 64 6f 6d 61 69 6e 2e 72 65 70 ument.do main.rep
0900 6c 61 63 65 28 2f 2e 2a 3f 28 67 6f 6f 67 6c 65 lace(/.* ?(google
0910 5c 2e 2e 2a 29 2f 2c 22 24 31 22 29 3b 66 75 6e \..*)/," $1");fun
0920 63 74 69 6f 6e 20 66 28 29 7b 76 61 72 20 62 3d ction f( ){var b=
0930 30 3b 74 72 79 7b 76 61 72 20 63 3d 64 6f 63 75 0;try{va r c=docu
0940 6d 65 6e 74 2e 63 6f 6f 6b 69 65 2e 6d 61 74 63 ment.coo kie.matc
0950 68 28 2f 50 50 5f 54 4f 53 5f 41 43 4b 3d 28 5b h(/PP_TO S_ACK=([
0960 5e 3b 5d 2a 29 2f 29 3b 62 3d 63 26 26 21 69 73 ^;]*)/); b=c&&!is
0970 4e 61 4e 28 63 5b 31 5d 29 3f 63 5b 31 5d 3a 30 NaN(c[1] )?c[1]:0
0980 7d 63 61 74 63 68 28 6c 29 7b 65 28 22 65 72 72 }catch(l ){e("err
0990 6f 72 22 2c 22 72 65 61 64 5f 63 6f 6f 6b 69 65 or","rea d_cookie
09a0 22 29 7d 72 65 74 75 72 6e 20 62 7d 66 75 6e 63 ")}retur n b}func
09b0 74 69 6f 6e 20 68 28 62 29 7b 76 61 72 20 63 3d tion h(b ){var c=
09c0 66 28 29 3b 69 66 28 63 3e 3d 30 29 7b 67 28 2b f();if(c >=0){g(+
09d0 2b 63 29 3b 69 66 28 66 28 29 3e 30 26 26 21 62 +c);if(f ()>0&&!b
09e0 29 6d 28 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 65 )m()}}fu nction e
09f0 28 62 2c 63 29 7b 76 61 72 20 6c 3d 6e 65 77 20 (b,c){va r l=new
0a00 49 6d 61 67 65 3b 63 3d 63 3f 22 26 65 6d 73 67 Image;c= c?"&emsg
0a10 3d 22 2b 63 3a 22 22 3b 6c 2e 73 72 63 3d 5b 22 ="+c:""; l.src=["
0a20 2f 2f 22 2c 64 2c 22 2f 67 65 6e 5f 32 30 34 3f //",d,"/ gen_204?
0a30 61 74 79 70 3d 69 26 63 74 3d 70 70 5f 74 6f 73 atyp=i&c t=pp_tos
0a40 26 63 64 3d 22 2c 62 2c 22 26 73 6f 75 72 63 65 &cd=",b, "&source
0a50 3d 22 2c 22 77 65 62 22 2c 22 26 65 69 3d 22 2c =","web" ,"&ei=",
0a60 61 2c 63 5d 2e 6a 6f 69 6e 28 22 22 29 3b 77 69 a,c].joi n("");wi
0a70 6e 64 6f 77 2e 70 70 5f 74 6f 73 2e 62 65 61 63 ndow.pp_ tos.beac
0a80 6f 6e 3d 6c 7d 66 75 6e 63 74 69 6f 6e 20 67 28 on=l}fun ction g(
0a90 62 29 7b 76 61 72 20 63 3d 6e 65 77 20 44 61 74 b){var c =new Dat
0aa0 65 28 28 6e 65 77 20 44 61 74 65 29 2e 67 65 74 e((new D ate).get
0ab0 54 69 6d 65 28 29 2b 35 31 38 34 30 30 30 30 30 Time()+5 18400000
0ac0 30 29 3b 0a 74 72 79 7b 76 61 72 20 6c 3d 22 50 0);.try{ var l="P
0ad0 50 5f 54 4f 53 5f 41 43 4b 3d 22 2b 62 2b 22 3b P_TOS_AC K="+b+";
0ae0 20 65 78 70 69 72 65 73 3d 22 2b 63 2e 74 6f 47 expires ="+c.toG
0af0 4d 54 53 74 72 69 6e 67 28 29 2b 22 3b 20 70 61 MTString ()+"; pa
0b00 74 68 3d 2f 3b 20 64 6f 6d 61 69 6e 3d 22 2b 64 th=/; do main="+d
0b10 3b 64 6f 63 75 6d 65 6e 74 2e 63 6f 6f 6b 69 65 ;documen t.cookie
0b20 3d 6c 7d 63 61 74 63 68 28 6e 29 7b 65 28 22 65 =l}catch (n){e("e
0b30 72 72 6f 72 22 2c 22 77 72 69 74 65 5f 63 6f 6f rror","w rite_coo
0b40 6b 69 65 22 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 kie")}}f unction
0b50 6b 28 29 7b 67 28 2d 31 29 3b 65 28 k(){g(-1 );e(
Has anyone got any ideas as to what I might be doing wrong?