Browse Source

fix auth_chain_f

akkariiin/dev
Akkariiin 7 years ago
parent
commit
12cba3092e
  1. 2
      shadowsocks/obfsplugin/auth_chain.py

2
shadowsocks/obfsplugin/auth_chain.py

@ -897,7 +897,7 @@ class auth_chain_f(auth_chain_e):
# key xor with key_change_datetime_key # key xor with key_change_datetime_key
new_key = list(key) new_key = list(key)
for i in range(0, 8): for i in range(0, 8):
new_key[i] = ord(new_key[i]) ^ self.key_change_datetime_key_bytes[i] new_key[i] = chr(ord(new_key[i]) ^ self.key_change_datetime_key_bytes[i])
random.init_from_bin(new_key) random.init_from_bin(new_key)
# 补全数组长为12~24-1 # 补全数组长为12~24-1
list_len = random.next() % (8 + 16) + (4 + 8) list_len = random.next() % (8 + 16) + (4 + 8)

Loading…
Cancel
Save