Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

FileNotFoundError #5

@naweiss

Description

@naweiss

Trying to run 32bit elf on 64bit ubuntu, gives you the following erroe:

[x] Starting program './program'
[-] Starting program './program': Failed
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/naweiss2/.local/lib/python3.5/site-packages/pwnlib/tubes/process.py", line 284, in __init__
    preexec_fn=self._preexec_fn)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: './program'

Used multiple ways, for example:

from pwn import *
context.update(arch='i386',bits='32')
p = process('./program')
p.interactive()

Note: using qemu-i386 ./program manualy works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions