Showing posts with label mac os. Show all posts
Showing posts with label mac os. Show all posts

Friday, April 11, 2014

Patching OpenSSL for the Heartbleed Vulnerability CVE-2014-0160 in Mac OS X and Ubuntu / CentOS / Fedora

From 7th April we should update our OpennSSL version. Why? Security reasons. An OppenSSL vulnerability was disclosed which has been called one of the worst security holes in the last years. Let's do it!

OSX with MacPorts

To know your current version type: openssl version -a

myMac:~ Myself$ openssl version -a
OpenSSL 1.0.1f 6 Jan 2014

Opps, I have a bug in my system. It's time to update and upgrade the OpenSSL:
$ sudo port selfupdate
$ sudo port upgrade oppenssl
MyMac:~ Myself$ sudo port upgrade openssl 
--->  Computing dependencies for openssl
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-1.0.1g_0.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/openssl
--->  Attempting to fetch openssl-1.0.1g_0.darwin_13.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/macports/packages/openssl
--->  Installing openssl @1.0.1g_0
--->  Cleaning openssl
--->  Computing dependencies for openssl
--->  Deactivating openssl @1.0.1f_0
--->  Cleaning openssl
--->  Activating openssl @1.0.1g_0
--->  Cleaning openssl
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%

--->  No broken files found.

Now we can check again our version to be sure that we have an updated openssl version:

MyMac:~ Myself$ openssl version -a
OpenSSL 1.0.1g 7 Apr 2014

Ubuntu:

$ sudo apt-get update
$ sudo apt-get upgrade
$ openssl version -a

CentOS/Fedora

$ sudo yum -y install openssl
$ openssl version -a

Hope help!

Saturday, April 20, 2013

How to change the MAC Address for Mac OS X Mountain Lion

Creating a random MAC Address
A MAC address is always in the format xx:xx:xx:xx:xx:xx. If you want to generate randomly a new MAC Address you can use the following command using openssl:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'

Setting up the new MAC

In Mac OS X the network interface usually is en0 or en1.  The command for changing the MAC address is as follows:
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
replacing “xx:xx:xx:xx:xx:xx” with the new MAC address. For example:
sudo ifconfig en0 ether 36:81:51:8e:f1:76

Hope help