We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when starting "which env" stdout pipe has some problems.
reported by @danktx
logcat: http://pastebin.com/raw.php?i=EYshJmff
The text was updated successfully, but these errors were encountered:
in the same logcat the same command is started successfully.
there is 2 reason that can change a program behaviour:
due to #5 the system is running out of file descriptors, probably this is the reason why the child has it's stdout closed.
have to find a way to check pipes functionality before exec the target program.
Sorry, something went wrong.
2030137
problem was that: dSploitd redirects stdout and stdin to /dev/null for child that does not use it.
/dev/null
on certain cases the open("/dev/null", O_RDWR) returns a file descriptor less then 3. then we were using dup2(dev_null_fd, 1) redirect child stdout.
open("/dev/null", O_RDWR)
dup2(dev_null_fd, 1)
after that we close the dev_null_fd, but it's value is less then 3, so we are closing a previously duplicated fd.
dev_null_fd
i have to study another case: if pipe has the same number of the target fd.
tux-mind
No branches or pull requests
when starting "which env" stdout pipe has some problems.
reported by @danktx
logcat: http://pastebin.com/raw.php?i=EYshJmff
The text was updated successfully, but these errors were encountered: