Is putting a warning enough to make your hacking software legal?
<p>I never wrote a license or a readme for a program.
This is my readme.txt inside the folder of the program that gets downloaded :</p>
<blockquote>
<p>ATTENTION: HACKING IS ILLEGAL USE THIS AT YOUR OWN GMAIL ACCOUNTS  THE PROGRAM DEVELOPER IS NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THE PROGRAM</p>
<p>contact program Developer at example@gmail.com .</p>
<p>ENJOY !</p>
</blockquote>
<p>My program does illegal stuff but it can be used on yourself without inflicting any damage to others, I saw many other programs that can be used for illegal purposes but are published normally, for example: nmap, hydra and Jhon the ripper.</p>
<p>Is this enough to make it legal to publish? If not what should I do?</p>

<p>In many jurisdictions, it is possible to legally publish software which may aid in hacking. Consider the well-known <a href="https://owasp.org/www-project-webgoat/" rel="nofollow noreferrer">OWASP WebGoat</a>, a training program for computer security. If you consider yourself an ethical professional, take a look at the number of warnings they have peppered over their software, e.g. on the bottom of the linked page.</p>
<p>What is necessary in <em>your</em> jurisdiction depends on where you live, and you haven't disclosed that. In the worst case, &quot;exporting&quot; it might violate <a href="https://en.wikipedia.org/wiki/Export_of_cryptography_from_the_United_States#Current_status" rel="nofollow noreferrer">arms control legislation</a>.</p>

copyright software licensing