dpnishant / appmon

Documentation:
http://dpnishant.github.io/appmon
Apache License 2.0
1.55k stars 275 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/merged.js' #101

Closed PeterParker369 closed 4 years ago

PeterParker369 commented 4 years ago

I'm executing: python appmon.py -a com.example.test --spawn 1 -p android -s scripts/Android -o d:/app_mon_dumps -r dump.db

It gives me an error:

Now Spawning com.example.test
[INFO] Attached to com.example.test
[ERROR] [Errno 2] No such file or directory: '/tmp/merged.js'
Traceback (most recent call last):
  File "appmon.py", line 361, in <module>
    script = session.create_script(generate_injection())
  File "appmon.py", line 194, in generate_injection
    with codecs.open(merge_scripts(script_path), 'r', 'utf-8') as f:
  File "appmon.py", line 143, in merge_scripts
    with codecs.open(merged_script_path, "w", "utf-8") as f:
  File "C:\Users\........................\Python37\lib\codecs.py", line 904, in open
    file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/merged.js'

I found same error at . It was solved by adding to PATH: merge_script_path = ‘C:/Users/<nombre_usuario>/AppData/Local/Temp/merged.js’

But it doesn't helped. Please help, what should I do?

PeterParker369 commented 4 years ago

Everything is works FINE! I'm stupid :)