EvilZone

Hacking and Security => Beginner's Corner => : hack3rcon September 05, 2015, 06:36:59 PM

: Can a host have zero open port? Is it possible?
: hack3rcon September 05, 2015, 06:36:59 PM
Hello.
I scanned an IP with Nmap and tested different scanning method but Nmap show me that the IP has 0 open port. Is it possible? If a host have 0 open port, Then how administrator connect to it ?
I used Nmap slow method too but not matter.


Any idea?


Tnx.
: Re: Can a host have zero open port? Is it possible?
: Kulverstukas September 05, 2015, 08:43:05 PM
It is possible, maybe it's a local NAS server and admins don't need remote access to it, so...
: Re: Can a host have zero open port? Is it possible?
: proxx September 05, 2015, 11:49:02 PM
Hello.
I scanned an IP with Nmap and tested different scanning method but Nmap show me that the IP has 0 open port. Is it possible? If a host have 0 open port, Then how administrator connect to it ?
I used Nmap slow method too but not matter.


Any idea?


Tnx.
It is called firewalling.
Likely IP filtering, also a machine does not need open inbound ports.
: Re: Can a host have zero open port? Is it possible?
: hcac September 06, 2015, 09:00:33 AM
Admin could even get a "connect back" from that machine
: Re: Can a host have zero open port? Is it possible?
: hack3rcon September 07, 2015, 09:42:47 AM
It is a Router modem and I'm sure firewall is ON, But how can deep scanning it? It is very odd if a router not have any Open ports. It is true that via a cable network admin can configure it and no open ports are need but an Internet router need open ports like SSH and telnet.
: Re: Can a host have zero open port? Is it possible?
: proxx September 07, 2015, 02:24:45 PM
It is a Router modem and I'm sure firewall is ON, But how can deep scanning it? It is very odd if a router not have any Open ports. It is true that via a cable network admin can configure it and no open ports are need but an Internet router need open ports like SSH and telnet.
You are really fucking clueless.
OPEN INBOUND PORTS ARE NOT REQUIRED.
Nothing odd about it, in fact most of the hosts on the web don't have open ports.
: Re: Can a host have zero open port? Is it possible?
: hack3rcon September 07, 2015, 08:39:08 PM
A router needs SSH and Telnet to route packets to the internet?


No, For connect to it remotely.
: Re: Can a host have zero open port? Is it possible?
: hack3rcon September 07, 2015, 08:39:55 PM
You are really fucking clueless.
OPEN INBOUND PORTS ARE NOT REQUIRED.
Nothing odd about it, in fact most of the hosts on the web don't have open ports.
Then, How can admin configure it remotely?
: Re: Can a host have zero open port? Is it possible?
: proxx September 07, 2015, 11:37:45 PM
Then, How can admin configure it remotely?
There are many methods; machine in the same network(IPfilter/MACfilter,ACL whatever), multiple NIC 's, VLANs , connect back etc etc etc.
I really suggest you read up on networking and security before making a fool out of yourself.
: Re: Can a host have zero open port? Is it possible?
: hack3rcon September 08, 2015, 10:10:01 AM
There are many methods; machine in the same network(IPfilter/MACfilter,ACL whatever), multiple NIC 's, VLANs , connect back etc etc etc.
I really suggest you read up on networking and security before making a fool out of yourself.


Thank you for your idea.
I know Routers have some method as you said. Like MAC Filtering or IP Filtering, But if the admin enable MAC filtering or IP filtering the router must have an open port that just let special MAC or IP for connect to it remotely. Can these ports Ability to find?
: Re: Can a host have zero open port? Is it possible?
: hcac September 08, 2015, 01:30:43 PM
proxx said "in the same network". You are probably not in the same network as that machine.
Also by NIC meant that machine could have DIFFERENT network interfaces and probably different IPs or even internal or... .
Eventually the answer to your thread's subject ("Can a host have zero open ports?") was given so many times: YES!
: Re: Can a host have zero open port? Is it possible?
: 0E 800 September 09, 2015, 01:11:17 AM
Get the mac address, look up the vendor.
Download the manual for the device.
Read it.
: Re: Can a host have zero open port? Is it possible?
: m0rph September 09, 2015, 03:14:50 PM
But if the admin enable MAC filtering or IP filtering the router must have an open port that just let special MAC or IP for connect to it remotely. Can these ports Ability to find?
Please read this first: https://en.wikipedia.org/wiki/OSI_model (https://en.wikipedia.org/wiki/OSI_model)

So, as you can see from the OSI model. MAC filtering takes place at layer 2, IP filtering takes place at layer 3, and ports operate at layer 4. Therefor, it is entirely possible for a router to not have any open ports, and still be able to route, filter macs, and other basic network-relevant malarkey.

So when you throw in a scenario where an admin logs into a device that appears to not have any open ports, that's exactly a farse. In those cases, access is allowed or disallowed via filtered ports - ports that are neither open, nor closed, they are filtered by a firewall. That's not entirely accurate either though, because a port doesn't actually listen in a "filtered" state, but rather the firewall filters datagrams depending on rulesets and sends a reject message if the datagram isn't allowed.

So if you run a scan, and it says "all X ports are closed" what it actually means is that the host 1) doesn't have daemons/services listening on the port range you specified 2) is either logically or physically inaccessible from you or 3) is up, but because you were able to resolve an address with ARP it is actually up and legitimately doesn't have any listening daemons/services listening on the network you share with it which is where the suggestions proxx gave you would came into play (vlans, ACLs, IP filtering, so on and so forth).
: Re: Can a host have zero open port? Is it possible?
: hack3rcon September 09, 2015, 06:11:52 PM
proxx said "in the same network". You are probably not in the same network as that machine.
Also by NIC meant that machine could have DIFFERENT network interfaces and probably different IPs or even internal or... .
Eventually the answer to your thread's subject ("Can a host have zero open ports?") was given so many times: YES!


Can you explain it more? What is you mean about not on a same network?
: Re: Can a host have zero open port? Is it possible?
: hcac September 09, 2015, 06:32:04 PM
It can have different interfaces, for example in Linux you have eth0, eth1, wlan0, usb0, ... net interfaces. The machine can "bind" specific IP addresses, e.g.: You have a wireless network router that gives your machine the IP "192.168.0.2" and you have a wired connection with the IP "173.73.77.34".
Then when you want to run a service such as FTP, you can tell it to just bind it to "192.168.0.2" which is your wlan0 (wireless network interfaces). After that your machcine won't open the port on 173.73.77.34 it will open it on 192.168.0.2. Totally seperated.
*When you open a port and bind it to 0.0.0.0, it's applied to all net interfaces.
: Re: Can a host have zero open port? Is it possible?
: 0E 800 September 09, 2015, 07:00:36 PM
Please read this first: https://en.wikipedia.org/wiki/OSI_model (https://en.wikipedia.org/wiki/OSI_model)

So, as you can see from the OSI model. MAC filtering takes place at layer 2, IP filtering takes place at layer 3, and ports operate at layer 4. Therefor, it is entirely possible for a router to not have any open ports, and still be able to route, filter macs, and other basic network-relevant malarkey.

So when you throw in a scenario where an admin logs into a device that appears to not have any open ports, that's exactly a farse. In those cases, access is allowed or disallowed via filtered ports - ports that are neither open, nor closed, they are filtered by a firewall. That's not entirely accurate either though, because a port doesn't actually listen in a "filtered" state, but rather the firewall filters datagrams depending on rulesets and sends a reject message if the datagram isn't allowed.

So if you run a scan, and it says "all X ports are closed" what it actually means is that the host 1) doesn't have daemons/services listening on the port range you specified 2) is either logically or physically inaccessible from you or 3) is up, but because you were able to resolve an address with ARP it is actually up and legitimately doesn't have any listening daemons/services listening on the network you share with it which is where the suggestions proxx gave you would came into play (vlans, ACLs, IP filtering, so on and so forth).

Thank you sir. Excellent answer.

: Re: Can a host have zero open port? Is it possible?
: Tugboat September 10, 2015, 02:20:54 PM

Can you explain it more? What is you mean about not on a same network?


Please go play in a busy street
: Re: Can a host have zero open port? Is it possible?
: hack3rcon September 11, 2015, 09:50:42 AM
It can have different interfaces, for example in Linux you have eth0, eth1, wlan0, usb0, ... net interfaces. The machine can "bind" specific IP addresses, e.g.: You have a wireless network router that gives your machine the IP "192.168.0.2" and you have a wired connection with the IP "173.73.77.34".
Then when you want to run a service such as FTP, you can tell it to just bind it to "192.168.0.2" which is your wlan0 (wireless network interfaces). After that your machcine won't open the port on 173.73.77.34 it will open it on 192.168.0.2. Totally seperated.
*When you open a port and bind it to 0.0.0.0, it's applied to all net interfaces.


Thank you.
Is it kind of Routing?
: Re: Can a host have zero open port? Is it possible?
: hcac September 11, 2015, 10:38:19 AM
Is it kind of routing? not really. It's a simple thing programs can do when opening a port or connecting to a port.

Edit:
Do you have netcat?
:
nc -l 192.168.0.2 -p 80
This would open the port 80 only on 192.168.0.2 and nothing else.

And on Unix this
:
nc -l -p 80
would open port 80 on all interfaces (any).