execve EPERM with system syscall
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- operating-systems, reverse-engineering
Research direction
Run the supplied Python reproducer with ./testsystem and ./testrun, using ql.run() as the entry point. Trace Qiling's MIPS execve handling and the EPERM path; done means the child ./testrun executes under system() instead of failing with EPERM.
Written by the indexing model from the issue text.
Description
*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
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 798
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qilingframework/qiling
-
Difficulty 2/5 Half a day Newbie friendliness 82/100
qilingframework/qiling#1640 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
qilingframework/qiling#1628 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
qilingframework/qiling#1460 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
qilingframework/qiling#1458 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
qilingframework/qiling#1665 ·
All issues in qilingframework/qiling
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100