pyinjector icon indicating copy to clipboard operation
pyinjector copied to clipboard

Injector failed with -1 calling injector_inject: The target process unexpectedly stopped by signal 17.

Open jiakun02 opened this issue 1 year ago • 4 comments

step 1 image

step 2 image

jiakun02 avatar Jan 02 '25 11:01 jiakun02

Thank you, does this happen consistently?

kmaork avatar Jan 05 '25 20:01 kmaork

Thank you, does this happen consistently?

As long as the exit is executed, it will happen every time.

uname -a

Linux kali 6.11.2-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.11.2-1kali1 (2024-10-15) x86_64 GNU/Linux

jiakun02 avatar Jan 06 '25 02:01 jiakun02

What "exit"?

kmaork avatar Jan 06 '25 21:01 kmaork

What "exit"?

The exit I mentioned refers to a command. In the meterpreter session of metasploit, we can execute shell commands to obtain the interactive terminal of the target system, so that we can execute any command on the target system like a normal user. If you want to exit this interactive terminal, you need to execute the exit command. After execution, you will return to the meterpreter session. At this time, the control of the victim machine will not be lost. However, after using pyinjecter to inject malicious files, we can control the target machine normally and obtain the meterpreter session. We can also execute shell commands to enter the interactive terminal. However, when I execute the exit command to exit the interactive terminal, I directly lose the connection of the entire session. Under normal circumstances, it is necessary to fall back to the meterpreter session and the connection status will not be lost. image At the same time, pyinjector also reported an error, as shown below: image Maybe the signal generated by the exit command should be handled by the controlled target program. Maybe it shouldn't be you. There is nothing wrong with your program.

jiakun02 avatar Jan 07 '25 08:01 jiakun02