<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Clever Hacking: google.js</title>
	<atom:link href="http://www.gnucitizen.org/blog/clever-hacking-google_js/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/</link>
	<description>Information Security Think Tank</description>
	<pubDate>Tue, 06 Jan 2009 02:09:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hackathology</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-60741</link>
		<dc:creator>hackathology</dc:creator>
		<pubDate>Tue, 23 Oct 2007 10:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-60741</guid>
		<description>followed all three steps man, still, it doesn't work. Strange.</description>
		<content:encoded><![CDATA[<p>followed all three steps man, still, it doesn&#8217;t work. Strange.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-60702</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Tue, 23 Oct 2007 06:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-60702</guid>
		<description>I don't know. it works really well for me. Check if cscript is your default scripting engine. If not, just follow the steps described above.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know. it works really well for me. Check if cscript is your default scripting engine. If not, just follow the steps described above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hackathology</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-60678</link>
		<dc:creator>hackathology</dc:creator>
		<pubDate>Tue, 23 Oct 2007 02:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-60678</guid>
		<description>same here. No output when not using any proxy</description>
		<content:encoded><![CDATA[<p>same here. No output when not using any proxy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: albert arul prakash</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-59007</link>
		<dc:creator>albert arul prakash</dc:creator>
		<pubDate>Wed, 17 Oct 2007 04:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-59007</guid>
		<description>Working fine for me. Its lovely</description>
		<content:encoded><![CDATA[<p>Working fine for me. Its lovely</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56483</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Mon, 08 Oct 2007 20:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56483</guid>
		<description>nori, cheers for that.</description>
		<content:encoded><![CDATA[<p>nori, cheers for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thornade</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56474</link>
		<dc:creator>thornade</dc:creator>
		<pubDate>Mon, 08 Oct 2007 20:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56474</guid>
		<description>Yes, it sounds like MSXML2.DOMDocument could not deflate gzip. If I disable HTTP/1.1 on Internet Explorer settings, it works better, in this case no gzip encoding support. 
Nevertheless, foreach page Google returns, the DTD is checked. This represents 31 documents downloaded...</description>
		<content:encoded><![CDATA[<p>Yes, it sounds like MSXML2.DOMDocument could not deflate gzip. If I disable HTTP/1.1 on Internet Explorer settings, it works better, in this case no gzip encoding support.<br />
Nevertheless, foreach page Google returns, the DTD is checked. This represents 31 documents downloaded&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nori</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56402</link>
		<dc:creator>nori</dc:creator>
		<pubDate>Mon, 08 Oct 2007 15:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56402</guid>
		<description>&lt;pre&gt;&lt;code&gt;if (WScript.Arguments.length == 0) {
	WScript.Echo('usage: ' + WScript.ScriptName + ' &#60;query&#62;');
	WScript.Echo('       ' + WScript.ScriptName + ' site:gnucitizen.org ext:js');
	WScript.Echo('');
	WScript.Echo('Google Search');
	WScript.Echo('by Petko D. Petkov (pdp) GNUCITIZEN (http://www.gnucitizen.org)');
	WScript.Quit(1);
} else {
	var tmp = [];

	for (var i = 0; i &#60; WScript.Arguments.length; i++) {
		tmp.push(WScript.Arguments(i));
	}

	var query = tmp.join(' ');
}

var pos = 0;
var doc = WScript.CreateObject('MSXML2.DOMDocument');
var xhr = WScript.CreateObject('Microsoft.XMLHTTP');
var resp;

doc.async = false;
doc.validateOnParse = false;

do {
	var lns = [];
  xhr.open('GET','http://www.google.com/xhtml?q=' + escape(query) + (pos != 0 ? '&#038;start=' + pos : ''),false);
  //xhr.setRequestHeader("Accept-Encoding", "text");
  xhr.send(null);
	//doc.load('http://www.google.com/xhtml?q=' + escape(query) + (pos != 0 ? '&#038;start=' + pos : ''));
	try{
		doc.loadXML(xhr.responseText);
    //WScript.Echo(xhr.responseText);
	//WScript.Echo('XML:' + xhr.responseText);
	var as = doc.getElementsByTagName('a');

	for (var i = 0; i &#60; as.length; i++) {
		var href = as[i].getAttribute('href');
		//WScript.Echo(href);
		var match = href.match(/^\/gwt\/.*?u=(.*?)$/);
		//WScript.Echo(match);
		if (match) {
			var ln = unescape(match[1]);
			
			lns.push(ln);
		}
	}

	}catch(ex){
		//WScript.Echo(ex.description);
	}
	if (pns &#038;&#038; pns.sort().join() == lns.sort().join()) {
		break;
	}

	for (var i = 0; i &#60; lns.length; i++) {
		WScript.Echo(lns[i]);
	}	

	var pns = lns;

	pos += 10;
} while (lns);&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre><code>if (WScript.Arguments.length == 0) {
	WScript.Echo('usage: ' + WScript.ScriptName + ' &lt;query&gt;');
	WScript.Echo('       ' + WScript.ScriptName + ' site:gnucitizen.org ext:js');
	WScript.Echo('');
	WScript.Echo('Google Search');
	WScript.Echo('by Petko D. Petkov (pdp) GNUCITIZEN (http://www.gnucitizen.org)');
	WScript.Quit(1);
} else {
	var tmp = [];

	for (var i = 0; i &lt; WScript.Arguments.length; i++) {
		tmp.push(WScript.Arguments(i));
	}

	var query = tmp.join(' ');
}

var pos = 0;
var doc = WScript.CreateObject('MSXML2.DOMDocument');
var xhr = WScript.CreateObject('Microsoft.XMLHTTP');
var resp;

doc.async = false;
doc.validateOnParse = false;

do {
	var lns = [];
  xhr.open('GET','http://www.google.com/xhtml?q=' + escape(query) + (pos != 0 ? '&#038;start=' + pos : ''),false);
  //xhr.setRequestHeader("Accept-Encoding", "text");
  xhr.send(null);
	//doc.load('http://www.google.com/xhtml?q=' + escape(query) + (pos != 0 ? '&#038;start=' + pos : ''));
	try{
		doc.loadXML(xhr.responseText);
    //WScript.Echo(xhr.responseText);
	//WScript.Echo('XML:' + xhr.responseText);
	var as = doc.getElementsByTagName('a');

	for (var i = 0; i &lt; as.length; i++) {
		var href = as[i].getAttribute('href');
		//WScript.Echo(href);
		var match = href.match(/^\/gwt\/.*?u=(.*?)$/);
		//WScript.Echo(match);
		if (match) {
			var ln = unescape(match[1]);

			lns.push(ln);
		}
	}

	}catch(ex){
		//WScript.Echo(ex.description);
	}
	if (pns &#038;&#038; pns.sort().join() == lns.sort().join()) {
		break;
	}

	for (var i = 0; i &lt; lns.length; i++) {
		WScript.Echo(lns[i]);
	}	

	var pns = lns;

	pos += 10;
} while (lns);</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56389</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Mon, 08 Oct 2007 15:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56389</guid>
		<description>strange, it should work flawlessly... are you sure that your system proxy settings are set correctly?</description>
		<content:encoded><![CDATA[<p>strange, it should work flawlessly&#8230; are you sure that your system proxy settings are set correctly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nori</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56387</link>
		<dc:creator>nori</dc:creator>
		<pubDate>Mon, 08 Oct 2007 14:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56387</guid>
		<description>Hi, no outpout when using no proxy. But when passing through Paros, results are returned. Maybe an issue with Accept-Encoding: gzip,deflate...</description>
		<content:encoded><![CDATA[<p>Hi, no outpout when using no proxy. But when passing through Paros, results are returned. Maybe an issue with Accept-Encoding: gzip,deflate&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liquidmatrix Security Digest &#187; Security Briefing: October 8th</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56366</link>
		<dc:creator>Liquidmatrix Security Digest &#187; Security Briefing: October 8th</dc:creator>
		<pubDate>Mon, 08 Oct 2007 13:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56366</guid>
		<description>[...] Clever Hacking: google.js [...]</description>
		<content:encoded><![CDATA[<p>[...] Clever Hacking: google.js [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thornade</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56161</link>
		<dc:creator>thornade</dc:creator>
		<pubDate>Sun, 07 Oct 2007 21:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56161</guid>
		<description>No output for me, when I debug, it seems like I have no tag &#60;a&#62; in the returned document but when I sniff, I could see answers from Google, furthermore the script sends 2 requests (q=xxx, q=xxx&#38;start=10)

I wrote a similar script in perl to find all web servers crawled by google for a specific domain (ie: gnucitizen.org). I did not use the wap version, is there any reason to use it ? (speeder, smaller ... ?)</description>
		<content:encoded><![CDATA[<p>No output for me, when I debug, it seems like I have no tag &lt;a&gt; in the returned document but when I sniff, I could see answers from Google, furthermore the script sends 2 requests (q=xxx, q=xxx&amp;start=10)</p>
<p>I wrote a similar script in perl to find all web servers crawled by google for a specific domain (ie: gnucitizen.org). I did not use the wap version, is there any reason to use it ? (speeder, smaller &#8230; ?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-56083</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Sun, 07 Oct 2007 16:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-56083</guid>
		<description>&lt;pre&gt;&lt;code&gt;cscript //H:CScript&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre><code>cscript //H:CScript</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Bloch</title>
		<link>http://www.gnucitizen.org/blog/clever-hacking-google_js/comment-page-1/#comment-55936</link>
		<dc:creator>Stephen Bloch</dc:creator>
		<pubDate>Sun, 07 Oct 2007 09:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnucitizen.org/blog/clever_hacking_google_js#comment-55936</guid>
		<description>When running your script I'm getting:

&lt;blockquote&gt;"Access is denied" message.
The error code: 80070005,
the source: msxml3.dll&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>When running your script I&#8217;m getting:</p>
<blockquote><p>&#8220;Access is denied&#8221; message.<br />
The error code: 80070005,<br />
the source: msxml3.dll</p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>
