<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Zeroday 01100100011010010</title>
	<atom:link href="http://blogs.law.harvard.edu/zeroday/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.law.harvard.edu/zeroday</link>
	<description>三一三三七</description>
	<lastBuildDate>Sat, 03 Oct 2009 03:11:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
		<item>
		<title>My speech at the Works in Progress of Intellectual Property Conference</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/10/02/my-speech-at-the-works-in-progress-of-intellectual-property-conference/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/10/02/my-speech-at-the-works-in-progress-of-intellectual-property-conference/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 03:08:42 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Rights Online]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=397</guid>
		<description><![CDATA[My notes for the talk I gave to a group of distinguished law professors at the Seventh Annual Works in Progress Intellectual Property (WIPIP)  
I am not a law professor
i am and am not a hacker.
the term hacker has undergone significant change in the last two decades so the meaning is ambiguous these days.
let [...]]]></description>
			<content:encoded><![CDATA[<p>My notes for the talk I gave to a group of distinguished law professors at the <a href="http://law.shu.edu/About/News_Events/wipip/program-schedule.cfm">Seventh Annual Works in Progress Intellectual Property (WIPIP)  </a></p>
<p>I am not a law professor<br />
i am and am not a hacker.</p>
<p>the term hacker has undergone significant change in the last two decades so the meaning is ambiguous these days.<br />
let me give you this definition and for the sake of the next 4 mins of my talk consider it to the the authoritative one</p>
<p>hackers are computer users who are adept enough to bend the function of a program to their will.</p>
<p>security researchers are much like the hackers of the 1990&#8217;s but unlike what the term has come to mean lately.</p>
<p>when researchers find security flaws in software they will generally contact the manufacturer.  they are met with one of three responses:<br />
1) disregard<br />
2) deference<br />
3) contempt</p>
<p>When met with contempt they have been threatened with law suits using a variety of novel legal theories.  Reading though our history is like walking through a catalogue of existing IP frameworks.  Patent, Trademark, Copyright, Contract and Criminal have all been used in response to an individual making claims that a product contains a security flaw.  </p>
<p>examples:<br />
In 2007 Chris Paget of security firm IOActive was going to give a talk at a security conference about the insecurity of HID badges.  These badges are ubiquitous in corporate America and the issues he discovered need to be discussed.  HID forced his talk to be canceled with the threat of patent infringement.</p>
<p>A few years earlier in 2005, researcher Mike Lynn had discovered a security flaw in Cisco routers.  These devices are largely responsible for the backbone of the Internet.  Interestingly Cisco had already fixed the flaw yet filed a TRO against Lynn to prevent him from talking about his work to a group of like minded peers at a security conference.  In the aftermath of this incident Lynn had to agree to a permanent injunction forbidding him from ever talking about it again.</p>
<p>Lessig famously said that on the Internet &#8220;Code is Law&#8221;.  I would like to reverse that turn of phrase for the real world.<br />
&#8220;Law is code&#8221;<br />
It is compiled by legislators and debugged by judges </p>
<p>And in this sense what the companies we write about in our paper did was impressive.  They hacked the law.  The bent these disparate legal frameworks to their will and used seemingly unrelated laws to silence researchers who were making claims that their product was flawed.</p>
<p>what our paper proposes to do is patch the law so that legal hackers can not continue to subvert the legal system anymore.  And with that I&#8217;ll turn it over to Derek to explain <a href="http://law.shu.edu/Faculty/Documents/wipip_documents/Bambauer.pdf">how that would work.</a> [pdf]</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/10/02/my-speech-at-the-works-in-progress-of-intellectual-property-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Repercussions of bad German laws on security research</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/09/20/repercussions-of-bad-german-laws-on-security-research/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/09/20/repercussions-of-bad-german-laws-on-security-research/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 18:43:30 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Digital Warfare]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=392</guid>
		<description><![CDATA[This month I&#8217;m conducting some research into web hosting security issues and ran into the aftermath of the German law passed in 2007 banning security research publication.  The policy has had the effect of silencing security researchers from that country.  While investigating issues in PHP security I came upon the Month of PHP [...]]]></description>
			<content:encoded><![CDATA[<p>This month I&#8217;m conducting some research into web hosting security issues and ran into the aftermath of the German law passed in 2007 banning security research publication.  The policy has had the effect of silencing security researchers from that country.  While investigating issues in PHP security I came upon the Month of PHP Bugs website and when I attempted to download a proof of concept to illustrate what type of security issues PHP had back in 2007 I got an explanation from security researcher Stefan Esser explaining why he no longer feels comfortable publishing results to the Internet.  </p>
<p>Instead of summarizing his explanation I&#8217;m going to repost it here:</p>
<blockquote><p>
Dear Visitor,</p>
<p>since Friday 10th, August 2007 a new and very troubling law is enforced in<br />
germany.</p>
<p>It is no longer legal to create and/or distribute so called hacking tools in<br />
germany. This includes port scanners like nmap, security scanners like nessus<br />
or simple proof of concept exploits like the MOPB exploits. They are now illegal<br />
because someone COULD use them to commit crimes.</p>
<p>Until today I had hoped that our Bundespresident would stop this insane law with<br />
a last minute veto, but now it is official and our government has rendered germany<br />
more or less defenseless against the threats from outside germany.</p>
<p>Unfortunately our government has been deaf to the warnings from lots of experts<br />
that tried to explain how important these so called hacking tools are not only<br />
for the current generation of security consultants to do their daily job, but<br />
also how important they are for the education of the next generation of<br />
researchers and consultants.</p>
<p>If you do not know how to attack, you will never know how to defend yourself.</p>
<p>Yours,<br />
Stefan Esser</p></blockquote>
<p>This is incredibly frustrating for someone like me who is doing legitimate research into security problems that are plaguing the Internet.  Security research is a rare and valuable skill set which should be cultivated not destroyed.  Yet the German law is likely driving away people from this profession due to the impossibility of publication on the Internet without fear of criminal charges.  At best the researchers who are turning away in Germany are finding other less beneficial avenues to explore.  At worst they are publishing underground only.</p>
<p>I had largely forgotten about this law being passed in 2007 because I too had assumed the President in Germany would come to his senses and repeal it.  Germany has had a remarkable history with hackers (see Chaos Computer Club) so it is very surprising they went in this direction.</p>
<p>Some old articles about this:<br />
<a href="http://arstechnica.com/security/news/2007/05/germany-adopts-anti-hacker-law-critics-say-it-breeds-insecurity.ars">ars technica</a><br />
<a href="http://blog.security4all.be/2009/06/after-2-years-german-hacker-tool-law.html">article about aftermath</a></p>
<p>I need to do some more follow up on this but so far the results look grim.  </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/09/20/repercussions-of-bad-german-laws-on-security-research/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>SECRE.TS</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/08/21/secrets/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/08/21/secrets/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 02:52:59 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Interesting Tech]]></category>
		<category><![CDATA[Non Sequiter]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=390</guid>
		<description><![CDATA[I started developing a random idea over the holidays but never finished it.  I&#8217;m releasing its description here with the hope that someone will steal and then implement it :)
a hybrid social media platform using rss feeds, twitter style messaging and public, private, and group key pair cryptography.  it also solves the paradox [...]]]></description>
			<content:encoded><![CDATA[<p>I started developing a random idea over the holidays but never finished it.  I&#8217;m releasing its description here with the hope that someone will steal and then implement it :)</p>
<p>a hybrid social media platform using rss feeds, twitter style messaging and public, private, and group key pair cryptography.  it also solves the paradox of eventual decryption through the use of one time pads and very precise randomization.</p>
<p>secre.ts enables the user to share cryptographically protected messaging to allow use over untrusted publicly accessible networks like the Internet.</p>
<p>As a messaging solution secre.ts produces the greatest assets of email like services with the most secure traits of a virtual private network connection.  vpn solutions are fragile connections and cumbersome on both bandwidth and the processor.  secre.ts hybrid approach consumes processor but the messages are broadcast in public so connectivity is hugely increased and bandwidth isn&#8217;t impacted because the messages are received in cleartext.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/08/21/secrets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Musings on Cara Duckworth&#8217;s Post</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/08/10/musings-on-cara-duckworths-post/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/08/10/musings-on-cara-duckworths-post/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 04:43:02 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[law]]></category>
		<category><![CDATA[equillibRIAA]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=387</guid>
		<description><![CDATA[Some opinions about the Tenenbaum case, for those interested:
OPINION: The RIAA stands for Recording Industry Association of America
OPINION: The RIAA has filed many cases against file sharers as civil actions and not criminal
OPINION: In the US, civil actions do not guarantee the defendant representation by an attorney
OPINION: The RIAA has compared copyright infringement to stealing [...]]]></description>
			<content:encoded><![CDATA[<p>Some opinions about the Tenenbaum case, <a href="http://www.riaa.com/blog.php?content_selector=Musings-On-Tenenbaum-Case">for those interested</a>:</p>
<p>OPINION: The RIAA stands for Recording Industry Association of America</p>
<p>OPINION: The RIAA has filed many cases against file sharers as civil actions and not criminal</p>
<p>OPINION: In the US, civil actions do not guarantee the defendant representation by an attorney</p>
<p>OPINION: The RIAA has compared copyright infringement to stealing many times in the press</p>
<p>OPINION: Copyright infringement and shoplifting are two distinct and separate crimes</p>
<p>OPINION: 30 average songs could be contained in 2 CD&#8217;s</p>
<p>OPINION: The average cost of 2 CD&#8217;s in a store is &lt; $100</p>
<p>OPINION: In Massachusetts the fine for shoplifting under $100 is a fine up to $250 the first time</p>
<p>OPINION: There is a huge discrepancy between the punishment for shoplifting and infringing an equal amount of music</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/08/10/musings-on-cara-duckworths-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Project EquillibRIAA</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/08/05/project-equillibria/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/08/05/project-equillibria/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 23:10:54 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Digital Warfare]]></category>
		<category><![CDATA[rights_online equalibRIAA]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/2009/08/05/project-equillibria/</guid>
		<description><![CDATA[For the last few years I&#8217;ve talked quietly of a project to connect artists with the victims of lawsuits in the name of their bands.  After the verdict handed down by the latest case of Sony vs. Tenenbaum I think it is time to put this plan to action.  I&#8217;ve emailed Joel and [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few years I&#8217;ve talked quietly of a project to connect artists with the victims of lawsuits in the name of their bands.  After the verdict handed down by the latest case of Sony vs. Tenenbaum I think it is time to put this plan to action.  I&#8217;ve emailed Joel and received a list of the bands he was sued for and what I&#8217;d like to do is draw national attention to the public interfaces these bands have set up for<br />
themselves.</p>
<p>I&#8217;ve created a public document which contains a list of the bands and any Twitter, Myspace, Facebook, or other public forums the bands have set up for themselves.  I could use help tracking down some of the missing links in this list.  In some cases the bands no longer exist but members of the original band still live on in other bands or on their own.</p>
<p>To be clear the purpose of this project is not to harass these musicians.  It is to remove the wedge of the RIAA from artists and their fans and ask them to communicate.  The one question I&#8217;d like to see the artists answer is &#8220;Do you support the actions the RIAA has taken on behalf of your band in destroying the life of Joel Tenenbaum?&#8221;</p>
<p>Joel is being fined $22,500 for each of the 30 songs that he downloaded<br />
from KaZaa.  His total fine is $675,000 for an activity that a majority of the Internet users in this country have and still participate in.  This isn&#8217;t to say that we should advocate copyright infringement but that we shouldn&#8217;t agree with the penalties associated with infringement.</p>
<p>This project is still being assembled and I would appreciate any feedback and help the FC community can muster.  I&#8217;d like to coordinate a massive feedback storm requesting comment via Twitter, Myspace, etc so these artists can&#8217;t escape without saying something.  Anything.  What we need is dialog from musicians about what is happening to their fans.</p>
<p>The working spreadsheet of bands and their online identities is here:<br />
&nbsp;<a href="http://spreadsheets.google.com/ccc?key=0AmI5i5jD2tuTdDllNXZHb3kweS1qRkt6SlUzeXQzZmc" title="http://spreadsheets.google.com/ccc?key=0AmI5i5jD2tuTdDllNXZHb3kweS1qRkt6SlUzeXQzZmc" target="_blank">http://spreadsheets.google.com/ccc?key=0&#8230;</a></p>
<p>If you would like access to edit the spreadsheet please email me (oliver.day@gmail) and I will add you to the access list.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/08/05/project-equillibria/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Friendless at Facebook</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/07/21/friendless-at-facebook/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/07/21/friendless-at-facebook/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 08:12:18 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Digital Warfare]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=382</guid>
		<description><![CDATA[I finally met someone whose privacy settings were as high as mine.  If Facebook has a privacy setting I have it pushed to the highest possible value.  The end result is that I&#8217;m practically a ghost on the popular social media website. You won&#8217;t find me using search functionality and I have absolutely [...]]]></description>
			<content:encoded><![CDATA[<p>I finally met someone whose privacy settings were as high as mine.  If Facebook has a privacy setting I have it pushed to the highest possible value.  The end result is that I&#8217;m practically a ghost on the popular social media website. You won&#8217;t find me using search functionality and I have absolutely no public footprint.  Last night I decided to friend some of the researchers working with myself and Prof Bambauer on an academic paper about shielding security researchers due out this fall.<br />
The two of us appeared to be unable to &#8220;friend&#8221; each other because of our high privacy settings.  I wasn&#8217;t really sure how to proceed.  We tried messaging each other a few more times in an effort to prove to Facebook our intentions but to no avail.  One of us would have to sacrifice a bit of our privacy in order to allow for this seemingly obvious functionality.  </p>
<p>Since I initiated I went ahead and dropped my guard a bit and allowed anyone from the Harvard network to see me (thankfully she is an alum!)  Of course now that we are friends the curtains have been drawn again around my profile but this is definitely one of the more interesting experiences I&#8217;ve had with Facebook.  </p>
<p>While I&#8217;m glad they offer me so many privacy settings they really need to think about this particular edge case where two privacy loving individuals happen to want to friend each other.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/07/21/friendless-at-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>James Atkinson is speaking at MRL Thursday (June 25) at 6:30 PM</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/06/23/james-atkinson-is-speaking-at-mrl-thursday-june-25-at-630-pm/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/06/23/james-atkinson-is-speaking-at-mrl-thursday-june-25-at-630-pm/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 01:49:26 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[events]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=380</guid>
		<description><![CDATA[Midnight Research Labs Boston will have a special guest speaker: Mr.
James Atkinson, who will be giving his &#8220;Kill Your Cordless Phone&#8221; talk.
***This talk will be announced and open to the general public, and WILL
REQUIRE AN RSVP as space is limited. Given the size and layout of MRLB,
we&#8217;ll be doing a bit of re-arranging to accommodate [...]]]></description>
			<content:encoded><![CDATA[<p>Midnight Research Labs Boston will have a special guest speaker: Mr.<br />
James Atkinson, who will be giving his &#8220;Kill Your Cordless Phone&#8221; talk.</p>
<p>***This talk will be announced and open to the general public, and WILL<br />
REQUIRE AN RSVP as space is limited. Given the size and layout of MRLB,<br />
we&#8217;ll be doing a bit of re-arranging to accommodate attendees.***</p>
<p>Please RSVP to &nbsp;<a href="mailto:rsvp001@n0where.org" title="mailto:rsvp001@n0where.org">rsvp001 at n0where.org</a></p>
<p>Here&#8217;s a brief bio on Mr. Atkinson (more at&nbsp;<a href="http://tscm.com/biojma.html" title="http://tscm.com/biojma.html" target="_blank">http://tscm.com/biojma.html</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/06/23/james-atkinson-is-speaking-at-mrl-thursday-june-25-at-630-pm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>South Koreans not allowed to upload to Youtube</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/04/29/south-koreans-not-allowed-to-upload-to-youtube/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/04/29/south-koreans-not-allowed-to-upload-to-youtube/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 19:28:44 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Rights Online]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=376</guid>
		<description><![CDATA[While digging through youtube html for another project I came upon this interesting error message. 
msg["koreaFail"] = &#8220;본인확인제로 인해 한국 국가 설정시 동영상/댓글 업로드 기능을자발적으로 비활성화합니다.  We have voluntarily disabled this functionality on&#160;kr.youtube.com because of the Korean real-name verification law.&#8221;;
I looked into this a bit more and South Korea seems to have rallied around [...]]]></description>
			<content:encoded><![CDATA[<p>While digging through youtube html for another project I came upon this interesting error message. </p>
<p>msg["koreaFail"] = &#8220;본인확인제로 인해 한국 국가 설정시 동영상/댓글 업로드 기능을자발적으로 비활성화합니다.  We have voluntarily disabled this functionality on&nbsp;<a href="http://kr.youtube.com" title="http://kr.youtube. " target="_blank">kr.youtube.com</a> because of the Korean real-name verification law.&#8221;;</p>
<p>I looked into this a bit more and South Korea seems to have rallied around the death of a popular actress who killed herself due to online comments about her.  The new &#8220;anti bully&#8221; law requires all sites with at least 100,000 users to verify the posters real name.  </p>
<blockquote><p>&#8220;The Cyber Defamation Law, as it&#8217;s called, went into effect on April 1st. According<br />
to officials at the Korea Communications Commission (KCC), the country&#8217;s<br />
broadcasting and telecommunications regulator, the law is an attempt to<br />
quell the cyber-bullying and spread of misinformation on the internet.&#8221;</p></blockquote>
<p>source: <a href="http://www.readwriteweb.com/archives/google_sticks_up_for_privacy_disables_uploads_on_y.php">readwriteweb</a></p>
<p>Google is unwilling to collect this kind of data about its users and instead has opted to disable upload (and I assume comment) capabilities from South Korean IP addresses.  </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/04/29/south-koreans-not-allowed-to-upload-to-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Personal Disclosure Update</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/04/08/personal-disclosure-update/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/04/08/personal-disclosure-update/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 19:41:49 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Digital Warfare]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/2009/04/08/personal-disclosure-update/</guid>
		<description><![CDATA[I&#8217;ve decided to step down from the Advisory Board of the SourceBoston conference.  I still think that it is a fantastic project but I have been so busy with academic projects and class work that I couldn&#8217;t give them enough time.  
I&#8217;m also not going to be a regular columnist at SecurityFocus after [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to step down from the Advisory Board of the SourceBoston conference.  I still think that it is a fantastic project but I have been so busy with academic projects and class work that I couldn&#8217;t give them enough time.  </p>
<p>I&#8217;m also not going to be a regular columnist at SecurityFocus after this month.  This was more a decision on their part than mine however I am not going to fight it.  I could use the extra time to focus on two very exciting academic papers I have lined up for this year.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/04/08/personal-disclosure-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Storing IP Addresses in MySQL with ruby/rails</title>
		<link>http://blogs.law.harvard.edu/zeroday/2009/04/04/storing-ip-addresses-in-mysql-with-rubyrails/</link>
		<comments>http://blogs.law.harvard.edu/zeroday/2009/04/04/storing-ip-addresses-in-mysql-with-rubyrails/#comments</comments>
		<pubDate>Unknown, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>zeroday</dc:creator>
				<category><![CDATA[Digital Warfare]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/zeroday/?p=374</guid>
		<description><![CDATA[A recent project has me thinking about storing of IP addresses in mysql.  The natural tendency is to store it as text.  My first attempt stored the address as char(16) with a normal index to help speed searches against it.  After some reading about high performance MySQL techniques I was reminded that [...]]]></description>
			<content:encoded><![CDATA[<p>A recent project has me thinking about storing of IP addresses in mysql.  The natural tendency is to store it as text.  My first attempt stored the address as char(16) with a normal index to help speed searches against it.  After some reading about high performance MySQL techniques I was reminded that IP addresses in dotted quad form are the least efficient.  Instead of storing as a string of characters I could instead convert the dotted quad into a 32 bit integer.  </p>
<p>The magic of converting it is pretty easy to find online however if you are using ruby simply install the IPAddr gem.  </p>
<blockquote><p>
&gt;&gt; ip = IPAddr.new(&#8217;255.255.255.255&#8242;)<br />
=&gt; #<br />
&gt;&gt; puts ip.to_i<br />
4294967295<br />
=&gt; nil
</p></blockquote>
<p>Reversing the process isn&#8217;t quite as easy and the documentation fails to mention this possibility.  A little digging online will unearth this additional parameter that is needed:</p>
<blockquote><p>
&gt;&gt; ipnum = 4294967295<br />
=&gt; 4294967295<br />
&gt;&gt; ip = IPAddr.new(ipnum, Socket::AF_INET).to_s<br />
=&gt; &#8220;255.255.255.255&#8243;
</p></blockquote>
<p>When I first tried to store this in MySQL I ran into another problem.  In my haste I created the column ip_num as an int(11).  The code I ran didn&#8217;t raise an exception and converted all the ip addresses in the database.  However when I viewed the results a large number of ip addresses came back as 127.255.255.255.  This ip address converts to 2147483647 as an integer.  </p>
<p>If this number looks familiar it is because it is exactly half of the value of 255.255.255.255.  It is also the limit of a <i>signed</i> integer.<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html"> &#8220;The signed range is -2147483648 to 2147483647&#8243;</a></p>
<p>Ensure that you create an unsigned int column for ip addresses to hold the max value of 4294967295.<br />
The unsigned range is 0 to 4294967295.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/zeroday/2009/04/04/storing-ip-addresses-in-mysql-with-rubyrails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
