Ver Mensaje Individual
  #10 (permalink)  
Antiguo 28/05/2011, 10:36
Avatar de diegoug
diegoug
 
Fecha de Ingreso: mayo-2011
Ubicación: Colombia
Mensajes: 52
Antigüedad: 12 años, 11 meses
Puntos: 1
Información Respuesta: Conección por socket en phython

Buena por esa "nmap" excelente herramienta para ver los puertos, resulta que mande un comando para ver si los puertos estaban abiertos y este fue el resultado:

Código:
nmap -v -A MI_IP_FIJA

Starting Nmap 5.00 ( http://nmap.org ) at 2011-05-28 11:22 COT
NSE: Loaded 30 scripts for scanning.
Initiating Parallel DNS resolution of 1 host. at 11:22
Completed Parallel DNS resolution of 1 host. at 11:22, 0.02s elapsed
Initiating SYN Stealth Scan at 11:22
Scanning Static-IP-crMI_IP_FIJA.cable.net.co (MI_IP_FIJA) [1000 ports]
Discovered open port 111/tcp on MI_IP_FIJA
Discovered open port 80/tcp on MI_IP_FIJA
Discovered open port 21/tcp on MI_IP_FIJA
Discovered open port 631/tcp on MI_IP_FIJA
Discovered open port 8010/tcp on MI_IP_FIJA
Completed SYN Stealth Scan at 11:22, 0.08s elapsed (1000 total ports)
Initiating Service scan at 11:22
Scanning 5 services on Static-IP-crMI_IP_FIJA.cable.net.co (MI_IP_FIJA)
Completed Service scan at 11:23, 6.15s elapsed (5 services on 1 host)
Initiating OS detection (try #1) against Static-IP-crMI_IP_FIJA.cable.net.co (190.158.253.218)
Retrying OS detection (try #2) against Static-IP-crMI_IP_FIJA.cable.net.co (190.158.253.218)
Retrying OS detection (try #3) against Static-IP-crMI_IP_FIJA.cable.net.co (190.158.253.218)
Retrying OS detection (try #4) against Static-IP-crMI_IP_FIJA.cable.net.co (190.158.253.218)
Retrying OS detection (try #5) against Static-IP-cr1MI_IP_FIJA.cable.net.co (190.158.253.218)
NSE: Script scanning MI_IP_FIJA.
NSE: Starting runlevel 1 scan
Initiating NSE at 11:23
Completed NSE at 11:23, 5.08s elapsed
NSE: Script Scanning completed.
Host Static-IP-crMI_IP_FIJA.cable.net.co (MI_IP_FIJA) is up (0.000049s latency).
Interesting ports on Static-IP-crMI_IP_FIJA.cable.net.co (MI_IP_FIJA):
Not shown: 995 closed ports
PORT     STATE SERVICE VERSION
21/tcp   open  ftp     ProFTPD 1.3.1
80/tcp   open  http    Apache httpd 2.2.16 ((Debian))
|_ html-title: Index of /
111/tcp  open  rpcbind
|  rpcinfo:  
|  100000  2    111/udp  rpcbind  
|  100024  1  39220/udp  status   
|  100000  2    111/tcp  rpcbind  
|_ 100024  1  38188/tcp  status   
631/tcp  open  ipp     CUPS 1.4
8010/tcp open  xmpp?
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=5.00%D=5/28%OT=21%CT=1%CU=32456%PV=N%DS=0%G=Y%TM=4DE12178%P=i686-
OS:pc-linux-gnu

Uptime guess: 0.002 days (since Sat May 28 11:20:55 2011)
Network Distance: 0 hops
TCP Sequence Prediction: Difficulty=205 (Good luck!)
IP ID Sequence Generation: All zeros
Service Info: OS: Unix

Read data files from: /usr/share/nmap
OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 23.86 seconds
           Raw packets sent: 1095 (51.990KB) | Rcvd: 2210 (98.720KB)
No muestro mi (MI_IP_FIJA) ya que este es un servidor de pruebas y no me gustaría una denegación hasta poder configurar iptables.

Por lo que veo creo que es el puerto, que no esta abierto:

Código:
Discovered open port 111/tcp on MI_IP_FIJA
Discovered open port 80/tcp on MI_IP_FIJA
Discovered open port 21/tcp on MI_IP_FIJA
Discovered open port 631/tcp on MI_IP_FIJA
Discovered open port 8010/tcp on MI_IP_FIJA
Habría algún problema si lo hago en uno de estos puertos abiertos excepto el puerto 80, como el puerto 21?

Nota de instalación de nmap en Debian Squeeze:
Código:
# aptitude install nmap
Gracias por la info y la herramienta.
__________________
_________________________
Diego Alonso Uribe Gamez
Twitter: @DiegoUG