OSError: [Errno 2] No such file or directory using Popen

Viewed 23

I tried to use fuzzing tool 'Diane'

Here is my code 'run.py':

    log.info("Creating Lifter")
    self.lifter = Lifter(self.config['apk_path'], input_format="apk", android_sdk=self.config['android_sdk_platforms'])

and I defined 'apk_path' and 'android_sdk_platforms' in configuration file 'config_kasa.json':

"apk_path": "/media/diane/Code/kasa/com.tplink.kasa_android.apk",
"android_sdk_platforms": "/home/diane/Android/platform"

and I checked that the apk file is in that directory.

When run, $python run.py config_kasa.json

it returns:

  File "/home/diane/src/pysoot/pysoot/jython_wrapper.py", line 56, in _start_jython
    self.process = subprocess.Popen(map(str, args), stdout=pipe, stderr=pipe, close_fds=False, preexec_fn=pkiller)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

The code in that spot is self.process = subprocess.Popen(map(str, args), stdout=pipe, stderr=pipe, close_fds=False, preexec_fn=pkiller)

What should I do to fix this?

0 Answers
Related