Here they show how they hijack few pages on Google and Rank dup content on top of Original
Source
Source
PHP Code:
http://searchengineland.com/hijacking-google-search-results-without-hacking-139655