If I write an Ebook that contains information on how to do something illegal, such as how to rip or post copywrited videos, would selling the ebook be illegal in anyway? As well, if I wrote a piece of software that could perform something illegal, would sale of that software be illegal? What would be considered illegal? Is autoposting and e-mail harvesting software illegal? Could something be written in the ebook, or a TOC added to the software which would make the sale legal somehow?