mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-18 07:11:12 +02:00
adjust offset where the useful bits are stored
This commit is contained in:
parent
167c2d380a
commit
cb70dde703
@ -48,9 +48,9 @@ public class Meterpreter {
|
|||||||
|
|
||||||
protected void loadConfiguration(DataInputStream in, OutputStream rawOut, byte[] configuration) throws MalformedURLException {
|
protected void loadConfiguration(DataInputStream in, OutputStream rawOut, byte[] configuration) throws MalformedURLException {
|
||||||
|
|
||||||
// socket handle is 4 bytes, followed by exit func, both of
|
// socket handle is 8 bytes, followed by exit func, both of
|
||||||
// which we ignore.
|
// which we ignore.
|
||||||
int csr = 8;
|
int csr = 12;
|
||||||
|
|
||||||
// We start with the expiry, which is a 32 bit int
|
// We start with the expiry, which is a 32 bit int
|
||||||
setExpiry(ConfigParser.unpack32(configuration, csr));
|
setExpiry(ConfigParser.unpack32(configuration, csr));
|
||||||
@ -83,7 +83,7 @@ public class Meterpreter {
|
|||||||
}
|
}
|
||||||
this.transports.add(t);
|
this.transports.add(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we don't currently support extensions, so when we reach the end of the
|
// we don't currently support extensions, so when we reach the end of the
|
||||||
// list of transports we just bomb out.
|
// list of transports we just bomb out.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user