<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on Lantean</title><link>https://www.lantean.co/categories/security/</link><description>Recent content in Security on Lantean</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 11 Jan 2017 14:22:15 +0000</lastBuildDate><atom:link href="https://www.lantean.co/categories/security/index.xml" rel="self" type="application/rss+xml"/><item><title>GIT over Socks5: Or how to get around Paris's Mall SSL filters</title><link>https://www.lantean.co/posts/git-over-socks5-or-how-to-get-around-pariss-mall-ssl-filters/</link><pubDate>Wed, 11 Jan 2017 14:22:15 +0000</pubDate><guid>https://www.lantean.co/posts/git-over-socks5-or-how-to-get-around-pariss-mall-ssl-filters/</guid><description>&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-objc" data-lang="objc"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git config &lt;span style="color:#f92672"&gt;--&lt;/span&gt;global &lt;span style="color:#f92672"&gt;--&lt;/span&gt;get socks.proxy
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git config &lt;span style="color:#f92672"&gt;--&lt;/span&gt;global &lt;span style="color:#f92672"&gt;--&lt;/span&gt;unset socks.proxy
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git config &lt;span style="color:#f92672"&gt;--&lt;/span&gt;global socks.proxy socks5:&lt;span style="color:#f92672"&gt;//&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;127.0.0.1&lt;/span&gt;&lt;span style="color:#f92672"&gt;:&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;9050&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Removing SSL Private Key Passwords</title><link>https://www.lantean.co/posts/removing-ssl-private-key-passwords/</link><pubDate>Fri, 09 Sep 2016 10:16:09 +0000</pubDate><guid>https://www.lantean.co/posts/removing-ssl-private-key-passwords/</guid><description>&lt;p&gt;Yes. Again! For future self reference:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-objc" data-lang="objc"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;openssl rsa &lt;span style="color:#f92672"&gt;-&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;in&lt;/span&gt; encrypted.key &lt;span style="color:#f92672"&gt;-&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;out&lt;/span&gt; unencrypted.key&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Loading SecCertificateRef from PEM String</title><link>https://www.lantean.co/posts/loading-seccertificateref-from-pem-string/</link><pubDate>Mon, 07 Jul 2014 17:05:49 +0000</pubDate><guid>https://www.lantean.co/posts/loading-seccertificateref-from-pem-string/</guid><description>&lt;p&gt;In order to load a PEM certificate, you&amp;rsquo;d probably wanna grab the PEM itself from your backend, right?.&lt;/p&gt;
&lt;p&gt;You can do so, by means of this command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-objc" data-lang="objc"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;openssl s_client &lt;span style="color:#f92672"&gt;-&lt;/span&gt;showcerts &lt;span style="color:#f92672"&gt;-&lt;/span&gt;host host.com &lt;span style="color:#f92672"&gt;-&lt;/span&gt;port &lt;span style="color:#ae81ff"&gt;443&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once you&amp;rsquo;ve got the certificate, you should &lt;strong&gt;get rid of the Begin/End Certificate substrings&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Cocoa Snippet itself is quite easy:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-objc" data-lang="objc"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;NSData &lt;span style="color:#f92672"&gt;*&lt;/span&gt;rawCertificate &lt;span style="color:#f92672"&gt;=&lt;/span&gt; [[NSData alloc] initWithBase64Encoding:PlaintextCertificateString];
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;SecCertificateRef parsedCertificate &lt;span style="color:#f92672"&gt;=&lt;/span&gt; SecCertificateCreateWithData(NULL, (&lt;span style="color:#66d9ef"&gt;__bridge&lt;/span&gt; CFDataRef)rawCertificate);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That&amp;rsquo;s it. Don&amp;rsquo;t forget about checking expiration dates. Unfortunately, Apple&amp;rsquo;s API to do so is private, and i personally refuse to build OpenSSL into my app, just to check that.&lt;/p&gt;</description></item><item><title>Apple Got Hacked!?</title><link>https://www.lantean.co/posts/apple-got-hacked/</link><pubDate>Wed, 20 Feb 2013 11:16:39 +0000</pubDate><guid>https://www.lantean.co/posts/apple-got-hacked/</guid><description>&lt;p style="text-align: center;"&gt;&lt;a href="https://www.lantean.co/wp-content/uploads/2013/02/apple-hacked.jpg"&gt;&lt;img class="size-thumbnail wp-image-1165 alignleft" alt="apple-hacked" src="https://www.lantean.co/wp-content/uploads/2013/02/apple-hacked.jpg" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In a recent press release, Apple announced that a small group of computers in their network got hacked. You might be wondering&amp;hellip; how in the hell this happened?.&lt;/p&gt;
&lt;p&gt;The answer is pretty simple. Java Virtual Machine has been found to ve &lt;strong&gt;very&lt;/strong&gt; insecure. Several zero-day exploits have been uncovered, and long short story, if you&amp;rsquo;ve got Java VM installed in your machine, i suggest you disable it. As soon as possible!.&lt;/p&gt;</description></item><item><title>Howto Uninstall Flash Player from a Mac</title><link>https://www.lantean.co/posts/howto-uninstall-flash-player-from-a-mac/</link><pubDate>Mon, 18 Feb 2013 09:26:28 +0000</pubDate><guid>https://www.lantean.co/posts/howto-uninstall-flash-player-from-a-mac/</guid><description>&lt;p&gt;If you&amp;rsquo;re reading this post, you&amp;rsquo;re probably aware of the dangers of Flash Player. And you&amp;rsquo;ve read, most probably, about the last couple of viruses / penetrations to Facebook and Google.&lt;/p&gt;
&lt;p&gt;Steve Jobs hated Adobe Flash&amp;hellip;  personally, i say he had a very good reason. If wasn&amp;rsquo;t, probably, just because Adobe refused (at first) to publish its suite for Mac. He knew that it was troublesome&amp;hellip; so&amp;hellip; let&amp;rsquo;s proceed removing that junk from our system!.&lt;/p&gt;</description></item><item><title>Dropbox Two Step Authentication</title><link>https://www.lantean.co/posts/dropbox-two-step-authentication/</link><pubDate>Sat, 09 Feb 2013 10:44:53 +0000</pubDate><guid>https://www.lantean.co/posts/dropbox-two-step-authentication/</guid><description>&lt;p&gt;&lt;a href="https://www.lantean.co/wp-content/uploads/2013/02/two-step-authentication.jpg"&gt;&lt;img class="alignleft size-thumbnail wp-image-860" title="Dropbox Two Step Authentication" alt="Dropbox Two Step Authentication" src="https://www.lantean.co/wp-content/uploads/2013/02/two-step-authentication.jpg" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have you ever heard about keyloggers?. Just in case you haven&amp;rsquo;t&amp;hellip; keyloggers are a super simple piece of technology. They are software applications that can be installed in almost every PC / Mac, and they simply save every keystroke.&lt;/p&gt;
&lt;p&gt;They&amp;rsquo;re invisible to the user. So&amp;hellip; they just know everything you type. Including passwords. Keyloggers generate a logfile, which can be (in some cases) sent via email to the guy who is spying on you&amp;hellip; and in other cases, they just generate a textfile somewhere in the system&amp;hellip; which will eventually be downloaded, and your whole security exposed.&lt;/p&gt;</description></item><item><title>New iPhone Jailbreak!</title><link>https://www.lantean.co/posts/new-iphone-jailbreak/</link><pubDate>Sun, 27 Jan 2013 11:26:43 +0000</pubDate><guid>https://www.lantean.co/posts/new-iphone-jailbreak/</guid><description>&lt;p&gt;&lt;a href="https://www.lantean.co/wp-content/uploads/2013/01/iphone-jailbreak.jpg"&gt;&lt;img class="aligncenter size-full wp-image-760" alt="iphone-jailbreak" src="https://www.lantean.co/wp-content/uploads/2013/01/iphone-jailbreak.jpg" width="600" height="512" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Today, a new iPhone Jailbreak solution, has been announced to be already on its way. iOS 6.0 and 6.1 beta 4 have been both jailbroken, and the team is waiting for iOS 6.1 final release to launch the goodies!.&lt;/p&gt;
&lt;p&gt;If you have a previous iOS version, and you still wanna jailbreak your device, you should head to &lt;a href="http://www.jailbreakmatrix.com/" rel="nofollow"&gt;this&lt;/a&gt; site. They have a nice archive of every JB solution that got released.&lt;/p&gt;</description></item><item><title>Do Macs need Antivirus?. Yeah, they do!</title><link>https://www.lantean.co/posts/antivirus-for-mac/</link><pubDate>Wed, 23 Jan 2013 23:53:26 +0000</pubDate><guid>https://www.lantean.co/posts/antivirus-for-mac/</guid><description>&lt;p&gt;&lt;img class="alignleft size-medium wp-image-681" style="margin-left: 5px; margin-right: 5px;" alt="MacbookPro" src="https://www.lantean.co/wp-content/uploads/2013/01/MacbookPro.jpg" width="149" height="110" /&gt;So&amp;hellip; you own an iMac.. maybe a Macbook Pro, or maybe you&amp;rsquo;re one of the lucky owners of a Mac Pro. You&amp;rsquo;ve been watching ads for the last ten years&amp;hellip; you bought it all, and you feel safe just because it&amp;rsquo;s not a windows&amp;hellip; right?.&lt;/p&gt;
&lt;p&gt;Well&amp;hellip; things are not the way they were a couple years ago. As Apple gained more and more marketshare, virus developers turned their eyes on our belived OSX system. Since Java virtual machine has been found to be buggy&amp;hellip; several viruses that affected Mac have been caught in the wild.&lt;/p&gt;</description></item><item><title>Bruteforcing Http Auth on OSX</title><link>https://www.lantean.co/posts/bruteforcing-http-auth-on-osx/</link><pubDate>Tue, 22 Jan 2013 23:46:02 +0000</pubDate><guid>https://www.lantean.co/posts/bruteforcing-http-auth-on-osx/</guid><description>&lt;p&gt;&lt;a href="https://www.lantean.co/wp-content/uploads/2013/01/password-cracking.jpg"&gt;&lt;img class="alignleft size-thumbnail wp-image-690" style="margin: 10px;" title="Bruteforcing" alt="password-cracking" src="https://www.lantean.co/wp-content/uploads/2013/01/password-cracking.jpg" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Suppose you forgot the password of your router. What can you do?&amp;hellip;. should you just reset the device?.
Nahhhh&amp;hellip;. that&amp;rsquo;s boring. That&amp;rsquo;s why we&amp;rsquo;re gonna try to bruteforce http basic authentication.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;re assuming that you run some incarnation of OSX, and you have &lt;a title="Mac Ports" href="http://www.macports.org/" rel="nofollow"&gt;Mac Ports&lt;/a&gt; installed. Right?.
We&amp;rsquo;ll need to download hydra&amp;hellip; a bruteforce tool&amp;hellip; so&amp;hellip; fire up a terminal, and type the following:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-objc" data-lang="objc"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo port install hydra&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So far so good. Now, we&amp;rsquo;re gonna need to create our own password list. In order to do so, we&amp;rsquo;ll rely on crunch. It&amp;rsquo;s a nice shell tool, that builds on OSX as well. Download it &lt;a title="Crunch" href="http://sourceforge.net/projects/crunch-wordlist/files/" rel="nofollow"&gt;here&lt;/a&gt; first. If you get any troubles building it, try typing:&lt;/p&gt;</description></item><item><title>Setting OSX Firmware Password</title><link>https://www.lantean.co/posts/setting-osx-firmware-password/</link><pubDate>Fri, 18 Jan 2013 15:14:13 +0000</pubDate><guid>https://www.lantean.co/posts/setting-osx-firmware-password/</guid><description>&lt;p&gt;OSX is a strong and secure system. Until you realize there is a feature called &amp;lsquo;single user login&amp;rsquo;&amp;hellip; which virtually grants you ROOT access, provided that you have physical access to the target machine.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Boot the system.&lt;/li&gt;
&lt;li&gt;Press CMD + S.&lt;/li&gt;
&lt;li&gt;You should get a bash shell, with ROOT permissions.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That sucks, pretty much. There is just no single password screen. If you have the machine, you can access its files. How do we prevent this????.&lt;/p&gt;</description></item><item><title>Bruteforcing WEP Keys</title><link>https://www.lantean.co/posts/cracking-wep-keys/</link><pubDate>Sat, 26 May 2012 12:35:41 +0000</pubDate><guid>https://www.lantean.co/posts/cracking-wep-keys/</guid><description>&lt;p&gt;&lt;a href="https://www.lantean.co/wp-content/uploads/2012/05/Screen-Shot-2012-05-26-at-12.23.36-PM.png"&gt;&lt;img class="alignleft size-thumbnail wp-image-403" title="Screen Shot 2012-05-26 at 12.23.36 PM" alt="" src="https://www.lantean.co/wp-content/uploads/2012/05/Screen-Shot-2012-05-26-at-12.23.36-PM.png" width="150" height="139" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Today&amp;hellip; we&amp;rsquo;ll take a look at WEP key-breaking. We&amp;rsquo;ll use a linux live-cd distribution called &lt;a href="http://www.backtrack-linux.org/downloads/" rel="nofollow"&gt;backtrack&lt;/a&gt;. It&amp;rsquo;s a linux distribution bundled with a load of hacking / cracking tools. It&amp;rsquo;s free, and it&amp;rsquo;s pretty cool.&lt;/p&gt;
&lt;p&gt;So&amp;hellip; first step&amp;hellip; download and burn it!.
I&amp;rsquo;ll assume you know how to boot it and launch a bash terminal. Let&amp;rsquo;s begin from there.
We&amp;rsquo;re gonna use two command-line tools: airodump-ng and aircrack-ng. So&amp;hellip; let&amp;rsquo;s open a terminal, and type the following commands:&lt;/p&gt;</description></item><item><title>AES Encrypted Chat!</title><link>https://www.lantean.co/posts/aes-encrypted-chat/</link><pubDate>Sat, 21 Apr 2012 13:00:37 +0000</pubDate><guid>https://www.lantean.co/posts/aes-encrypted-chat/</guid><description>&lt;p&gt;Well, this time i'm not gonna share an HTML trick, library, or whatsoever. A friend of mine sent me a link... and i said... WOW... this is written in javascript alone?.&lt;/p&gt;
&lt;p&gt;It's a web-based, encrypted chat. Pretty amazing... there is no java applet anywhere to be seen. So... it's kind of a disposable, encrypted chat. If you wanna... have a secure communications channel, for whatever reason, you can give it a shot.!&lt;/p&gt;</description></item></channel></rss>