- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateSmbHeader (0.23 sec)
-
src/test/java/jcifs/util/ServerResponseValidatorTest.java
// SMB1 header validator.validateSmbHeader(0x424D53FF, 32, 0x72); // SMB2 header validator.validateSmbHeader(0x424D53FE, 64, 0x00); } @Test public void testInvalidProtocolId() throws Exception { assertThrows(SmbException.class, () -> { validator.validateSmbHeader(0xDEADBEEF, 64, 0x00); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
* * @param protocolId protocol identifier * @param structureSize structure size field * @param command command code * @throws SmbException if header is invalid */ public void validateSmbHeader(int protocolId, int structureSize, int command) throws SmbException { totalValidations.incrementAndGet(); // Check SMB1 signature if (protocolId == 0x424D53FF) { // 0xFF 'S' 'M' 'B'
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0)