Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/qilingframework/qiling
/ generate_key
Function
generate_key
examples/petya_8086_crack.py:21–22 ·
view source on GitHub ↗
(key: bytes)
Source
from the content-addressed store, hash-verified
19
accepted_chars =
"ABCDEFG123456789abcdefghijkmnopqrstuvwx"
20
21
def
generate_key(key: bytes):
22
return
b
""
.join([struct.pack(
"BB"
, (k + 0x7A)%256, k*2%256)
for
k in key])
23
24
def
stop(ql: Qiling, addr, data):
25
ql.emu_stop()
Callers
1
one_round
Function · 0.85
Calls
1
pack
Method · 0.45
Tested by
no test coverage detected