- Identify the ports on your Mac
- Thunderbolt / USB 4
- Thunderbolt 3
- USB 3
- Thunderbolt
- Mini DisplayPort
- Ethernet
- FireWire
- SD card
- Audio
- Power
- Learn more
- Ports Open (Networking)
- Ports
- Spotlight on Network Utility to List Ports
- List open files = lsof
- Protocols
- Processes Tour
- For a list of processes on Mac:
- Resources
- Honeypots
Identify the ports on your Mac
If you’re not sure which port to use with your external display, hard drive, camera, printer, iPhone, iPad, or other device, the port shapes and symbols in this guide should help.
Information about these and other types of Mac ports is in the specifications for your Mac: Choose Apple menu > About This Mac, click Support, then click Specifications. Or check your Mac user guide.
Thunderbolt / USB 4
These Mac models have Thunderbolt / USB 4 ports:
You can connect a single external display and other devices that connect using either a Thunderbolt 3 cable or USB-C cable. You can also connect a USB-C charge cable to charge your notebook, or a USB-C to Lightning cable to charge your iPhone or iPad. If you have a device that doesn’t connect to this port, you might be able to use an adapter to connect it.
On iMac (24-inch, M1, 2021), the symbol appears above each Thunderbolt / USB 4 port. To connect a display, use either of the ports with the Thunderbolt symbol .
Thunderbolt 3
These Mac models have Thunderbolt 3 ports:
- iMac (Retina 5K, 27-inch, 2020)
- iMac (Retina 5K, 27-inch, 2019)
- iMac (Retina 4K, 21.5-inch, 2019)
- iMac (Retina 5K, 27-inch, 2017)
- iMac (Retina 4K, 21.5-inch, 2017)
- iMac (21.5-inch, 2017)
- iMac Pro
- Mac Pro (2019)
- Mac Pro (Rack, 2019)
- Mac mini (2018)
- MacBook Air (Retina, 13-inch, 2020)
- MacBook Air (Retina, 13-inch, 2019)
- MacBook Air (Retina, 13-inch, 2018)
- MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)
- MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
- MacBook Pro (16-inch, 2019)
- MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
- MacBook Pro (15-inch, 2019)
- MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)
- MacBook Pro (15-inch, 2018)
- MacBook Pro (13-inch, 2018, Four Thunderbolt 3 ports)
- MacBook Pro (15-inch, 2017)
- MacBook Pro (13-inch, 2017, Four Thunderbolt 3 ports)
- MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)
- MacBook Pro (15-inch, 2016)
- MacBook Pro (13-inch, 2016, Four Thunderbolt 3 ports)
- MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports)
Use these ports with displays and other devices that connect using either a Thunderbolt 3 cable or USB-C cable. You can also connect a USB-C power adapter and cable to charge your notebook computer. If you have a device that doesn’t connect to this port, you might be able to use an adapter to connect it.
If your Mac notebook or desktop computer has more than one port like this, each port supports Thunderbolt 3 and USB-C.
USB 3
These Mac models have USB 3 ports:
- iMac (24-inch, M1, 2021) with four ports
- MacBook (Retina, 12-inch, 2017)
- MacBook (Retina, 12-inch, Early 2016)
- MacBook (Retina, 12-inch, Early 2015)
On MacBook, use this port with displays and other devices that connect using a USB-C cable. You can also connect a USB-C power adapter and cable to charge your notebook computer. If you have a device that doesn’t connect to this port, you might be able to use an adapter to connect it.
On iMac (four-port model only), use the USB 3 ports with external devices that connect using a USB-C cable. To connect an external display, use either of the ports with the Thunderbolt symbol .
Thunderbolt
These Mac models have Thunderbolt or Thunderbolt 2 ports:
- MacBook Pro introduced in 2011 through 2015
- MacBook Air introduced in 2011 through 2017
- Mac mini introduced in 2011 through 2014
- iMac introduced in 2011 through 2015
- Mac Pro introduced in 2013
Use these ports with displays and other devices that connect using a Thunderbolt cable.
Thunderbolt and Thunderbolt 2 are not the same as Mini DisplayPort . They have the same shape, but use different symbols on the cable and port. However, this port does support Mini DisplayPort for video output, so you can use a Mini DisplayPort cable to connect a Mini DisplayPort display.
Mini DisplayPort
These Mac models have Mini DisplayPort:
- MacBook Pro introduced in late 2008 through 2010
- MacBook Air introduced in late 2008 through 2010
- Mac mini introduced in 2009 and 2010
- iMac introduced in 2009 and 2010
- Mac Pro introduced in 2009 through 2012
Use this port with displays that connect using a Mini DisplayPort cable.
Mini DisplayPort is not the same as Thunderbolt or Thunderbolt 2 . They have the same shape, but use different symbols on the cable and port.
Use these ports with devices that connect using a USB-A cable. USB ports are sometimes known by the USB specification of the port, such as USB 2 or USB 3.
Use HDMI with displays and TVs that connect using an HDMI cable.
Ethernet
Use Ethernet with networks and devices that connect using an Ethernet (RJ45) cable.
On some iMac models, the Ethernet port is located on the computer’s power adapter. If your power adapter doesn’t have an Ethernet port, you can use an Ethernet adapter.
FireWire
FireWire 400 | FireWire 800 |
Use FireWire with devices that connect using a FireWire 400 or FireWire 800 cable.
SD card
Use the SD card slot with SD, SDHC, SDXC, MMC, and UHS-II media cards, such as those used by digital cameras.
Audio
Use Audio-Out — or — with headphones, speakers, and other audio-output devices that connect using an audio cable that has a 3.5 mm (1/8 inch) audio jack.
Use Audio-In with a microphone or other audio-input device that connects using an audio cable that has a 3.5 mm (1/8 inch) audio jack.
Power
Use the power port , if available, to connect your computer to AC power using a MagSafe cable or adapter. This port isn’t available on newer Mac notebook computers, which use Thunderbolt 3 or USB-C for power and charging. Learn more about power adapters and cables for Mac notebook computers.
Learn more
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.
Источник
Ports Open (Networking)
What ports are open for hacking on my Mac and Linux machine?
Here is how to see what ports are open listening on a server.
This is perhaps the most important potential vulnerability.
Having ports listenting to outside traffic also takes CPU effort, which consumes electricity and thus reduce battery life.
Ports
PAT (Port Address Translation) maps ports.:
- 0 — 1023 = well-know ports
- 1024 — 49141 = Registered ports (1433 for MS SQL, 1431 for Oracle SQL, etc.)
- 49152 — 54535 65535 = dynamic ports
Port 3389 is used for communicating with Microsoft’s RDP (Remote Desktop Protocol) on Windows machines. See My notes on Windows RDP.
Common TCP Ports in layer 4: REMEMBER
- 80/443 = HTTPS (Secure, encrypted)
21/990 = FTP and FTPS which adds SSL & TLS to encrypt
3389 = RDP (Remote Desktop Protocol) from Microsoft
143/993 = IMAP (Internet Message Access Protocol) files remain on server / TLS
No port for ICMP RFC 792 Pings RFC 1122 as it’s in IP transport layer
- 8080, 8081 = Limits Microservice
- 8888 = Spring Cloud Config server
- 8000,8001,8002,… = Currency Exhange Microservice
- 8100,8101,8102,… = Currency Conversion Microservice
- 8761 = Netflix Eureka Naming Server
- 8765 = API Gateway
- 9411 = Zipkin Distributed Tracing Server
IP header protocol field REMEMBER
- 1 = ICMP (Internet Control Message Protocol)
- 2 = IGMP (Internet Group Management Protocol) to estab. multicaset group transmitted to at once
- 6 = TCP (Transmission Control Protocol)
- 17 = UDP (User Datagram Protocol) used by VOIP
- 115 = L2TP (Layer 2)
Spotlight on Network Utility to List Ports
Apple’s macOS Spotlight is like Window’s Search omni-box. *
Press Command+Spacebar.
Type the name of utilities that are buried, such as Network Utility.
Click the keyboard return/enter key to launch the Network Utility app.
Select the «Port Scan» tab.
Enter the IP (such as 127.0.0.1), localhost, or domain name you wish to scan for open ports.
Choose scan to see what ports the server responds to.
List open files = lsof
In a Terminal command line:
PROTIP: If you’ll be using this often, create an alias such as of .
“lsof” is a contraction for “list open files”. Without any options specifications, lsof lists all open files belonging to all active processes.
“-nP” is a combination of “n” for no resolution of IPs to hostnames using DNS and “P” for no resolution of Port names from numbers.
This is because the command already takes several seconds to run.
“+c 15” specifies command width of 15.
Piping to grep filters out only lines containing “LISTEN”.
NOTE: All options are shown by this command:
Drag your Terminal window wider to remove word-wrap.
“FD” column lists File Descriptors. “u” is for read and write mode. “r” for read only, “w” for write-only.
Linux requires root on operations for well-known ports below 1024.
Protocols
TCP (Transmission Control Protocol) is the most commonly used protocol on the Internet and any TCP/IP network. TCP enables two hosts to establish a connection and exchange streams of data. TCP guarantees delivery of data and that packets will be delivered in the same order in which they were sent. Guaranteed communication/delivery is the key difference between TCP and UDP on ort 53.
UDP (Datagram Protocol) is connectionless and does not guarantee reliable communication; it’s up to the application that received the message to process any errors and verify correct delivery. UDP is often used with time-sensitive applications, such as audio/video streaming, where dropping some packets is preferable to waiting for delayed data.
Processes Tour
NOTE: Drag the scroll bar to see what is beyond what is displayed.
mongod is MongoDB listening on port 27017.
I should keep that closed unless I need it.
In Node, close all connections when the app closes completely:
2BUA8C4S2C
When I search for “2BUA8C4S2C” I see “2BUA8C4S2C.com.agilebits” in folder /Users/mac/Library/Group Containers
This says This port is used only on the loopback interface (127.0.0.1) for the 1Password extension to talk to the 1Password Agent. It should be safe to firewall it from any sources other than 127.0.0.1. If you do a packet capture on lo0 and then filter by tcp.port == 6258 you can see what traffic is being passed. Nothing is transmitted in the clear.
Skype I don’t mind keeping open. I use it a lot.
Dropbox — why does it need to be kept open?
I’ll use just their web page when I need it.
Resilio\x20Sync I used once to get a file.
In Resilio Preferences, uncheck “Start Resilio Sync on startup”.
SketchMirrorHel
XMPP ports 56989 and 56990
For a list of processes on Mac:
Don’t visit http://www.westwind.com/reference/OS-X/background-processes.html
ftp (tftp) should not appear.
Scan other machines
brew install nmap
(Zenmap is the GUI)
There are a lot of options
nmap -h
nmap [scan type] [options]
There are a lot of options
nmap -h
Scan for vulnerabilities using nmap scripts.
Scan for vulnerabilities using vulnerability scanners:
Scans for versions of applications and operating systems. Compare those against known vulnerabilities and exploits.
Devices on the Internet with open ports are indexed by Shodan.io.
SNR (software defined radios)
Resources
Learn basic hardware hacking with UbertoothOne and HackRF One.
Network Intrusion detection systems (NIDS)
AlienVault Open Source SIEM (OSSIM) with Open Threat Exchange (OTX) Security Information and Event Management (SIEM) software.
Honeypots
Commercial Honeypot software:
- Fortinet – FortiDeceptor
- Attivio — BOTsink
- Fidelis – Fidelis Deception
- TrapX– DeceptionGrid
- Illusive – Illusive Platform
Источник