'Disable anti-ptrace detection
Usage:
MYNAME
MYNAME del'

def unptrace(self, *arg):

    (action,) = normalize_argv(arg, 1)
    self.deactive('ptrace', action)
    if ((not action) and ('void' in peda.execute_redirect('p    $deactive_ptrace_bnum'))):
        msg("Try    to    patch    'ptrace'    via    syscall")
        peda.execute('catch    syscall    ptrace')
        peda.execute('set    $deactive_ptrace_bnum    =    $bpnum')
        tmpfd = tmpfile()
        (arch, bits) = peda.getarch()
        if ('i386' in arch):
            tmpfd.write('\n'.join(['commands    $bpnum', 'silent', 'if    (*(int*)($esp+4)    ==    0    ||    $ebx    ==    0)', '                set    $eax    =    0', 'end', 'continue', 'end']))
        if ('64' in arch):
            tmpfd.write('\n'.join(['commands    $bpnum', 'silent', 'if    ($rdi    ==    0)', '                set    $rax    =    0', 'end', 'continue', 'end']))
        tmpfd.flush()
        peda.execute(('source    %s' % tmpfd.name))
        tmpfd.close()
        out = peda.execute_redirect('info    breakpoints    $deactive_ptrace_bnum')
        if out:
            msg("'ptrace'    deactivated")
            msg(out)
    return
