260 likes | 363 Views
Gerência de redes avançadas. Aula 2 – Gerência ad hoc Cerutti. Aviso:. Não é possível entender como defender uma rede sem conhecer os ataques.
E N D
Gerência de redes avançadas Aula 2 – Gerência ad hoc Cerutti
Aviso: • Não é possível entender como defender uma rede sem conhecer os ataques. • Os exercícios e ferramentas demonstrados nas aulas servem ao propósito de “SABER ESPERAR AS AMEAÇAS AO CAPITAL INTELECTUAL” das empresas/instituições/pessoas • Qualquer uso do conhecimento adquirido em sala para “testar” ou indevidamente colocar em risco QUALQUER dispositivo será visto como INFRAÇÃO GRAVE ao estatuto do IES e estará sujeito a penalidades da legislação brasileira e/ou do país onde o dispositivo em questão foi ameaçado.
Gerência Ad Hoc • Comandos • Netstat • ARP
ICMP • Internet controlmessageprotocol • Ping envia msg ICMP request • Recebe um ICMP REPLY
ARP • Addressresolutionprotocol • 192.168.1.36 • 18:17:25: 1d:50:8c gw
Packet Internet Gopher noun 1 (alsopocketgopher)a burrowingrodentwithfur-linedpouchesontheoutsideofthecheeks, found in North and Central America. [Family Geomyidae: severalgeneraandspecies.] • informal anotherterm for ground squirrel. 2 (alsogophertortoise)a tortoiseofdrysandyregionsthatexcavatestunnels as shelterfromthesun, nativetothesouthern US. [Gopheruspolyphemus, familyTestudinidae.] 3 (alsoGopher) Computing a menu-based system for Internet searchinganddocumentretrieval, largelysupersededbythe World Wide Web.[1990s: namedafterthegophermascotoftheUniversityof Minnesota, wherethe system wasinvented.] ORIGIN late 18th cent.: perhapsfromCanadianFrenchgaufre‘
WikipédiaGopher • Gopheré um protocolo de redes de computadores que foi desenhado para distribuir, procurar e aceder a documentos na Internet, criado na Universidade de Minesota. • Características • Acessadoatravésda porta 70, as informaçõesacessadasatravés do Gopher ficamlocalizadasemservidoresapropriadosnosquaisroda um programaque as organizaporassunto, e as disponibilizaorganizadasemumaestruturahierárquicana forma de menus (diretórios), semelhanteàquela do seugerenciador de arquivos. • Cadavezquevocêclicasobreuma pasta o Gopher mostra a você as outras pastas e/ouarquivosque se encontramdentrodesta (navegapara um nívelmaisinternonahierarquia).
Ping Exercise Part 1 (30 points) Pick the address of a site you visit. You are going to use it to test some network diagnostics. What happened when you ping your site? Try it with a few more examples. What is happening? How can ping be useful?
Useful or not? • Simply pinging a remote host (a computer that is on one’s internet but not on one’s network) usually has an all or nothing outcome and as such can provide somewhat limited information • A sequence of pinging can provide more information (see MCSE TCP/IP for Dummies)
Pinging yourself using localhost or 127.0.0.1: verifies that TCP/IP has been installed and started correctly Reserved IP address
You can use another utility ipconfig to find your IP if you don’t know it
Go to the start command Select the option run and type command.com You now have the black window and we are going to use this to check our connection. Run ipconfig—what is your address? What can you tell from your about your connection?
Pinging the Gateway – timing out here may indicate a problem with the router
Gateway • Recall that one gets an internet by connecting more networks • The point at which data leaves one (local) network and enters another is known as a gateway • A node (a device on the Internet) can be either a gateway, router, or a host (end-point).
Host/Gateway • When you are looking at some site on the net, your computer and the one containing the site are hosts • On the other hand, the computers that direct the traffic, for example your Internet service provider (ISP) are gateway/router nodes.
Traceroute • A utility that traces (determines the route taken by) a packet from your computer (the local host) to some other host on the network • It doesn’t actually follow a single packet but sends out a series of packets • The packets are restricted in the number of “hops” they can take • It is limited by the time-to-live (TTL) field • When the limit is reached, information about the node is (should be) returned • Each consecutive packet is allowed one more hop
hop • A hop is when a packet is transmitted from one node to the next. • “Some Internet Service Providers (ISPs) advertise how many hops away from Internet backbone they are. Theoretically, the fewer hops it takes to get your data onto the backbone, the faster your access will be.” (webopedia)
Traceroute (Cont.) • Traceroute shows how many hops were required to reach the destination as well as the length of time for each hop. • When the web is sluggish, you can use traceroute to determine where the congestion lies.
Traceroute (Cont.) • The original traceroute was for UNIX utility • Windows has a traceroute utility called tracert. • Go to Start/Run, type cmd, and then type “tracert” followed by the domain name of the host. • For example: tracert www.webopedia.com
Tracert Exercise Part 2 (40 points) • Using the command.com and tracert command, find the command to • www.whatis.com • 139.84.19.200 • Ask your neighbor for their ip address—trace the route to them.
Other TCP/IP diagnostic commands • Nbtstat • Netstat • Ipconfig • Arp • Hostname • Route • Look up these commands and see what they mean. Prepare a table with the list and the job of each command….site your sources.
Another Exercise part 3 (30 points) • Find the ipconfig for your machine. • Open the command window • Look at the options for the NBTSTAT command. • Run the NBTSTAT command using your ip address for your machine. Use the –A option. What did you find out?