Bash - open_fake_ports.sh

#!/bin/bash

# This would open 500 ports from 4500 to 4999:

counter=4500

while [ $counter -lt 5000 ]; do
    nc -l -p $counter &
    let counter=$counter+1
done