Adversaries may conduct C2 communications over a non-standard port to bypass proxies and firewalls that have been improperly configured.
Testing uncommonly used port utilizing PowerShell
Supported Platforms: Windows
Name | Description | Type | Default Value |
---|---|---|---|
port | Specify uncommon port number | String | 8081 |
domain | Specify target hostname | String | google.com |
test-netconnection -ComputerName #{domain} -port #{port}
Testing uncommonly used port utilizing telnet.
Supported Platforms: Linux, macOS
Name | Description | Type | Default Value |
---|---|---|---|
port | Specify uncommon port number | String | 8081 |
domain | Specify target hostname | String | google.com |
telnet #{domain} #{port}