Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execve EPERM with system syscall #1451

Open
sele-nium opened this issue Feb 17, 2024 · 2 comments
Open

execve EPERM with system syscall #1451

sele-nium opened this issue Feb 17, 2024 · 2 comments

Comments

@sele-nium
Copy link

*Describe the bug
I have 2 elf MIPS LE, the main elf run the child with system.

#include <stdlib.h>
#include <stdio.h>

int main()
{
    printf("run system\n");
    system("./testrun");
    return 0;
}
#include <stdlib.h>
#include <stdio.h>

int main()
{
    printf("testrun\n");
    return 0;
}

child is never executed when I use qiling and I see the error execve (EPERM)

Sample Code

#!/usr/bin/env python3

from qiling import Qiling
from qiling.const import QL_VERBOSE, QL_INTERCEPT

if __name__ == "__main__":
    ql = Qiling([r'./testsystem'], r'./', verbose=QL_VERBOSE.DISASM)

    print(f"elf entry {ql.loader.elf_entry:04X}")
    ql.run()

Expected behavior
qiling should run the elf child

@elicn
Copy link
Member

elicn commented Feb 17, 2024

Could you please attach your logging output when set to QL_VERBOSE.DEBUG?
If it is too long, please attach it as a file.

@sele-nium
Copy link
Author

sorry for this lack but the output parameter no longer works, so I forgot to attach the file

output.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants