NetExec Tutorial Shows Remote Command Execution Across Six Protocols

· Original article ↗

Summary

A hands-on NetExec tutorial demonstrates remote command execution over SMB, WinRM, WMI, MSSQL, RDP and SSH, including password, hash, Kerberos-ticket and certificate authentication; it notes MSSQL xp_cmdshell can run commands as the SQL Server service account.

Key points

  • The tutorial demonstrates NetExec command execution over SMB, WinRM, WMI, MSSQL, RDP and SSH.
  • Examples cover authentication with passwords, NTLM hashes, Kerberos tickets and certificates.
  • It explains that certificate authentication can use AD CS certificates with Kerberos PKINIT.
  • The MSSQL examples use xp_cmdshell, which the article says can run commands in the SQL Server service account's context when enabled with SA privileges.
  • The RDP example uses clipboard injection and timing delays to enter and execute commands.

Article Details

Topic
NetExec command execution and authentication techniques for penetration testing across remote protocols

MITRE ATT&CK

Products

Tools

Related Articles