Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1268 connectés 

  FORUM HardWare.fr
  Windows & Software
  Sécurité

  Difference entre NETSTAT -AN et un scan

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Difference entre NETSTAT -AN et un scan

n°2374719
rld
Posté le 04-04-2006 à 17:02:12  profilanswer
 

Salut a tous,
 
si j'effectue un NETSTAT -AN sur mon XP, je recois une liste de port en ecoute bien plus importante que la liste retournee par nmap lance en mode root.
 
Voici le resultat de mon netstat -an:

Code :
  1. C:\>netstat -an
  2. Active Connections
  3.   Proto  Local Address          Foreign Address        State
  4.   TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  5.   TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  6.   TCP    0.0.0.0:1044           0.0.0.0:0              LISTENING
  7.   TCP    0.0.0.0:6129           0.0.0.0:0              LISTENING
  8.   TCP    0.0.0.0:9535           0.0.0.0:0              LISTENING
  9.   TCP    0.0.0.0:9593           0.0.0.0:0              LISTENING
  10.   TCP    0.0.0.0:9594           0.0.0.0:0              LISTENING
  11.   TCP    0.0.0.0:9595           0.0.0.0:0              LISTENING
  12.   TCP    0.0.0.0:33354          0.0.0.0:0              LISTENING
  13.   TCP    10.176.99.14:139       0.0.0.0:0              LISTENING
  14.   TCP    10.176.99.14:1109      10.176.97.29:8080      CLOSE_WAIT
  15.   TCP    10.176.99.14:1193      10.176.97.16:1093      ESTABLISHED
  16.   TCP    10.176.99.14:1197      10.176.97.16:1118      ESTABLISHED
  17.   TCP    10.176.99.14:1206      10.176.225.35:3389     ESTABLISHED
  18.   TCP    10.176.99.14:1309      10.176.97.1:3268       CLOSE_WAIT
  19.   TCP    10.176.99.14:1317      10.176.97.9:445        ESTABLISHED
  20.   TCP    10.176.99.14:1808      10.176.97.44:445       ESTABLISHED
  21.   TCP    10.176.99.14:1980      10.176.97.29:8080      ESTABLISHED
  22.   TCP    10.176.99.14:1981      10.176.97.29:8080      ESTABLISHED
  23.   TCP    10.176.99.14:1982      10.176.97.29:8080      ESTABLISHED
  24.   TCP    10.176.99.14:1983      10.176.97.29:8080      ESTABLISHED
  25.   TCP    127.0.0.1:1035         0.0.0.0:0              LISTENING
  26.   TCP    127.0.0.1:1059         0.0.0.0:0              LISTENING
  27.   TCP    127.0.0.1:1087         127.0.0.1:6139         ESTABLISHED
  28.   TCP    127.0.0.1:1236         127.0.0.1:1237         ESTABLISHED
  29.   TCP    127.0.0.1:1237         127.0.0.1:1236         ESTABLISHED
  30.   TCP    127.0.0.1:6139         0.0.0.0:0              LISTENING
  31.   TCP    127.0.0.1:6139         127.0.0.1:1087         ESTABLISHED
  32.   TCP    127.0.0.1:9592         0.0.0.0:0              LISTENING
  33.   UDP    0.0.0.0:67             *:*
  34.   UDP    0.0.0.0:69             *:*
  35.   UDP    0.0.0.0:445            *:*
  36.   UDP    0.0.0.0:500            *:*
  37.   UDP    0.0.0.0:1025           *:*
  38.   UDP    0.0.0.0:1026           *:*
  39.   UDP    0.0.0.0:1195           *:*
  40.   UDP    0.0.0.0:1207           *:*
  41.   UDP    0.0.0.0:1235           *:*
  42.   UDP    0.0.0.0:1759           *:*
  43.   UDP    0.0.0.0:1866           *:*
  44.   UDP    0.0.0.0:1868           *:*
  45.   UDP    0.0.0.0:1881           *:*
  46.   UDP    0.0.0.0:1883           *:*
  47.   UDP    0.0.0.0:1884           *:*
  48.   UDP    0.0.0.0:1885           *:*
  49.   UDP    0.0.0.0:1886           *:*
  50.   UDP    0.0.0.0:4011           *:*
  51.   UDP    0.0.0.0:4500           *:*
  52.   UDP    0.0.0.0:8080           *:*
  53.   UDP    0.0.0.0:9595           *:*
  54.   UDP    0.0.0.0:33354          *:*
  55.   UDP    0.0.0.0:33355          *:*
  56.   UDP    0.0.0.0:38293          *:*
  57.   UDP    10.176.99.14:123       *:*
  58.   UDP    10.176.99.14:137       *:*
  59.   UDP    10.176.99.14:138       *:*
  60.   UDP    10.176.99.14:1900      *:*
  61.   UDP    127.0.0.1:123          *:*
  62.   UDP    127.0.0.1:1027         *:*
  63.   UDP    127.0.0.1:1047         *:*
  64.   UDP    127.0.0.1:1054         *:*
  65.   UDP    127.0.0.1:1308         *:*
  66.   UDP    127.0.0.1:1900         *:*
  67. C:\>

Alors que mon netstat ne me renvoit que voici ce que me renvoit nmap:

Code :
  1. gbdeeunil0001:/var/log/ntpstats# nmap 10.176.99.14
  2. Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2006-04-03 14:56 BST
  3. Interesting ports on gbdeewdtdxxx.gb.corp (10.176.99.14):
  4. (The 1659 ports scanned but not shown below are in state: closed)
  5. PORT     STATE SERVICE
  6. 135/tcp  open  msrpc
  7. 139/tcp  open  netbios-ssn
  8. 445/tcp  open  microsoft-ds
  9. 9535/tcp open  man
  10. MAC Address: 00:0D:56:C5:2A:A1 (Dell Pcba Test)
  11. Nmap finished: 1 IP address (1 host up) scanned in 3.069 seconds
  12. gbdeeunil0001:/var/log/ntpstats#


 
D'ou cela provient la difference de resultat ??
 
Merci

mood
Publicité
Posté le 04-04-2006 à 17:02:12  profilanswer
 

n°2374734
jlighty
Posté le 04-04-2006 à 17:11:02  profilanswer
 

fait un nmap -p 1-65535 10.176.99.14 car par défaut nmap ne scanne que certains ports
pour l'UDP  nmap -sU -p 1-65535 10.176.99.14


Message édité par jlighty le 04-04-2006 à 17:13:29
n°2374759
rld
Posté le 04-04-2006 à 17:25:28  profilanswer
 

Nickel  
 
Par contre tous mes ports UDP apparaissent filtres, alors que la connection n'est pas controlee.
Normal ?
 

Code :
  1. gbdeeunil0001:/proc/net# nmap -sU -p 1-65535 10.176.99.14
  2. Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2006-04-03 15:21 BST Interesting ports on ...
  3. (The 65508 ports scanned but not shown below are in state: closed)
  4. PORT      STATE         SERVICE
  5. 67/udp    open|filtered dhcpserver
  6. 69/udp    open|filtered tftp
  7. 123/udp   open|filtered ntp
  8. 137/udp   open|filtered netbios-ns
  9. 138/udp   open|filtered netbios-dgm
  10. 445/udp   open|filtered microsoft-ds
  11. 500/udp   open|filtered isakmp
  12. 1025/udp  open|filtered blackjack
  13. 1026/udp  open|filtered unknown
  14. 1195/udp  open|filtered unknown
  15. 1207/udp  open|filtered unknown
  16. 1235/udp  open|filtered unknown
  17. 1759/udp  open|filtered unknown
  18. 1866/udp  open|filtered unknown
  19. 1868/udp  open|filtered unknown
  20. 1881/udp  open|filtered unknown
  21. 1883/udp  open|filtered unknown
  22. 1884/udp  open|filtered unknown
  23. 1885/udp  open|filtered unknown
  24. 1886/udp  open|filtered unknown
  25. 1900/udp  open|filtered UPnP
  26. 4011/udp  open|filtered unknown
  27. 4500/udp  open|filtered sae-urn
  28. 8080/udp  open|filtered unknown
  29. 33354/udp open|filtered unknown
  30. 33355/udp open|filtered unknown
  31. 38293/udp open|filtered landesk-cba
  32. MAC Address: 00:0D:56:C5:2A:A1 (Dell Pcba Test)
  33. Nmap finished: 1 IP address (1 host up) scanned in 46.255 seconds gbdeeunil0001:/proc/net#


Message édité par rld le 04-04-2006 à 17:26:34
n°2374771
jlighty
Posté le 04-04-2006 à 17:34:14  profilanswer
 

dans l'aide de nmap

Citation :

  -sU    UDP scans: This method is used  to  determine  which  UDP  (User
              Datagram Protocol, RFC 768) ports are open on a host.  The tech-
              nique is to send 0 byte UDP packets to each port on  the  target
              machine.   If  we receive an ICMP port unreachable message, then
              the port is closed.  If a UDP response is received to the  probe
              (unusual),  the port is open.  If we get no response at all, the
              state is "open|filtered", meaning that the port is  either  open
              or packet filters are blocking the communication.  Versions scan
              (-sV) can be used to help differentiate  the  truly  open  ports
              from the filtered ones.

n°2375215
rld
Posté le 05-04-2006 à 09:55:30  profilanswer
 

Merci.
 
Pour toi, ce resultat signifie-t-il qu'un serveur de temps NTP fonctionne sur cette machine ?

Code :
  1. gbdeeunil0001:/# nmap -sUV 10.176.97.1
  2. Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2006-04-04 05:31 BST
  3. caught SIGINT signal, cleaning up
  4. gbdeeunil0001:/home/romain# nmap -p 123 -sUV 10.176.97.1
  5. Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2006-04-04 05:32 BST
  6. Interesting ports on gbdeectl0001.gb.corp (10.176.97.1):
  7. PORT    STATE SERVICE VERSION
  8. 123/udp open  ntp?
  9. 1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at http://www.insecure.org/cgi-bin/servicefp-submit.cgi :
  10. SF-Port123-UDP:V=3.81%D=4/4%Time=4431F6C8%P=i686-pc-linux-gnu%r(NTPRequest
  11. SF:,30,"\x1c\x05\x04\xfa\0\0\x16_\0\0\+\xd3\n\xf8\x10e\xc7\xdd\xf3#{>ku\xc
  12. SF:5O#Kq\xb1R\xf3\xc7\xdd\xf4\xe2\xe7F\x9c\x9c\xc7\xdd\xf4\xe2\xe7F\x9c\x9
  13. SF:c" );
  14. MAC Address: 00:0F:1F:68:1F:A8 (WW Pcba Test)
  15. Nmap finished: 1 IP address (1 host up) scanned in 45.667 seconds
  16. gbdeeunil0001:/#


n°2375221
jlighty
Posté le 05-04-2006 à 10:00:19  profilanswer
 

Oui, il y a un service qui écoute sur le port 123 c'est surement un serveur ntp.

Citation :

123/udp open  ntp?


Citation :

UDP    127.0.0.1:123          *:*


et

Citation :

:V=3.81%D=4/4%Time=4431F6C8%P=i686-pc-linux-gnu%r(NTPRequest


Message édité par jlighty le 05-04-2006 à 10:02:16

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Windows & Software
  Sécurité

  Difference entre NETSTAT -AN et un scan

 

Sujets relatifs
analyse panda active scan impossibleprobleme de scan
Pendant scan ad-aware : ecran bleu / rebootDifférence de qualité-firewall à 70 et 500 euros ?
[HD Ext]garder partage/empécher scan exec auto[RESOLU 2/2]différence de performance entre drivers 32-64bits ?
Différence entre .mpg et .mpegLancement au démarrage : scan hijackthis
ip scan quelqun peut m'aider?[Question] différence entre Partage et délégation sous Outlook 2k3
Plus de sujets relatifs à : Difference entre NETSTAT -AN et un scan


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR