Results of redirect URLs

102 views
Skip to first unread message

Andre

unread,
Feb 15, 2012, 12:08:14 AM2/15/12
to Google Safe Browsing API
I have hoping someone can clear this up for me. So I got the redirect
URLs and I visited them in order by using wget.
Here is one of the results: a:69121:4:30
If I'm correct this means add: ChunkNum: HashLen: ChunkLen //Not
really clear what this is telling me..What should I do with this data?

After that comes bunch of encoded data which I used a hex reader to
decode and got:
0A 6E D8 50 75 00 C9 13 31 CE 00 1B B8 3E 48 00 85 B3 67 7A 00 E0 18
57 55 00 D8 A3 3F E7 00
(and than another) a:69122:4:362 [encoded data]....

What is the encoded data telling me and how is it suppose to be used?

Any help would be appreciated! Thanks in advance.

Garrett Casto

unread,
Feb 15, 2012, 2:18:08 PM2/15/12
to google-safe-...@googlegroups.com
Take a look at  http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec#3.6.1._shavar_list_format 


--
You received this message because you are subscribed to the Google Groups "Google Safe Browsing API" group.
To post to this group, send email to google-safe-...@googlegroups.com.
To unsubscribe from this group, send email to google-safe-browsi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-safe-browsing-api?hl=en.


Silence

unread,
Feb 15, 2012, 8:33:36 PM2/15/12
to Google Safe Browsing API

"a:" CHUNKNUM ":" CHUNKLEN LF CHUNKDATA
CHUNKDATA = (HOSTKEY COUNT [PREFIX]*)+

a:67841:4:496
5c88d0ae015b5f067b 38845f9e01a74804b8 a8dc0ae100 59e4f2fe00
4be3c4d50119cf05b0

corresponding:
HOSTKEY = 5c88d0ae
COUNT = 01
PREFIX = 5b5f067b

HOSTKEY = 38845f9e
COUNT = 01
PREFIX = a74804b8

HOSTKEY = a8dc0ae1
COUNT = 00

HOSTKEY = 59e4f2fe
COUNT = 00

HOSTKEY = 4be3c4d5
COUNT = 01
PREFIX = 19cf05b0

just like:
HOSTKEY COUNT>=1 PREFIX HOSTKEY COUNT>=1 PREFIX HOSTKEY COUNT==0
HOSTKEY COUNT==0 HOSTKEY COUNT>=1 PREFIX

hope it helps.

Andre

unread,
Feb 15, 2012, 10:03:14 PM2/15/12
to Google Safe Browsing API
Thx Garrett I'll keep looking at the document.

Wow Silence, thx this should really help! Appreciate it, both.

Andre

unread,
Feb 16, 2012, 11:12:09 PM2/16/12
to Google Safe Browsing API
I have a question with the wget command.

I visited the redirect URLs by using the wget command like this:

>wget -O url1 "URL HERE"

When I open url1, the encoded data seems encrypted. For example,
s:74561:4:166
???...??..?? (weird characters, not 0-9, a-z, A-Z)

Is there a special option I'm suppose to give wget? Or should I be
using curl?

Any suggestions would be helpful, thanks in advance!

Patrick Kelley

unread,
Feb 16, 2012, 11:15:27 PM2/16/12
to google-safe-...@googlegroups.com, Google Safe Browsing API
It returns a binary file. Use a hex editor to follow along with the documentation.

Sent from my iPhone

Reply all
Reply to author
Forward
0 new messages