<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MagicalTux in Japan &#187; Invision Power Board</title>
	<atom:link href="http://blog.magicaltux.net/tag/invision-power-board/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.magicaltux.net</link>
	<description>Geekness brought me to Japan!</description>
	<lastBuildDate>Mon, 26 Jul 2010 21:31:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Invision Power Board and IPv6, a dirty hack</title>
		<link>http://blog.magicaltux.net/2010/02/18/invision-power-board-and-ipv6-a-dirty-hack/</link>
		<comments>http://blog.magicaltux.net/2010/02/18/invision-power-board-and-ipv6-a-dirty-hack/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:13:43 +0000</pubDate>
		<dc:creator>MagicalTux</dc:creator>
				<category><![CDATA[Geek Attitude]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Invision Power Board]]></category>
		<category><![CDATA[IPB]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://blog.magicaltux.net/?p=439</guid>
		<description><![CDATA[Since IPS seems to lack the willingness to fix the IPv6 issue with their software, and given the amount of users willing to totally disable IP protection on their board to allow IPv6 users, I decided to provide with those people an alternative solution allowing to differenciate users. This will create fake IPv4 for IPv6 [...]]]></description>
			<content:encoded><![CDATA[<p>Since IPS seems to <a href="http://community.invisionpower.com/index.php?app=tracker&amp;showissue=3967" target="_blank">lack the willingness to fix the IPv6 issue with their software</a>, and given the amount of users willing to totally disable IP protection on their board to allow IPv6 users, I decided to provide with those people an alternative solution allowing to differenciate users.</p>
<p>This will create fake IPv4 for IPv6 users based on the 64 first bits of their IP. As most currently exising IPv6 providers are assigning /64 classes to their customers, banning the generated IPv4 effectively bans the whole IPv6.</p>
<p>Also I do generate a 32bits IPv4 from 64bits of IPv6 using XOR. While this means people using IPv6 might share the same generated IPv4 (quite unlikely), it is usually impossible for someone to obtain a different generated IPv4 without access to more than a /64 (I believe only system administrators have this kind of thing).</p>
<p>You might want to store in database generated IPv4 and their IPv6 counterparts to be able to recover a given IPv6 from a blocked IPv4.</p>
<p>This method also allows to block IPs in the same subnet from IPv4 subnets (I don&#8217;t know if IPB supports this feature) and recognize people from the same subnet as the start of their generated ip will be the same (however whois information for the given IP will not match the real user&#8217;s ip).</p>
<p>To have the generated IPv4, insert this in conf_global.php :</p>
<pre>$encoded_ip = inet_pton($_SERVER['REMOTE_ADDR']);
if (strlen($encoded_ip) == 16) {
    $ipv4 = '';
    for($i = 0; $i &lt; 8; $i += 2) $ipv4 .= chr(ord($encoded_ip[$i]) ^ ord($encoded_ip[$i+1]));
    $_SERVER['REMOTE_ADDR'] = inet_ntop($ipv4);
}</pre>
<p>And remember to ask your IPB support to have real IPv6 ASAP.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.magicaltux.net/2010/02/18/invision-power-board-and-ipv6-a-dirty-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invision Power Board and FaceBook connect on Chrome</title>
		<link>http://blog.magicaltux.net/2010/02/03/invision-power-board-and-facebook-connect-on-chrome/</link>
		<comments>http://blog.magicaltux.net/2010/02/03/invision-power-board-and-facebook-connect-on-chrome/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:45:46 +0000</pubDate>
		<dc:creator>MagicalTux</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[BBS]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[FaceBook]]></category>
		<category><![CDATA[GG.ST]]></category>
		<category><![CDATA[Invision Power Board]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://blog.magicaltux.net/?p=425</guid>
		<description><![CDATA[Some people who manage Invision Boards have seen the new &#8220;FaceBook connect&#8221; feature as something interesting&#8230; However at first, I couldn&#8217;t see the &#8220;Connect with FaceBook&#8221; button. Searching around a bit finally got this error from Chrome: Unsafe JavaScript attempt to access frame with URL http://bbs.gg.st/index.php?app=core&#38;module=global&#38;section=login from frame with URL http://www.facebook.com/extern/login_status.php?api_key=10e950be918b8f0561e2073c53f2ab8e&#38;extern=0&#38;channel=http%3A%2F%2Fbbs.gg.st%2Finterface%2Ffacebook%2Fxd_receiver.php&#38;locale=en_US. Domains, protocols and ports [...]]]></description>
			<content:encoded><![CDATA[<p>Some people who manage Invision Boards have seen the new &#8220;FaceBook connect&#8221; feature as something interesting&#8230; However at first, I couldn&#8217;t see the &#8220;Connect with FaceBook&#8221; button.</p>
<p>Searching around a bit finally got this error from Chrome:</p>
<p><span style="color: #ff0000;">Unsafe JavaScript attempt to access frame with URL </span><a title="http://bbs.gg.st/index.php?app=core&amp;module=global&amp;section=login" href="http://bbs.gg.st/index.php?app=core&amp;module=global&amp;section=login" target="_blank"><span style="color: #ff0000;">http://bbs.gg.st/index.php?app=core&amp;module=global&amp;section=login</span></a><span style="color: #ff0000;"> from frame with URL </span><a title="http://www.facebook.com/extern/login_status.php?api_key=10e950be918b8f0561e2073c53f2ab8e&amp;extern=0&amp;channel=http%3A%2F%2Fbbs.gg.st%2Finterface%2Ffacebook%2Fxd_receiver.php&amp;locale=en_US" href="http://www.facebook.com/extern/login_status.php?api_key=10e950be918b8f0561e2073c53f2ab8e&amp;extern=0&amp;channel=http%3A%2F%2Fbbs.gg.st%2Finterface%2Ffacebook%2Fxd_receiver.php&amp;locale=en_US" target="_blank"><span style="color: #ff0000;">http://www.facebook.com/extern/login_status.php?api_key=10e950be918b8f0561e2073c53f2ab8e&amp;extern=0&amp;channel=http%3A%2F%2Fbbs.gg.st%2Finterface%2Ffacebook%2Fxd_receiver.php&amp;locale=en_US</span></a><span style="color: #ff0000;">. Domains, protocols and ports must match.</span></p>
<p>On Firefox (and probably other browsers), this works without problem. Just sharing that so other people do not get stuck with the same problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.magicaltux.net/2010/02/03/invision-power-board-and-facebook-connect-on-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
