mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-02 11:36:22 +01:00
minor tweak
This commit is contained in:
parent
2f14c37ef7
commit
0f2d9aca95
@ -1,14 +1,13 @@
|
||||
package com.metasploit.meterpreter.stdapi;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.ProcessChannel;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class stdapi_sys_process_execute implements Command {
|
||||
|
||||
private static final int PROCESS_EXECUTE_FLAG_CHANNELIZED = (1 << 1);
|
||||
@ -37,7 +36,7 @@ public class stdapi_sys_process_execute implements Command {
|
||||
synchronized (stdapi_sys_process_execute.class) {
|
||||
pid++;
|
||||
response.add(TLVType.TLV_TYPE_PID, pid);
|
||||
response.add(TLVType.TLV_TYPE_PROCESS_HANDLE, new Long(pid));
|
||||
response.add(TLVType.TLV_TYPE_PROCESS_HANDLE, (long)pid);
|
||||
}
|
||||
response.add(TLVType.TLV_TYPE_CHANNEL_ID, channel.getID());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user