(url)
| 110 | return new_domains |
| 111 | |
| 112 | def obfs(url): |
| 113 | ret = '' |
| 114 | index = 0 |
| 115 | for c in url: |
| 116 | if c == '.' or ((index & 3) == 0 and index > 0): |
| 117 | last = ord(ret[-1]) |
| 118 | if last < 64: |
| 119 | ret = "%s\\%o" % (ret[:-1], last) |
| 120 | else: |
| 121 | ret = "%s\\x%x" % (ret[:-1], last) |
| 122 | ret += c |
| 123 | index += 1 |
| 124 | return ret |
| 125 | |
| 126 | def obfs_list(list_result): |
| 127 | ret = set() |
no outgoing calls
no test coverage detected