shadows only, in cycles?

I was wandering if there was any way to achieve a shadows only material in cycles like this.


Attachments