1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-30 22:19:17 +02:00

Land , fix java meterpreter shell stderr output

This commit is contained in:
Brent Cook 2020-05-20 22:44:00 -05:00
commit b70d38ab9f
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96

@ -11,10 +11,10 @@ import java.io.OutputStream;
*/
public class Channel {
public final Meterpreter meterpreter;
private final InputStream in;
private final OutputStream out;
private final int id;
protected final Meterpreter meterpreter;
protected boolean active = false, closed = false, waiting = false;
protected byte[] toRead;
@ -126,7 +126,7 @@ public class Channel {
*
* @param data The new data available, or <code>null</code> if EOF has been reached.
*/
protected synchronized void handleInteract(byte[] data) throws IOException, InterruptedException {
public synchronized void handleInteract(byte[] data) throws IOException, InterruptedException {
while (waiting) {
wait();
}