import random #bussNo def random_word(use_range, min_len, max_len=None): chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" length = min_len if not use_range else random.randint(min_len, max_len) return ''.join(random.choice(chars) for _ in range(length))
# Example usage: random_str = random_word(False, 32) # 'e', 't' parameters from the original function. print(f"bussNo:{random_str}")
现在还剩下timestamp和random
Timestamp可以直接python生成
还剩下random
往回看
这里random的值为C519AE22F9684C5E84298AA67752B5B7
发现是S.data.value的值
这个S.data.value的值是由这个数据包的返回包得来
(这里我请求了另一个数据包,所以跟上面的不一样)
现在可以得出random的python算法
import random #bussNo def random_word(use_range, min_len, max_len=None): chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" length = min_len if not use_range else random.randint(min_len, max_len) return ''.join(random.choice(chars) for _ in range(length))
# Example usage: random_str = random_word(False, 32) # 'e', 't' parameters from the original function. print(f"bussNo:{random_str}")
import random #bussNo def random_word(use_range, min_len, max_len=None): chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" length = min_len if not use_range else random.randint(min_len, max_len) return ''.join(random.choice(chars) for _ in range(length))
# Example usage: random_str = random_word(False, 32) # 'e', 't' parameters from the original function. print(f"bussNo:{random_str}")