Saving friend by admitting
<p>So, I would like to know what laws are there regarding the following scenario. Suppose that I commit some crime which unintentionally frames my friend. Let us say that I hack something but using my friend's PC and his internet connection without his knowledge. Now he gets caught but I am feeling guilty. So is it possible for me to claim that I had committed the crime without his knowledge and hence take the punishment on myself? Note that I would have no proof to assert myself, just my claim.</p>
<ol>
<li>How would it vary if I am a relative instead of a friend?</li>
<li>How much would it depend on the country?</li>
</ol>

<h2>A confession is not conclusive evidence</h2>
<p>If all the evidence points to person A as the perpetrator and person B confesses unilaterally, person A is the one that’s going to be prosecuted. Because <a href="https://youtu.be/4SYc_flMnMQ" rel="nofollow noreferrer">I’m Brian of Nazareth</a>.</p>
<p>Person A could try to have person B’s confession admitted as evidence, but every prosecutor worth their salt should get it ruled as inadmissible as having no relevance to the case against A.</p>

witnesses