% host -l
univ-tln.fr | grep 'has address' | wc -l3627 |
dig -t AXFR univ-tln.fr
(2) Avec host% host
dpt-info.univ-tln.fr 10.1.65.1 Using domain server: Name: 10.1.65.1 Address: 10.1.65.1#53 Aliases: dpt-info.univ-tln.fr has address 10.1.73.17 |
% dig
@10.1.65.1 dpt-info.univ-tln.fr ; <<>> DiG 9.2.1 <<>> dpt-info.univ-tln.fr @10.1.65.1 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49191 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;dpt-info.univ-tln.fr. IN A ;; ANSWER SECTION: dpt-info.univ-tln.fr. 86400 IN A 10.1.73.17 . . . |
% host
193.49.96.4 etud1.univ-tln.fr Using domain server: Name: etud1.univ-tln.fr Address: 10.1.65.127#53 Aliases: 4.96.49.193.in-addr.arpa domain name pointer dpt-info.univ-tln.fr. |
% dig
@etud1.univ-tln.fr -x 193.49.96.4;; global options: printcmd |
% host -t NS
univ-tln.fr etud1.univ-tln.fr Using domain server: Name: etud1.univ-tln.fr Address: 10.1.65.127#53 Aliases: univ-tln.fr name server rhodes.univ-tln.fr. univ-tln.fr name server dns.inria.fr. |
% dig
@etud1.univ-tln.fr univ-tln.fr -t NS ; <<>> DiG 9.2.1 <<>> @etud1.univ-tln.fr univ-tln.fr -t NS ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65461 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;univ-tln.fr. IN NS ;; ANSWER SECTION: univ-tln.fr. 172800 IN NS rhodes.univ-tln.fr. univ-tln.fr. 172800 IN NS dns.inria.fr. . |
% ping
www.google.fr PING www.google.akadns.net (216.239.39.99) from 10.1.73.52 : 56(84) bytes of data. 64 bytes from 216.239.39.99: icmp_seq=1 ttl=235 time=97.8 ms . . . % ping www.google.fr PING www.google.akadns.net (216.239.39.147) from 10.1.73.52 : 56(84) bytes of data. 64 bytes from 216.239.39.147: icmp_seq=1 ttl=235 time=96.1 ms . . . % host www.google.fr www.google.fr is an alias for www.google.com. www.google.com is an alias for www.google.akadns.net. www.google.akadns.net has address 216.239.39.99 www.google.akadns.net has address 216.239.39.104 www.google.akadns.net has address 216.239.39.147 |
GET /mystere.txt HTTP/1.0 Host: sis.univ-tln.fr Accept: text/html, text/plain, application/vnd.sun.xml.writer, application/vnd.sun.xml.writer.global, application/vnd.stardivision.writer, application/vnd.stardivision.writer-global, application/x-starwriter, application/vnd.sun.xml.writer.template Accept: application/vnd.sun.xml.calc, application/vnd.stardivision.calc, application/x-starcalc, application/vnd.sun.xml.calc.template, application/vnd.sun.xml.impress, application/vnd.stardivision.impress, application/vnd.stardivision.impress-packed Accept: application/x-starimpress, application/vnd.sun.xml.impress.template, application/vnd.sun.xml.draw, application/vnd.stardivision.draw, application/x-stardraw, application/vnd.sun.xml.draw.template, application/vnd.sun.xml.math Accept: application/vnd.stardivision.math, application/x-starmath, application/x-java-jnlp-file, audio/mod, image/*, video/mpeg, video/*, application/pgp, application/pdf, application/postscript, message/partial, message/external-body, x-be2 Accept: application/andrew-inset, text/richtext, text/enriched, x-sun-attachment, audio-file, postscript-file, default, mail-file, sun-deskset-message, application/x-metamail-patch, application/msword, text/sgml, */*;q=0.01 Accept-Language: en User-Agent: Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6b HTTP/1.1 200 OK Date: Thu, 15 Apr 2004 07:36:38 GMT Server: Apache/1.3.29 (Debian GNU/Linux) PHP/4.2.3 mod_ssl/2.8.15 OpenSSL/0.9.7c mod_perl/1.28 mod_jk/1.1.0 DAV/1.0.3 Last-Modified: Wed, 14 Apr 2004 12:56:46 GMT ETag: "16da0-57-407d350e" Accept-Ranges: bytes Content-Length: 87 Connection: close Content-Type: text/plain; charset=iso-8859-1 Bravo, allez voir http://sis.univ-tln.fr/fini.txt l'adresse IP de sis est 10.2.177.108 |
% telnet
sis.univ-tln.fr 80 Trying 10.2.177.108... Connected to sis.univ-tln.fr. Escape character is '^]'. GET /fini.txt Vous pouvez passer a l'exercice suivant Connection closed by foreign host. |
% telnet
etud.univ-tln.fr 143 Trying 10.1.65.112... Connected to etud. Escape character is '^]'. * OK etud.univ-tln.fr Cyrus IMAP4 v1.6.22 server ready a001 login votre_login votre_mot_de_passe a001 OK User logged in a002 select inbox * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $MDNSent NonJunk Junk $Forwarded) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $MDNSent NonJunk Junk $Forwarded \*)] * 212 EXISTS * 0 RECENT * OK [UNSEEN 72] * OK [UIDVALIDITY 970815669] * OK [UIDNEXT 1638] a002 OK [READ-WRITE] Completed a003 search FROM veron * SEARCH 1 2 3 4 56 204 a003 OK Completed a004 FETCH 204 BODY[TEXT] a004 FETCH 204 (FLAGS BODY[TEXT]) a005 logout |
% ./test sinfo1 IP de la machine : 10.1.73.242 Le port 13 est ouvert Le port 22 est ouvert Le port 37 est ouvert Le port 80 est ouvert Le port 111 est ouvert Le port 443 est ouvert Le port 752 est ouvert Le port 760 est ouvert Le port 773 est ouvert Le port 935 est ouvert |
% telnet sinfo1 13 Trying 10.1.73.242... Connected to sinfo1. Escape character is '^]'. 15 APR 2004 10:09:03 CEST Connection closed by foreign host. |
% ./time sinfo1 37 Thu Apr 15 10:12:41 2004 |