Recent Posts

OSX

play_postgres

Play Framework 2.2 and Postgres 9.3.1 java.sql.SQLException: No suitable driver found

Environment

OSX: 10.9
Postgres: 9.3.1
Scala: 2.10.3
PlayFramework: 2.2
Java: 1.7.0_25

build.sbt

...
 
libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "org.postgresql" % "postgresql" % "9.2-1003-jdbc4"
)
 
...

application.conf

...
 
db.default.driver=org.postgresql.Driver
db.default.url="jdbc:postgresql://localhost/YOURDATABASENAMEHERE"
 
...

 

Stop/Start your play application and you should be good to go.

How to: Configure Burp and Chrome for HTTPS (SSL) packet inspection and web site debugging on Mac OSX

Use Case

You are troubleshooting a web application and want to see the data being sent. You think you can’t because it is encrypted with SSL. You totally can bro/bro-dette. You to-tal-ly can.

Download BURP (the free edition is fine)

http://www.portswigger.net/burp/download.html

Using Chrome, install zx2c4’s quick and dirty proxy flipper

https://chrome.google.com/webstore/detail/quick-dirty-proxy-flipper/lbhdjpmomigdcfkidmimojhnoacaffcg?hl=en

Run Burp

When you run the Burp jar file, it will launch the gui along with a proxy running on port 8080. It will also create its own self signed certificate. Obviously this certificate has not been signed by any actual authority and will create issues for you. We are going to bypass this problem by essentially telling OSX to “TRUST” this self signed certificate.

burp_image_1

Enable Quick And Dirty Proxy Flipper

 

Select the http://localhost:8080 radio button

quick_and_dirty_proxy_2

Access google.com

With Burp running, access google.com using Chrome. You should get the following screen.

security_certificate_not_trusted_3

 

WTH?

Let me explain what is happening. You are using chrome to access the web site google.com. Because you enabled zx2c4‘s quick and dirty proxy flipper. The chrome extension is proxying the request through Burp. Burp is then using its self signed certificate to encrypt the data. At this point, your chrome browser is freaking out because it doesn’t know who the heck you are. It thinks you are a regular old l33t h@x0r or something. Here is how to fix it.

Click the lock icon with the red (x)

 

click_lock_with_red_x_4

 

Click the “certificate information” link

Click_certificate_information_5

Click on the PortSwigger CA line

6

Click and Drag the Gold Certificate icon to your desktop

7

(Image of certificate on your desktop)

8

 

Double click on the .cer file that you dragged to your desktop, this will open a popup window, make sure that “system” is set in the dropdown, then click the add button

9

Type in your System password (you may have to do this several times)

10

 

Click “Always Trust” (you may have to enter your system level password)

11

You should see the following line in the Keychain Access application. The blue plus denotes that you select to “Trust” the certificate.

12

Close Chrome, Open Chrome, Try accessing Google.com again, Success

14

Now if you go back to Burp, you can click on the Proxy->History tab and see the traffic

 

15

Happy Sniffing!!!

jared

How To: Install The HomeBrew Package Management Utility Locally On Mac OSX

Posted on August 29, 2011

I was tired of having to compile my shiz by hand and not being a fan of Macports, I decided to give HomeBrew a try. Not knowing if I would like it, I wanted to install it locally in my home directory so that I could blow it away should it upset me.

Here are the steps I used to make it happen.

Assuming that you have git and all other dependancies (Intel CPU 2, OS X 10.5 or higher, Xcode with X11 3, Java Developer Update 4) installed.

jared@localhost$ cd
jared@localhost$ git clone https://github.com/mxcl/homebrew.git
jared@localhost$ vi ~/.bash_profile

Add the following line then :wq

export PATH=$HOME/homebrew/bin:$PATH

Open a new shell session and type brew.

jared@localhost$ brew
Example usage:
  brew install FORMULA...
  brew uninstall FORMULA...
  brew search [foo]
  brew list [FORMULA...]
  brew update
  brew upgrade [FORMULA...]
  brew [info | home] [FORMULA...]
 
Troubleshooting:
  brew doctor
  brew install -vd FORMULA
  brew [--env | --config]
 
Brewing:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]
  open https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
 
Further help:
  man brew
  brew home

You are all set!

 

 

Macifier.com – FREE Mac App That Locks Your Keyboard And Mouse

Macifier - Pacifying Your Keyboard And Mouse

My daughter Gracie was routinely disabling our family laptop while she skyped with her Grandparents. So I wrote a small Macintosh application that locks the keyboard and mouse. After showing the initial app to my buddy Mike Brisk, he created an awesome logo.

Head over to http://macifier.com and download it for free.