Skip to main content

How To: Fix ShellShock on All Versions of OS X

Apple's Willinglessness to Help Customers:

Apple has released security update to handle ShellShock for three major OS versions that are most stable. They are 10.7.5, 10.8.5 and 10.9.5. This means if you are running any other version, Apple is not intereseted to help you.
Well, if you are an optimist, you can say Apple wants you to upgrade your OS to one of the most reliable updates for Lion, Mountain Lion or Mavericks.

The problem here is that there are thousands of users who dont have those versions. Also, there are few developer's and advance admins who are running 10.10, like I do how will they fix it?

Well, this post is dedicated to everyone who is running any other version apart from 10.7.5, 10.8.5 & 10.9.5. If you own one of these, you can refer to Apple link to download and install the tiny updates. It would not ask you to reboot the Mac.

https://support.apple.com/kb/DL1769 - Mavericks (10.9.5 and above)
https://support.apple.com/kb/DL1768 - Mountain Lion (10.8.5)
https://support.apple.com/kb/DL1767 - Lion (10.7.5)

So lets start being geeks and fix all the Macs that Apple did not bother to:

$ mkdir ShellShockFixer
#Make a directory where we will build the latest bash
$ cd ShellShockFixer
$ curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf -
$ cd bash-92/bash-3.2
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 | patch -p0

#Now, lets build it.
$ cd ..
$ xcodebuild

#You cant do it without xcode
$ build/Release/bash --version # GNU bash, version 3.2.55(1)-release
#Now, copy old bash to other location to make it useless.
$ sudo cp /bin/bash /bin/bash.old
#Lets copy the newly built bash to original location to make it active.
$ sudo cp build/Release/bash /bin

That's it! You are done. You can check the version of bash by following command:

$ bash --version


Comments

Popular posts from this blog

MAKING A FILE/FOLDER INVISIBLE

How to hide a file/folder using Terminal This is one of the greatest technique that I ever came across, I had to share my Mac in office and was curious about hiding confidential data. This was when I started exploring and finally came up with this solution. These commands are to be typed in Terminal. To make a file or folder invisible in Mac OS X Finder setfile -a V testfile.txt Here is goes, the file or folder is no longer visible via the Finder GUI, though it will be by Terminal. Your files are still there and you can find them via the command line and will show with an ls command. If you want your files and folders to be visible again, use this command: To make a file or folder visible again in Mac OS X Finder setfile -a v testfile.txt Now the file/folder will be visible again to the Finder, cool isn't it? Please Note: setfile is a command line utility included in Apple’s Developer Tools, which is a highly recommended optional install included on any Mac OS X install...

ENTOURAGE TROUBLESHOOTING: CRASHES WHILE LAUNCHING - II

Entourage Crashing due to Fonts There are two fonts that are known to be one of the most popular reasons of Entourage crashing. The first one is Helvetica Fractions which is majorly responsible to cause problems, the second is Times Phonetic. In order to fix this issue, don't just disable these fonts in Font Book, but physically remove them from your system and try to launch Entourage again. Other discussed reasons are database , schedules and duplicate daemons .

An introduction to Mac OS X Server

Mac OS X server is combination of Power and Style. It derives power from its strong UNIX base and the style comes from well known Apple GUI. This combination makes Mac OS X Server one of the robust server available in present time. Mac OS X Server is built on a fully compliant UNIX foundation. This battle-tested core provides the stability, performance, and security that organizations require. And full UNIX conformance ensures compatibility with existing server and application software. Mac OS X Server is the ideal platform for deploying groundbreaking enterprise applications and services. The kernel in Mac OS X Server provides superior thread management and affinity algorithms for efficient handling of multithreaded applications on the latest generation of Intel multicore processors. It also provides precise control of real-time processing requirements, allowing a user-level thread — even an unprivileged one — to precisely specify its requirements for time-sensitive operations...