Summary
I want to use the frida module to call the JavaScript API interface to get the variable value and display the result through st.write().But âThread âDummy-8â: missing ScriptRunContextâ
Steps to reproduce
Code snippet:
jsCode = """"""
def on_message(message, data):
#print(message['payload'])
if message['type'] == 'send':
st.write(("[*] {0}".format(message['payload'])))
else:
st.write((message))
process = st.text_input("process_name")
if(process):
device = frida.get_usb_device()
pid = device.spawn([process])
process = device.attach(pid)
script = process.create_script(jsCode)
script.on('message', on_message)
script.load()
device.resume(pid)
sys.stdin.read()
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
I tried the method on GitHub but it didnât work, hope it can be solved.Improve "missing ReportContext" threading error ¡ Issue #1326 ¡ streamlit/streamlit ¡ GitHub
Explain what you expect to happen when you run the code above.
If possible, please provide the solution code.Successfully printed via st.write().
Explain the undesired behavior or error you see when you run the code above.
Thread âDummy-7â: missing ScriptRunContext
Debug info
- Streamlit version: Streamlit, version 1.20.0
- Python version: Python 3.8.10
- Frida version:15.1.0
Requirements file
Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.
Links
- Link to your GitHub repo:
- Link to your deployed app:
Additional information
If needed, add any other context about the problem here.