Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Greenpois0n Source Code: Was It Released?

· 7 min read · Home Tech

In this article
  1. Background: What Was Greenpois0n?
  2. How Greenpois0n Worked
  3. The Source Code Release
  4. Why Did They Release It?
  5. Common Problems and Misconceptions
  6. Comparing Greenpois0n to Other Jailbreaks
  7. Safety and Legality Considerations
  8. Frequently Asked Questions

Yes, the source code for Greenpois0n was made available. The Chronic Dev Team released the source code for their Greenpois0n jailbreak tool in October 2010, shortly after the tool's public release. This move was part of a broader tradition in the iOS jailbreak community of sharing code, allowing other developers to study, learn from, and build upon the exploit techniques used.

Background: What Was Greenpois0n?

Greenpois0n was a jailbreak utility developed by the Chronic Dev Team, a group of iOS security researchers and developers. It was released in October 2010, targeting iOS 4.0 and later versions on iPhone, iPod touch, and iPad devices. At the time, Apple's iOS was far more locked down than it is today, and jailbreaking was the primary way users could install software outside the official App Store, customize their device's appearance, and unlock carrier restrictions.

The tool gained rapid popularity because it was one of the first reliable jailbreaks for iOS 4.0.1 and 4.0.2, especially for the iPhone 4 and the newly released iPad. Its release came amid a competitive landscape where other jailbreak teams, like the iPhone Dev Team with their redsn0w tool, were also releasing similar software. Greenpois0n stood out for its ease of use—it was a one-click solution that ran on Windows, Mac, and Linux, which was relatively uncommon at the time.

How Greenpois0n Worked

Greenpois0n relied on a userland exploit, meaning it took advantage of a vulnerability in iOS that could be triggered without modifying the device's boot process. The specific exploit used was a patched version of a vulnerability known as SHAtter, which had been discovered earlier by pod2g, a prominent iOS security researcher. The SHAtter exploit worked by abusing a flaw in the way iOS handled certain USB communications, allowing the jailbreak tool to gain elevated privileges and inject its own code into the system.

Once executed, Greenpois0n installed Cydia, the unofficial app store for jailbroken devices, and replaced the system's launch daemons with patched versions that would allow unsigned code to run. The entire process took about a minute and did not require the user to put the device into a special recovery mode—the tool handled everything automatically.

The Source Code Release

The Chronic Dev Team announced the source code release on their official blog on October 12, 2010, just days after Greenpois0n's public launch. The code was published on GitHub, a popular code-hosting platform, under an open-source license. This meant anyone could download, modify, and redistribute the code, as long as they credited the original authors.

The release included the full source for the jailbreak tool, including the exploit code, the user interface, and the underlying libraries. The team stated that they were releasing the code to "give back to the community" and to help other developers understand the technical details of the jailbreak process. This was not an unusual move—many jailbreak tools, including redsn0w and Absinthe, were also open-sourced—but it was significant because Greenpois0n was one of the most widely used jailbreaks at the time.

Why Did They Release It?

There were several motivations behind the source code release. First, the jailbreak community had a strong culture of collaboration and knowledge sharing. By releasing the code, the Chronic Dev Team allowed other developers to learn from their work and potentially improve upon it. Second, open-sourcing the tool provided a level of transparency—users could inspect the code to ensure it did not contain malicious components, which was a common concern with proprietary jailbreaks. Third, the release served as a form of insurance: if the team disbanded or moved on, the community could continue maintaining the tool.

However, there was also a practical reason. Apple frequently patched vulnerabilities in iOS updates, making jailbreaks obsolete. By releasing the source code, other developers could quickly adapt the exploit to work on newer iOS versions, extending the life of the jailbreak. This was evident when the iPhone Dev Team used parts of Greenpois0n's code in their own tools.

Common Problems and Misconceptions

One common misconception is that Greenpois0n's source code release made it easier for malicious actors to create malware. While it is true that the code revealed the exploit details, those details were already being reverse-engineered by security researchers and Apple itself. In fact, Apple patched the SHAtter vulnerability in iOS 4.1, which was released before Greenpois0n even launched. The source code release did not introduce new risks; it simply made the existing knowledge public.

Another issue users encountered was that the source code alone was not enough to build a working jailbreak. The code relied on specific iOS versions and device models, and compiling it required a development environment that was not well-documented. So, while the code was available, it was not a simple "download and compile" project for most users. This led to some frustration among hobbyists who expected a turnkey solution.

Comparing Greenpois0n to Other Jailbreaks

Greenpois0n was often compared to redsn0w, the jailbreak tool from the iPhone Dev Team. Both tools achieved the same result—jailbreaking iOS 4 devices—but they used different approaches. Redsn0w was a more manual tool that required users to put their device into DFU (Device Firmware Upgrade) mode and then follow a series of steps. Greenpois0n, on the other hand, was fully automated and required no user intervention beyond plugging in the device.

In terms of reliability, Greenpois0n was generally considered more stable, but it had a notable drawback: it did not support the iPhone 3GS with the new bootrom (the hardware that initializes the device). Redsn0w did support that model because it used a different exploit that worked on both old and new bootroms. This limitation was a significant factor for users with older devices.

Safety and Legality Considerations

Jailbreaking has always been a legally gray area. In the United States, the Digital Millennium Copyright Act (DMCA) includes exemptions that allow jailbreaking for the purpose of interoperability, but these exemptions are periodically reviewed and can expire. During Greenpois0n's heyday, the legality of jailbreaking was contested, but it was generally tolerated by Apple, which did not actively pursue legal action against individual users.

From a safety perspective, jailbreaking any device carries risks. It can void the manufacturer's warranty, and it exposes the device to potential security vulnerabilities if the user installs malicious software from unofficial sources. Greenpois0n itself was safe—it was widely used and did not contain any known malware—but the same cannot be said for all the tweaks and apps available through Cydia. Users were advised to only install software from trusted repositories.

Frequently Asked Questions

Is Greenpois0n still usable today?

No. Greenpois0n was designed for iOS 4.0 to 4.0.2, which is over a decade old. Modern iOS devices and versions are completely different, and the vulnerabilities used by Greenpois0n have long been patched. Attempting to use Greenpois0n on a modern device would not work and could potentially damage the software.

Where can I find the Greenpois0n source code?

The source code was originally published on GitHub. While the original repository may no longer be actively maintained, archived copies can still be found by searching for "greenpois0n" on GitHub or other code-sharing platforms. Some developers have forked the code for historical purposes.

Did Greenpois0n work on all iOS 4 devices?

No. Greenpois0n supported the iPhone 4, iPhone 3GS (with the old bootrom), iPod touch (3rd and 4th generation), and iPad (1st generation). It did not support the iPhone 3GS with the new bootrom, nor the iPad 2, which was released later and required a different jailbreak.

What is the difference between a userland exploit and a bootrom exploit?

A userland exploit takes advantage of a vulnerability in the operating system while it is running, whereas a bootrom exploit targets a flaw in the device's hardware boot process. Bootrom exploits are more powerful because they cannot be patched with a software update—only a hardware revision can fix them. Greenpois0n used a userland exploit, which is why Apple could patch it with iOS 4.1.

Did the source code release lead to other jailbreaks?

Yes, indirectly. The release allowed other developers to study the exploit and integrate it into their own tools. For example, the iPhone Dev Team used parts of Greenpois0n's code in redsn0w to add support for devices that Greenpois0n did not support. This collaborative sharing was a hallmark of the jailbreak community in that era.

Is it legal to use Greenpois0n today?

Even if you had a compatible device, using Greenpois0n would likely violate Apple's terms of service, and the legal status of jailbreaking has changed over time. In the U.S., the Library of Congress has periodically renewed exemptions for jailbreaking smartphones, but these exemptions are narrow and do not cover all uses. For most users, jailbreaking an old device for nostalgic purposes is not a legal concern, but it is not officially sanctioned.