MCPcopy
hub / github.com/breakwa11/gfw_whitelist / obfs

Function obfs

list_black.py:112–124  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

110 return new_domains
111
112def 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
126def obfs_list(list_result):
127 ret = set()

Callers 2

obfs_listFunction · 0.70
get_all_listFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected