소스 검색

Correcciones gramaticales, espanol, ingles y codigos

SaraB 7 년 전
부모
커밋
59f74d0fc7
6개의 변경된 파일17개의 추가작업 그리고 17개의 파일을 삭제
  1. 4
    4
      README-en.md
  2. 3
    3
      README-es.md
  3. 2
    2
      mainwindow.cpp
  4. 3
    3
      mainwindow.h
  5. 2
    2
      sniffer.cpp
  6. 3
    3
      sniffer.h

+ 4
- 4
README-en.md 파일 보기

38
 
38
 
39
 ### Classes
39
 ### Classes
40
 
40
 
41
-A class is a description of the data and processes of an object. The class’s declaration establishes the attributes that each of the objects of the class will have, and the methods that it can invoke.
41
+A class is a description of the data and processes of an object. The class declaration establishes the attributes that each of the objects of the class will have, and the methods that it can invoke.
42
 
42
 
43
 The attributes and methods of a class can have one the following levels of access: private, protected and public. An object's **public** data members can be read or modified by any function that has access to the object (including external functions). An object's **private** data members can only be read or modified through the object's **member** functions .  Unless specified otherwise, the attributes and methods defined in a class will be **private**.  Protected members allow read/write access from member functions and those of inherited classes. 
43
 The attributes and methods of a class can have one the following levels of access: private, protected and public. An object's **public** data members can be read or modified by any function that has access to the object (including external functions). An object's **private** data members can only be read or modified through the object's **member** functions .  Unless specified otherwise, the attributes and methods defined in a class will be **private**.  Protected members allow read/write access from member functions and those of inherited classes. 
44
 
44
 
95
 
95
 
96
 A packet sniffer (also known as packet analyzer - protocol analyzer - or network analyzer) is a computer program that can intercept and log traffic passing over a digital network, or network device. As data flows across the network, the sniffer captures each packet and, if needed, decodes the packet's raw data[1].
96
 A packet sniffer (also known as packet analyzer - protocol analyzer - or network analyzer) is a computer program that can intercept and log traffic passing over a digital network, or network device. As data flows across the network, the sniffer captures each packet and, if needed, decodes the packet's raw data[1].
97
 
97
 
98
-Each packet captured by a sniffer has a structure similar to the ilustration in Figure 1.
98
+Each packet captured by a sniffer has a structure similar to the illustration in Figure 1.
99
 
99
 
100
 ---
100
 ---
101
 
101
 
122
 
122
 
123
 In this laboratory experience, you will complete a simple packet sniffer that captures all the IP packets that flow through your laboratory computer, and some additional information of the packets.  Additionally, it detects the non encrypted requests of images in the web, and displays the images in the GUI.
123
 In this laboratory experience, you will complete a simple packet sniffer that captures all the IP packets that flow through your laboratory computer, and some additional information of the packets.  Additionally, it detects the non encrypted requests of images in the web, and displays the images in the GUI.
124
 
124
 
125
-For the purposes of this lab, we will think of TIP packets as being a *specialization* of Ethernet packets.  As such, it is a good strategy to implement the IP packet as class that is *derived* from the Ethernet packet class through inheritance. Thus, the IP packet class will have all the data members and methods of the Ethernet class (for example, source and destination MAC addresses) plus additional data members and methods that apply specifically to IP Packets (for example source and destination ports).
125
+For the purposes of this lab, we will think of IP packets as being a *specialization* of Ethernet packets.  As such, it is a good strategy to implement the IP packet as class that is *derived* from the Ethernet packet class through inheritance. Thus, the IP packet class will have all the data members and methods of the Ethernet class (for example, source and destination MAC addresses) plus additional data members and methods that apply specifically to IP Packets (for example source and destination ports).
126
 
126
 
127
 
127
 
128
 ---
128
 ---
260
 
260
 
261
 ## References
261
 ## References
262
 
262
 
263
-[1] http://en.wikipedia.org/wiki/Packet_analyzer
263
+[1] http://en.wikipedia.org/wiki/Packet_analyzer

+ 3
- 3
README-es.md 파일 보기

48
 
48
 
49
 Una clase es una descripción de los datos y procesos de un objeto. La declaración de una clase establece los atributos que tendrá cada objeto de esa clase y los métodos que pueden invocar.
49
 Una clase es una descripción de los datos y procesos de un objeto. La declaración de una clase establece los atributos que tendrá cada objeto de esa clase y los métodos que pueden invocar.
50
 
50
 
51
-Los atributos y métodos de una clase pueden tener uno de los siguientes niveles de acceso: *private*, *protected* y *public*. Los miembros de datos que se declaran **public** pueden ser leidos y modificados desde cualquier función (inclusive de funciones externas). Los miembros de datos **private** solo pueden ser leidos o modificados por las funciones miembro de la clase. Si no se especifica lo contrario, los atributos y métodos definidos en una clase serán privados. Los miembros de datos **protected** solo pueden ser leidos/modificados por funciones miembro de la clase o de clases hijas. 
51
+Los atributos y métodos de una clase pueden tener uno de los siguientes niveles de acceso: *private*, *protected* y *public*. Los miembros de datos que se declaran **public** pueden ser leídos y modificados desde cualquier función (incluso de funciones externas). Los miembros de datos **private** solo pueden ser leídos o modificados por las funciones miembro de la clase. Si no se especifica lo contrario, los atributos y métodos definidos en una clase serán privados. Los miembros de datos **protected** solo pueden ser leídos/modificados por funciones miembro de la clase o de clases hijas. 
52
 
52
 
53
 Lo siguiente es el esqueleto de la declaración de una clase:
53
 Lo siguiente es el esqueleto de la declaración de una clase:
54
 
54
 
84
 
84
 
85
 ## Comunicación entre computadoras
85
 ## Comunicación entre computadoras
86
 
86
 
87
-Las computadoras se comunican por medio del Internet utilizando el *Protocolo de Internet* (IP - por sus siglas en inglés). Cuando una computadora envía información a otra computadora, la información se envía por *Paquetes de Internet* que contienen la *dirección fuente* ("source address"), que es la dirección de Internet de la computadora que está enviando la información, y la *dirección destino* ("destination address"), que es la dirección de Internet de la computadora que debe recibir el mensaje. Las direcciones de Internet se usan para guiar la información de una computadora a otra, pero una vez el paquete llega a su destino, ¿quién se supone que reciba la información? ¿Cuál aplicación debe recibir la información?
87
+Las computadoras se comunican por medio del Internet utilizando el *Protocolo de Internet* (IP - por sus siglas en inglés). Cuando una computadora envía información a otra computadora, la información se envía por *Paquetes de Internet* que contienen la *dirección fuente* ("source address"), que es la dirección de Internet de la computadora que está enviando la información, y la *dirección destino* ("destination address"), que es la dirección de Internet de la computadora que debe recibir el mensaje. Las direcciones de Internet se usan para guiar la información de una computadora a otra, pero una vez el paquete llega a su destino, ¿quién se supone que reciba la información? ¿Qué aplicación debe recibir la información?
88
 
88
 
89
 Los paquetes de internet también deben especificar la aplicación que envía la información y la aplicación que debe recibirla. Podemos pensar que las direcciones de Internet son las direcciones de correo de una casa, y que las aplicaciones que envían y reciben la información, son las personas que envían y reciben la correspondencia. Para enviar una carta por correo, hay que especificar a qué persona se le está enviando la carta. Esto corresponde a especificar la aplicación que recibe la información. Para identificar la aplicación fuente y la aplicación de destino, el protocolo de Internet usa lo que se conoce como *números de puerto*. De este modo, mirando la información del paquete, se pueden identificar las direcciones y puertos de la fuente y del destino.
89
 Los paquetes de internet también deben especificar la aplicación que envía la información y la aplicación que debe recibirla. Podemos pensar que las direcciones de Internet son las direcciones de correo de una casa, y que las aplicaciones que envían y reciben la información, son las personas que envían y reciben la correspondencia. Para enviar una carta por correo, hay que especificar a qué persona se le está enviando la carta. Esto corresponde a especificar la aplicación que recibe la información. Para identificar la aplicación fuente y la aplicación de destino, el protocolo de Internet usa lo que se conoce como *números de puerto*. De este modo, mirando la información del paquete, se pueden identificar las direcciones y puertos de la fuente y del destino.
90
 
90
 
120
 Dentro de la estructura mostrada en la Figura 1 se encuentra:
120
 Dentro de la estructura mostrada en la Figura 1 se encuentra:
121
 
121
 
122
 1. **Destination MAC Address** y **Source Mac Address**: son las direcciones MAC de la fuente y el destino.
122
 1. **Destination MAC Address** y **Source Mac Address**: son las direcciones MAC de la fuente y el destino.
123
-3. **Ether Type**: se utiliza para indicar el tipo de de protocolo utilizado en el **payload**. Uno de los **payloads** posibles es un paquete de IP.
123
+3. **Ether Type**: se utiliza para indicar el tipo de protocolo utilizado en el **payload**. Uno de los **payloads** posibles es un paquete de IP.
124
 4. **Payload**: contiene un paquete de IP (en realidad puede contener otras cosas, pero para esta experiencia de laboratorio asumiremos que solamente contiene IP).
124
 4. **Payload**: contiene un paquete de IP (en realidad puede contener otras cosas, pero para esta experiencia de laboratorio asumiremos que solamente contiene IP).
125
 
125
 
126
 
126
 

+ 2
- 2
mainwindow.cpp 파일 보기

16
 
16
 
17
     /* Starts the sniffer thread and connect the signals between
17
     /* Starts the sniffer thread and connect the signals between
18
        the sniffer and the GUI
18
        the sniffer and the GUI
19
-       Comienza el hilo del sniffer y conecta las sinales entre
19
+       Comienza el hilo del sniffer y conecta las senales entre
20
        el sniffer y el GUI
20
        el sniffer y el GUI
21
     */
21
     */
22
     pause = 0;
22
     pause = 0;
46
 
46
 
47
 /// \fn void MainWindow::slot_netwManagerFinished(QNetworkReply *reply)
47
 /// \fn void MainWindow::slot_netwManagerFinished(QNetworkReply *reply)
48
 /// \~English
48
 /// \~English
49
-/// \brief This slot is called when an image is successfuly retreived.
49
+/// \brief This slot is called when an image is successfuly retrieved.
50
 /// The image is then added to the GUI display.
50
 /// The image is then added to the GUI display.
51
 /// \param reply object that contains the reply to our request.
51
 /// \param reply object that contains the reply to our request.
52
 /// \~Spanish
52
 /// \~Spanish

+ 3
- 3
mainwindow.h 파일 보기

47
 
47
 
48
     /// \fn void MainWindow::on_capture_clicked()
48
     /// \fn void MainWindow::on_capture_clicked()
49
     /// \~English
49
     /// \~English
50
-    /// \brief Signal that starts or pause the capture of the packets in the sniffer.
50
+    /// \brief Signal that starts or pauses the capture of the packets in the sniffer.
51
     /// \~Spanish
51
     /// \~Spanish
52
-    /// \brief Senal que inicial o pausa la captura de paquetes en el sniffer
52
+    /// \brief Senal que inicia o pausa la captura de paquetes en el sniffer
53
     void on_capture_clicked();
53
     void on_capture_clicked();
54
 
54
 
55
     /// \fn void MainWindow::on_packetDisplay_itemClicked(QTableWidgetItem *item)
55
     /// \fn void MainWindow::on_packetDisplay_itemClicked(QTableWidgetItem *item)
90
 
90
 
91
     /// \fn void MainWindow::slot_netwManagerFinished(QNetworkReply *reply)
91
     /// \fn void MainWindow::slot_netwManagerFinished(QNetworkReply *reply)
92
     /// \~English
92
     /// \~English
93
-    /// \brief This slot is called when an image is successfuly retreived.
93
+    /// \brief This slot is called when an image is successfuly retrieved.
94
     /// The image is then added to the GUI display.
94
     /// The image is then added to the GUI display.
95
     /// \param reply object that contains the reply to our request.
95
     /// \param reply object that contains the reply to our request.
96
     /// \~Spanish
96
     /// \~Spanish

+ 2
- 2
sniffer.cpp 파일 보기

73
     }
73
     }
74
 
74
 
75
     /* make sure we're capturing on an Ethernet device */
75
     /* make sure we're capturing on an Ethernet device */
76
-    /* se asegura que se esta caputando en un dispositivo de Ethernet */
76
+    /* se asegura que se esta capturando en un dispositivo de Ethernet */
77
     if (pcap_datalink(handle) != DLT_EN10MB) {
77
     if (pcap_datalink(handle) != DLT_EN10MB) {
78
      fprintf(stderr, "%s is not an Ethernet\n", dev);
78
      fprintf(stderr, "%s is not an Ethernet\n", dev);
79
      exit(EXIT_FAILURE);
79
      exit(EXIT_FAILURE);
383
 
383
 
384
 /// \fn void Sniffer::got_packet(const struct pcap_pkthdr *, const u_char *packet)
384
 /// \fn void Sniffer::got_packet(const struct pcap_pkthdr *, const u_char *packet)
385
 /// \~English
385
 /// \~English
386
-/// \brief Disects the received packet. Takes out the info needed.
386
+/// \brief Dissects the received packet. Takes out the info needed.
387
 /// \param pcap_pkthdr header of the pcap packet
387
 /// \param pcap_pkthdr header of the pcap packet
388
 /// \param packet recieved packet
388
 /// \param packet recieved packet
389
 /// \~Spanish
389
 /// \~Spanish

+ 3
- 3
sniffer.h 파일 보기

85
 
85
 
86
     /// \fn string Sniffer::format_payload(const char *payload, int len)
86
     /// \fn string Sniffer::format_payload(const char *payload, int len)
87
     /// \~English
87
     /// \~English
88
-    /// \brief Formats the payload from a byte stream into a string of ascci
88
+    /// \brief Formats the payload from a byte stream into a string of ascii
89
     /// \param payload payload of the packet
89
     /// \param payload payload of the packet
90
     /// \param len length of the packet
90
     /// \param len length of the packet
91
     /// \return the payload in a string of ascii
91
     /// \return the payload in a string of ascii
128
     /// \brief Sets the device to capture packets to dev
128
     /// \brief Sets the device to capture packets to dev
129
     /// \param dev name of the device
129
     /// \param dev name of the device
130
     /// \~Spanish
130
     /// \~Spanish
131
-    /// \brief Ajusta el dispositivo para caputurar paquetes a dev
131
+    /// \brief Ajusta el dispositivo para capturar paquetes a dev
132
     /// \param dev nombre del dispositivo
132
     /// \param dev nombre del dispositivo
133
     void setDevice(string) ;
133
     void setDevice(string) ;
134
 
134
 
173
 
173
 
174
     /// \fn void Sniffer::got_packet(const struct pcap_pkthdr *, const u_char *packet)
174
     /// \fn void Sniffer::got_packet(const struct pcap_pkthdr *, const u_char *packet)
175
     /// \~English
175
     /// \~English
176
-    /// \brief Disects the received packet. Takes out the info needed.
176
+    /// \brief Dissects the received packet. Takes out the info needed.
177
     /// \param pcap_pkthdr header of the pcap packet
177
     /// \param pcap_pkthdr header of the pcap packet
178
     /// \param packet recieved packet
178
     /// \param packet recieved packet
179
     /// \~Spanish
179
     /// \~Spanish