12 ms·
DeSopa: a Firefox addon to easily bypass SOPA DNS blocking
- CWuestefeld 15y agoThis program is a proof of concept that SOPA will not help prevent piracy. The program, implemented as a Firefox extension, simply contacts offshore domain name resolution services to obtain the IP address for any desired website Part of SOPA is a provision that any tools for circumventing the DNS hijacking are themselves banned. So this extension would have to be removed from the Mozilla repository. At best, it would be distributed underground, and hence would not help to preserve the freedom of the average user.
- delimitted 15y agoYes, I agree. However at this point I am just hoping that it catches the attention of congressmen giving them another reason to rethink SOPA's feasibility before the vote
- thebigshane 15y agoI like your idea but I sincerely believe that congress(wo)men will only think of this as another attempt by infringers to continue to infringe and steal. If anything, it may want them to wish they could prevent tools and techniques like this from from being available for "just anyone" to download. </cynicism>
- delimitted 15y agoThanks, I agree. That occurred to me too. However, I hoped that it would still force them to rethink their implementation strategy forcing them to allocate more resources to further the effort and buying more time for public awareness.
- pavel_lishin 15y agoI choose to be an optimist, and foresee a future where every user is dragged far enough up the evolutionary ladder to be able to subvert things like this.
- lloeki 15y ago> So this extension would have to be removed from the Mozilla repository. IM unfamiliar with the bill, but given SOPA's wording, could it be that the whole of addons.mozilla.org, or even mozilla.org end up banned? > At best, it would be distributed underground If it were to happen, I envision a world where Aunt Jackie will ask little nephew Steve to enable her the full internets because she can't watch some photos on Flickr anymore, just like she could not install the Flash ten years ago. Steve will simply be asked to provide a piece of software to bootstrap, which if banned from the internets, will be distributed on underground network channels then diffused on a local scale through sneakernet. It looks awfully like the BBS and early Internet in the '90s, with those warez sources like IRC DDC bots, and a select few having access to such sources and able to distribute pirated games on high-price CD-Rs.
- delimitted 15y agoI think if SOPA passes, Mozilla will remove extensions such as this. I hope this extension is a deterrent to SOPA passing at all.
- finnw 15y agoMost likely they will also be pressured into releasing a FireFox update that breaks previous versions as well (just so we cannot keep using older versions of the addon without also being stuck with an old/insecure version of the browser.)
- delimitted 15y agofinnw, the code is actually pretty trivial and does not make use of very special functionality. Further, if SOPA does pass, many even more innovative programs will come out of the woodwork, at the OS layer. I think forcing a patch like that would be a hard sell.
- vidarh 15y agoYou don't need a OS patch. I run dnsmasq on my machines, for example, and its primary purpose is to alter DNS resolution - my nameserver is set to localhost, and my dnsmasq configuration sets which DNS servers to use for what top level domains etc., and routes *.local to a flat file on my home server, for example. Dnsmasq itself isn't suited to avoid SOPA, but it's a good proof of concept for a small dns server that mediates the lookups based on rules, but defer to "regular DNS" for everything else. There are tons of simple DNS servers out there that can easily be modified to do detect likely SOPA blocked domains and use whatever mechanisms to resolve it through non-US servers (even if your upstream ISP gets forced to filter DNS). Worst case? Distribute zone files of blocked domains as torrents automatically, or hide lookups in otherwise innocuous looking traffic. If they IP block the sites, the same mechanism can be used to serve up lists of addresses of proxies instead of the real sites. The system just needs to be faster than the SOPA proponents manage to send their extortion letters to ISPs. The beauty is that if/when mechanisms like this start becoming commonplace, the cat is out of the bag - they'll never regain control.
- tomjen3 15y agoThe average user has friends who can supply him/her with this extension. As soon as these ordinary people her about these they will as "the guy they know who is really good with computers" about that program. Won't take very much to do it. Heck I can even write one (since all you need to do is replace the DNS server).
- gkoberger 15y agoSOPA specifically (without actually naming it) calls out addons.mozilla.org for the whole mafiaafire thing -- so under SOPA, this add-on wouldn't be allowed to stay up. "[T]his version targets software developers and distributors as well. It allows the Attorney General (doing Hollywood or trademark holders' bidding) to go after more or less anyone who provides or offers a product or service that could be used to get around DNS blacklisting orders." Second paragraph: https://www.eff.org/deeplinks/2011/11/hollywood-new-war-on-software-freedom-and-internet-innovation https://www.eff.org/deeplinks/2011/11/hollywood-new-war-on-s... (Disclosure: I'm a developer on addons.mozilla.org; EDIT: Changed the post to add a source)
- delimitted 15y agoSOPA has not yet passed, it is not yet the law and I hope that Mozilla leaves it up for now. The DeSOPA program is meant to discourage passage of the bill by showing congress how easily it can be circumvented, so if it is removed after passage so be it. The link is: https://addons.mozilla.org/en-US/firefox/addon/desopa/ https://addons.mozilla.org/en-US/firefox/addon/desopa/ or [add-ons mozilla base URL ] (slash) en-US (slash) firefox (slash) addon (slash) desopa (slash optional) in case it is filtered. Disclaimer: I developed it
- gkoberger 15y agoI didn't mean at all to imply Mozilla would be taking it down; just that the government wasn't happy with the mafiaafire add-on and has included text in SOPA specifically targeted at making add-ons like this "illegal". Just another reason SOPA is bad :)
- koenigdavidmj 15y agoIt's been shown in court that source code is free speech, protected by the First Amendment (cf. Bernstein v. US, Junger v. Daley). I don't want this to get to that point, but that could be a way of getting around it. Some might argue that speech telling you how to commit a crime is not protected speech, but the Anarchist Cookbook is legal to possess as well. Dammit Jim, I'm a hacker, not a lawyer. This is not legal advice.
- nostromo 15y agoIt would be quite ironic if the ultimate legacy of SOPA is to strengthen the web by evolving the nature of DNS. I'm reminded of the past "victories" of the copyright lobby that ended up doing more harm (from their perspective) than good: shuttering Napster (which lead to the much better decentralized systems used for piracy today) and passing of the DMCA (which actually ended up giving legal coverage to businesses that profit from infringement).
- delimitted 15y agoThat would be awesome, eg P2P DNS, but I wouldn't want it to pass to see if that is the outcome.
- dangrossman 15y agoThe worst part of SOPA, in my opinion, is the ability for a rightsholder to ask any ad network or payment provider to stop doing business with any website merely by claiming the site's primary function is infringement... and the liability incentives the bill creates for doing so without a trial. We can route around DNS blocks to get to the sites, but what does that matter if the sites close themselves because their funding was cut off? A site like YouTube would not be profitable without access to US-based ad networks.
- tomjen3 15y agoMicrotransactions in Bitcoin (or heck ads paid with bitcoin). You can't cut of bitcoin transactions because there is by its very definition no place to cut them of. If this is the case, we are only going to get that much closer to the end game.
- dlikhten 15y agoI have to say, as much as bitcoin is in a downfall, this actually makes a ton of sense. That was the initial goal of bitcoin, to create a de-centralized currency. As long as the BTC is a STABLE currency this works out well. Or short-term stable. It can become a medium of financial transfer: I buy 10 BTC, donate it, they claim 10 BTC, convert to cash. Done. It would be great if there was a tool to literally facilitate this transaction without directly giving from one company to another, thus bypassing SOPA. I give the "holder" $10, the "holder" gives me 10 BTC. Then I give 10 BTC to say PirateBay. Then the "holder" guarantees that piratebay can sell 10 BTC to them for $10. Thats it. They only converted BTC to/from cash. I directly gave BTC to pirate bay. SOPA is ignored. HOWEVER THIS IS EXACTLY WHAT THE INTERNET IS AGAINST. This will prevent all sort of anti-fraud that is going on now. You will wind up bypassing years of innovation to create a black market. It will be detremental.
- _bbs 15y agoCan someone find a link to the source code (it is licensed under the GPLv2)? I tried to open the xpi in a text editor, but no dice. I don't have much experience with FF addons, but I'd like to see exactly what's happening here.
- nathanb 15y agoAn xpi is simply a zip archive, FYI.
- arthurschreiber 15y agoxpi files are "normal" renamed zip files. Try extracting the contents using your favorite unzipping application. You should then get access to the source files.
- delimitted 15y agoYou can rename the extension to .zip and extract. If you have any problems, let me know via a comment or post a contact method and Ill send you the source. Its pretty simple. When on, it intercepts URLs, sends the base URL to three offshore DNS services via HTTP, makes a best effort to check that two of them are equivalent, caches the IP for the browser session, redirects to the equivalent URL using the IP, and substitutes out the domain name in the source code with the IP address for future requests. I admit that it could use some work, however, I wrote in hopes that I could help create some kind of change in the events that are about to transpire before the vote.
- JakeSc 15y agoThanks for your work! The explanation on how the extension works was enlightening. Perhaps I missed it, but would you mind including the explanation on the download page?
- delimitted 15y agoSure! updated: http://bit.ly/rvG87g http://bit.ly/rvG87g
- vectorpush 15y agoThis is an outrage. We need to pass a bill that forces ISPs to scan for this plugin and report users to the government for prosecution. The nerve of these criminals.
- SquareWheel 15y agoRequire all operating systems to include a program that searches for this plugin and removes it. Then write another program to detect if the user uninstalls the first program.
- grecy 15y agoThis program is a proof of concept that SOPA will not help prevent piracy. The program, implemented as a Firefox extension, simply contacts offshore domain name resolution services to obtain the IP address for any desired website I thought a major part of SOPA will be censoring sites, not just removing them from DNS. So even if you can resolve them offshore, they are going to be censored versions of the sites you know and love.
- thebigshane 15y agoSOPA (officially) only addresses foreign sites. So they order removal from DNS servers and interrupt advertising or other funding processes from US based companies. But the ability to change the content on a server that is hosted in another country (I believe, IANAL) is beyond their capability. Someone please correct me if I'm wrong. Also, the issue between domestic and foreign sites is still a bit vague in regards to SOPA. Supporters claim it only addresses foreign sites but most opponents claim (I think) that domestic sites can also be affected.
- josephmosby 15y agoThis is accurate, and a big reason why the EU officially passed a resolution against U.S. domain seizures. All SOPA can do without infringing upon another country's sovereignty would be to remove the DNS entry on the U.S. servers that ties back to a foreign server, but they can't impact the foreign content itself without violating world law. The EU resolution strengthens that by saying that if the U.S. had hoped they'd be able to censor foreign content, the EU isn't going to just casually allow that to happen.
- grecy 15y agoSo for "infringing" sites hosted in the US (or on .com, .net, .org) What can SOPA do?
- thebigshane 15y agoI would like to know as well but I think they are relying on the existing DMCA, which I think have similar provisions: domain seizures but no server manipulation.
- nostromo 15y agoStartup idea: $2 a month DNS servers based in Vancouver, Toronto, The Bahamas, and Tijuana.
- brettnak 15y agoI would pay for one based out of Vancouver.
- telemekus 15y agoWont SOPA take the Mozilla site offline for something like this?
- ryusage 15y agoHonestly, I've never really understood networking in great depth, so this may be a dumb question, but isn't bypassing SOPA as easy as specifying a new DNS server for your network connection?
- EwanG 15y agoSo any chance of someone developing a similar addon for Chrome and IE? Not that I am suggesting I would use such a thing (lest I be marked by the lovely NSA filter that I'm sure monitors this site among others)...
- four 15y agoI love this approach!: SOPA? DeSOPA, MF! Yes, run circles around these idiots. Tamer, you also do a great job of explaining in passionately clear, objective terms, the SOPA agenda, the weaknesses of its assuptions and it's dire consequences. However, I strongly take issue with your own assumptions about the value of today's internet services. More » http://caspiandesign.com/2011/12/21/desopa-great-ff-extension-bad-dogma/ http://caspiandesign.com/2011/12/21/desopa-great-ff-extensio...
- vlod 15y agoCan anyone elaborate if SOPA will have the power to take down ALL TLDs or only certain ones. i.e do they only control .com, .net and .org? Wondering if moving to another non US controlled TLD would work. e.g piratebay.org would also have piratebay.ly which everyone would go to if SOPA took down their .org site
- pcvarmint 15y agoI don't see how DeSopa can work if ICE seizes domains. As soon as a US-based domain is seized, it will propagate to foreign DNS servers as well. So merely using DNS servers outside the US won't help. DeSopa might help against local ISPs who engage in censoring certain domains on their nameservers, something the SOPA legislation might mandate, but it won't help if the domains are seized. Better would be some kind of P2P DNS system proposed by Peter Sunde of Pirate Bay -- a decentralized replacement for ICANN and DNS.
- seanp2k2 15y agoThis is also on Github: https://github.com/TamerRizk/desopa https://github.com/TamerRizk/desopa