2021-04-09 15:06:43
浏览数 (2)
1.gzip解密
代码语言:javascript
复制import binascii
import io
import gzip
import json
def gzip_decode(content): #二进制
print(content)
buf = io.BytesIO(content)
gf = gzip.GzipFile(fileobj=buf)
content = gf.read()
return content
print(json.loads(gzip_decode(binascii.a2b_hex('1F8B0800000000000000CD564D8FDB3610FD2B81CE964B521425F9B60D8A5E9A5C7A299006C488A4646225D11525673FB0D71E7AEBA5D700BDF4D453FF539BFC8B0C696FD64E779D6E812D0A1BB6480EC9F766E6CDE83A315B334CC9EAD57512FEF822990CC83829EDA0CD45B2228BA4730A3A39D9DEC8DE272B2A6851104EB29296D522513099D68D97C92A997B33B4091E022D8E7A37D8C98D38EEA0361DCE74300F6A8D13DE786FDD20ADC65955170D69044F5949CA9433026959353C2D8B52405E65A2561CF768BC2760C01D8C309A129E12F18C962B9AADF2120DF6B0F14876B37898103D41881172825063473FC91D89B8FB80DAC68C8DBC636C2E26B9856E46B4B4CAF227679C05C67A1E61C24B827D2E723478C807EC840F44959DF041E740CB1EECF08FB807184FCE3D3F15EDEC61A61511E5A3D217361B099D19A7A7C8E0EA885379F3FA76B8CD0EF5B917EC5E4AB27301F0064608D4AE93D16859836E8D1CE6BE36235A92C8205AF7665ABB0018CF30A3FC28C7DD7072B88223EBA5729DBE5D5E25345C31FBF58E6CF2484D91AAB839A4469F24210E72E0D645FED24B3FC134FB23176D9D55C66D3FFAE651E260541C91E1FF159943DDDD71F9BBE21F238020F52336E2FF1E1A7E824C55F02332C5D390797DABA6A8CACF96A97F03E19494EEEFD028D91AD4793BBA79C08BA67136B1217CAEE01CA1032A449E21266E04A213394B816722555A64B43175C3727D025D458A7BDF1F82C77A68AD92BBBAEABD0C857457B9D6067408F77528AEE72654E1BCA81B60851285C94B53E80A9B322B7586D66E63865947B09C50D39082D5501AAEAB00CCEB7389B9E3F77A58E6F829637EA97368831394EB97DE2F61D0A3B37A39B76A096F4CECE36A0DC310ABFC6461B85ACF4EEA4BE9DB9812D66F3AB894034457FEF9D32FEFDFFEF1D7DBDFDFFDF6E3FB5F7F4683C0E7EEE662C996A164EE67B0986ADC56302C7CC16B576EC021761E500ADD8F1BDED8C60676E1F96C872D0E0FCE144B12CF74C179166B14CA5A9B2DCA051BAF8EB85F9A8BD93F0B3560BF508F109221699D6B3B7337DFC33037A0A6798C42FBE6EBAF628718DA79E7A5ABD01246E35D37EF6B0B46585C50529203676833783B8580F57A63E3E9714286D18A979895BDC2D5E77C559DAD085B09FCC56F88A3EA2C66C83E92795E36C039A4A044967220595AE7A0534309AF1BAD81F140CADB56AEC1877E040604CDA1AE282134475D3445A6786178AE19E5428488C44E4359B9EF5C981BA857BA600BB12816E5A2C2A41C5D1FF20493372765A4DC19F0E8B7D97601588507361C242314739B0693791324253F8D2CE121C507DB187C3FBC27EC6A334BA86D803EF6069FD26D01785CBC497A335A08112479558B8268828EE0941551A061EDA099DF63627BF989D92B6437B8498EE6873940F266882A2391F4415ABD78F125ABBE8BDCDBDDCCF397A1EE5EDDE6FA99B7F0FD17DFA238DA35D8DD926B1A6FB08AB3B224044BAE6CCDB07B1D3E2806E8B29B0FE539E2A85F0C0000'))))
2.发/起请求
代码语言:javascript
复制import requests
requests.post(url,data=gzip.compress(bytes))