File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -121,18 +121,14 @@ def pkg_website(url: str) -> bytes:
121121 """
122122 data = format_data (url )
123123
124- len1 = len (data ) + 36
125- len2 = len1 - 13
126- siz1 = len1 .to_bytes (4 , "little" )
127- siz2 = len2 .to_bytes (4 , "little" )
128- siz2 = siz2 [1 :] + siz2 [0 :1 ]
129-
130124 head = (
131125 b"DMOC\x00 \x00 \x01 \x00 "
132- + siz1
133- + secrets .token_bytes (25 )
134- + siz2
135- + b"\x00 \x00 \x00 \x00 \x02 \x00 \x00 \x00 \x00 \x00 \x00 \x18 \x00 \x00 \x00 \x00 \x00 \x00 \x00 "
126+ + (len (data ) + 36 ).to_bytes (4 , "little" )
127+ + secrets .token_bytes (16 )
128+ + b" N\x00 \x00 \xc0 \xa8 \xe9 \x01 "
129+ + (len (data ) + 23 ).to_bytes (4 , "little" )
130+ + (len (data ) + 23 ).to_bytes (4 , "little" )
131+ + b"\x00 \x02 \x00 \x00 \x00 \x00 \x00 \x00 \x18 \x00 \x00 \x00 \x00 \x00 \x00 \x00 "
136132 )
137133
138134 return head + data + b"\x00 " * 4
You can’t perform that action at this time.
0 commit comments