A hacker has claimed responsibility for a hit on the Amazon website that saw adult-themed books lose their sales ranks over the weekend.