()
| 1733 | |
| 1734 | |
| 1735 | def obfuscate_process_password(): |
| 1736 | process_title = setproctitle.getproctitle() |
| 1737 | if "://" in process_title: |
| 1738 | process_title = re.sub(r":(.*):(.*)@", r":\1:xxxx@", process_title) |
| 1739 | elif "=" in process_title: |
| 1740 | process_title = re.sub(r"password=(.+?)((\s[a-zA-Z]+=)|$)", r"password=xxxx\2", process_title) |
| 1741 | |
| 1742 | setproctitle.setproctitle(process_title) |
| 1743 | |
| 1744 | |
| 1745 | def has_meta_cmd(query): |
no outgoing calls