Skip to content
reverseshell

Glossary

LPORT

The listening port — the TCP port the target connects back to in a reverse shell payload.

LPORT ("listening port") is the TCP port the target connects back to, where your listener is waiting. Choosing a port that egress filtering allows matters more than the number itself: 443 and 80 succeed on almost every network because outbound web traffic is expected, whereas an odd high port is often dropped.

LPORT is paired with LHOST in every payload. If a shell will not connect, swapping LPORT to 443 is one of the first things to try — see why reverse shells fail.