MCPcopy Create free account
hub / github.com/decodecaptcha/Browser-Env / execjs_test

Function execjs_test

examples/example-v8env/example_execjs.py:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 js_code = f.read()
10
11def execjs_test():
12 key = '''
13 -----BEGIN PUBLIC KEY-----
14 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjb4V7EidX/ym28t2ybo0U6t0n
15 6p4ej8VjqKHg100va6jkNbNTrLQqMCQCAYtXMXXp2Fwkk6WR+12N9zknLjf+C9sx
16 /+l48mjUU8RqahiFD1XT/u2e0m2EN029OhCgkHx3Fc/KlFSIbak93EH/XlYis0w+
17 Xl69GV6klzgxW6d2xQIDAQAB
18 -----END PUBLIC KEY-----
19 '''
20 pwd = "123456"
21 ctx = execjs.compile(js_code)
22 password = ctx.call('test', key, "5ea852380104a6fd", pwd)
23 return password
24
25
26if __name__ == '__main__':

Callers 2

v8env_VS_execjs.pyFile · 0.90
example_execjs.pyFile · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected