Check out https://gnunet.org/
It works well for file sharing as well. Don't know about copyrighted material though, have only shared my own files.
It works well for file sharing as well. Don't know about copyrighted material though, have only shared my own files.