Browse Source

server starts up

System Administrator 6 years ago
parent
commit
6e79f32c4f

+ 80
- 49
.idea/workspace.xml View File

@@ -2,22 +2,16 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="a2cd3f2a-ecd9-43c0-a5b7-6ff3b5edd4e5" name="Default" comment="">
5
-      <change afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" afterDir="false" />
6
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/yourPacket.java" afterDir="false" />
5
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java" afterDir="false" />
7 6
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
8 7
       <change beforePath="$PROJECT_DIR$/output.pcap" beforeDir="false" afterPath="$PROJECT_DIR$/output.pcap" afterDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/pcap.iml" beforeDir="false" afterPath="$PROJECT_DIR$/pcap.iml" afterDir="false" />
10
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java" afterDir="false" />
11 9
       <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java" afterDir="false" />
12
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java" afterDir="false" />
13
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java" afterDir="false" />
14
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParserEntity.java" beforeDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/packets/yourPacket.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java" afterDir="false" />
15 11
       <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/PacketRepo/packetRepository.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/wyds/PacketRepo/packetRepository.class" afterDir="false" />
16 12
       <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/PacketTracker.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/wyds/PacketTracker.class" afterDir="false" />
17
-      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/packets/Capture.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/wyds/packets/Capture.class" afterDir="false" />
18
-      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/packets/PacketParserEntity.class" beforeDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/packets/yourPacket.class" beforeDir="false" />
19 14
       <change beforePath="$PROJECT_DIR$/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" beforeDir="false" afterPath="$PROJECT_DIR$/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" afterDir="false" />
20
-      <change beforePath="$PROJECT_DIR$/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" beforeDir="false" afterPath="$PROJECT_DIR$/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" afterDir="false" />
21 15
       <change beforePath="$PROJECT_DIR$/target/original-uber-pcap-1.0.0.jar" beforeDir="false" afterPath="$PROJECT_DIR$/target/original-uber-pcap-1.0.0.jar" afterDir="false" />
22 16
       <change beforePath="$PROJECT_DIR$/target/pcap-1.0.0.jar" beforeDir="false" afterPath="$PROJECT_DIR$/target/pcap-1.0.0.jar" afterDir="false" />
23 17
       <change beforePath="$PROJECT_DIR$/target/uber-pcap-1.0.0.jar" beforeDir="false" afterPath="$PROJECT_DIR$/target/uber-pcap-1.0.0.jar" afterDir="false" />
@@ -67,8 +61,8 @@
67 61
       <file leaf-file-name="PacketTracker.java" pinned="false" current-in-tab="false">
68 62
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java">
69 63
           <provider selected="true" editor-type-id="text-editor">
70
-            <state relative-caret-position="390">
71
-              <caret line="26" selection-start-line="26" selection-end-line="26" />
64
+            <state relative-caret-position="169">
65
+              <caret line="13" selection-start-line="13" selection-end-line="13" />
72 66
               <folding>
73 67
                 <element signature="imports" expanded="true" />
74 68
               </folding>
@@ -76,11 +70,34 @@
76 70
           </provider>
77 71
         </entry>
78 72
       </file>
79
-      <file leaf-file-name="yourPacket.java" pinned="false" current-in-tab="true">
80
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/yourPacket.java">
73
+      <file leaf-file-name="PacketEntity.java" pinned="false" current-in-tab="false">
74
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java">
81 75
           <provider selected="true" editor-type-id="text-editor">
82
-            <state relative-caret-position="357">
83
-              <caret line="47" column="8" selection-start-line="47" selection-start-column="8" selection-end-line="47" selection-end-column="8" />
76
+            <state relative-caret-position="30">
77
+              <caret line="2" selection-start-line="2" selection-end-line="2" />
78
+              <folding>
79
+                <element signature="e#609#610#0" expanded="true" />
80
+                <element signature="e#634#635#0" expanded="true" />
81
+                <element signature="e#668#669#0" expanded="true" />
82
+                <element signature="e#696#697#0" expanded="true" />
83
+                <element signature="e#779#780#0" expanded="true" />
84
+                <element signature="e#808#809#0" expanded="true" />
85
+                <element signature="e#852#853#0" expanded="true" />
86
+                <element signature="e#888#889#0" expanded="true" />
87
+                <element signature="e#990#991#0" expanded="true" />
88
+                <element signature="e#1021#1022#0" expanded="true" />
89
+                <element signature="e#1070#1071#0" expanded="true" />
90
+                <element signature="e#1110#1111#0" expanded="true" />
91
+              </folding>
92
+            </state>
93
+          </provider>
94
+        </entry>
95
+      </file>
96
+      <file leaf-file-name="PacketMapper.java" pinned="false" current-in-tab="false">
97
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java">
98
+          <provider selected="true" editor-type-id="text-editor">
99
+            <state relative-caret-position="345">
100
+              <caret line="23" column="5" selection-start-line="23" selection-start-column="5" selection-end-line="23" selection-end-column="5" />
84 101
               <folding>
85 102
                 <element signature="imports" expanded="true" />
86 103
               </folding>
@@ -91,8 +108,8 @@
91 108
       <file leaf-file-name="PacketParser.java" pinned="false" current-in-tab="false">
92 109
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java">
93 110
           <provider selected="true" editor-type-id="text-editor">
94
-            <state relative-caret-position="-153">
95
-              <caret line="25" lean-forward="true" selection-start-line="25" selection-end-line="25" />
111
+            <state relative-caret-position="27">
112
+              <caret line="37" column="29" lean-forward="true" selection-start-line="37" selection-start-column="29" selection-end-line="37" selection-end-column="29" />
96 113
               <folding>
97 114
                 <element signature="imports" expanded="true" />
98 115
                 <element signature="e#1768#1769#0" expanded="true" />
@@ -114,8 +131,8 @@
114 131
           </provider>
115 132
         </entry>
116 133
       </file>
117
-      <file leaf-file-name="packetRepository.java" pinned="false" current-in-tab="false">
118
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java">
134
+      <file leaf-file-name="PacketRepository.java" pinned="false" current-in-tab="true">
135
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java">
119 136
           <provider selected="true" editor-type-id="text-editor">
120 137
             <state relative-caret-position="135">
121 138
               <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
@@ -158,11 +175,14 @@
158 175
         <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
159 176
         <option value="$PROJECT_DIR$/pom.xml" />
160 177
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParserEntity.java" />
161
-        <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java" />
162 178
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java" />
163 179
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java" />
164 180
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java" />
165 181
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/yourPacket.java" />
182
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java" />
183
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java" />
184
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java" />
185
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java" />
166 186
       </list>
167 187
     </option>
168 188
   </component>
@@ -273,16 +293,6 @@
273 293
               <item name="pcap" type="462c0819:PsiDirectoryNode" />
274 294
               <item name="src" type="462c0819:PsiDirectoryNode" />
275 295
               <item name="main" type="462c0819:PsiDirectoryNode" />
276
-              <item name="java" type="462c0819:PsiDirectoryNode" />
277
-              <item name="com" type="462c0819:PsiDirectoryNode" />
278
-              <item name="wyds" type="462c0819:PsiDirectoryNode" />
279
-              <item name="packets" type="462c0819:PsiDirectoryNode" />
280
-            </path>
281
-            <path>
282
-              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
283
-              <item name="pcap" type="462c0819:PsiDirectoryNode" />
284
-              <item name="src" type="462c0819:PsiDirectoryNode" />
285
-              <item name="main" type="462c0819:PsiDirectoryNode" />
286 296
               <item name="resources" type="462c0819:PsiDirectoryNode" />
287 297
             </path>
288 298
           </expand>
@@ -449,12 +459,12 @@
449 459
       <updated>1531775306742</updated>
450 460
       <workItem from="1531775309911" duration="2309000" />
451 461
       <workItem from="1531779911018" duration="35716000" />
452
-      <workItem from="1532125318831" duration="29642000" />
462
+      <workItem from="1532125318831" duration="32878000" />
453 463
     </task>
454 464
     <servers />
455 465
   </component>
456 466
   <component name="TimeTrackingManager">
457
-    <option name="totallyTimeSpent" value="67667000" />
467
+    <option name="totallyTimeSpent" value="70903000" />
458 468
   </component>
459 469
   <component name="ToolWindowManager">
460 470
     <frame x="51" y="22" width="1629" height="970" extended-state="0" />
@@ -478,7 +488,7 @@
478 488
       <window_info anchor="right" id="Capture Analysis" order="3" />
479 489
       <window_info anchor="bottom" id="Version Control" order="7" />
480 490
       <window_info anchor="bottom" id="Run" order="2" weight="0.32923076" />
481
-      <window_info anchor="bottom" id="Spring" order="8" weight="0.32923076" />
491
+      <window_info anchor="bottom" id="Spring" order="8" weight="0.32875144" />
482 492
       <window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.36540663" />
483 493
       <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.17706364" />
484 494
       <window_info anchor="right" id="Bean Validation" order="4" />
@@ -544,7 +554,7 @@
544 554
         </state>
545 555
       </provider>
546 556
     </entry>
547
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java">
557
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java">
548 558
       <provider selected="true" editor-type-id="text-editor">
549 559
         <state relative-caret-position="75">
550 560
           <caret line="7" column="17" selection-start-line="7" selection-start-column="17" selection-end-line="7" selection-end-column="17" />
@@ -678,10 +688,10 @@
678 688
         </state>
679 689
       </provider>
680 690
     </entry>
681
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/packetRepository.java">
691
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java">
682 692
       <provider selected="true" editor-type-id="text-editor">
683
-        <state relative-caret-position="135">
684
-          <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
693
+        <state relative-caret-position="-618">
694
+          <caret line="12" column="34" lean-forward="true" selection-start-line="12" selection-start-column="34" selection-end-line="12" selection-end-column="34" />
685 695
           <folding>
686 696
             <element signature="imports" expanded="true" />
687 697
           </folding>
@@ -690,8 +700,8 @@
690 700
     </entry>
691 701
     <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java">
692 702
       <provider selected="true" editor-type-id="text-editor">
693
-        <state relative-caret-position="-153">
694
-          <caret line="25" lean-forward="true" selection-start-line="25" selection-end-line="25" />
703
+        <state relative-caret-position="27">
704
+          <caret line="37" column="29" lean-forward="true" selection-start-line="37" selection-start-column="29" selection-end-line="37" selection-end-column="29" />
695 705
           <folding>
696 706
             <element signature="imports" expanded="true" />
697 707
             <element signature="e#1768#1769#0" expanded="true" />
@@ -700,30 +710,51 @@
700 710
         </state>
701 711
       </provider>
702 712
     </entry>
703
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java">
713
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java">
704 714
       <provider selected="true" editor-type-id="text-editor">
705
-        <state relative-caret-position="390">
706
-          <caret line="26" selection-start-line="26" selection-end-line="26" />
715
+        <state relative-caret-position="345">
716
+          <caret line="23" column="5" selection-start-line="23" selection-start-column="5" selection-end-line="23" selection-end-column="5" />
707 717
           <folding>
708 718
             <element signature="imports" expanded="true" />
709 719
           </folding>
710 720
         </state>
711 721
       </provider>
712 722
     </entry>
713
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java">
723
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java">
714 724
       <provider selected="true" editor-type-id="text-editor">
715
-        <state relative-caret-position="-618">
716
-          <caret line="12" column="34" lean-forward="true" selection-start-line="12" selection-start-column="34" selection-end-line="12" selection-end-column="34" />
725
+        <state relative-caret-position="169">
726
+          <caret line="13" selection-start-line="13" selection-end-line="13" />
717 727
           <folding>
718 728
             <element signature="imports" expanded="true" />
719 729
           </folding>
720 730
         </state>
721 731
       </provider>
722 732
     </entry>
723
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/yourPacket.java">
733
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java">
724 734
       <provider selected="true" editor-type-id="text-editor">
725
-        <state relative-caret-position="357">
726
-          <caret line="47" column="8" selection-start-line="47" selection-start-column="8" selection-end-line="47" selection-end-column="8" />
735
+        <state relative-caret-position="30">
736
+          <caret line="2" selection-start-line="2" selection-end-line="2" />
737
+          <folding>
738
+            <element signature="e#609#610#0" expanded="true" />
739
+            <element signature="e#634#635#0" expanded="true" />
740
+            <element signature="e#668#669#0" expanded="true" />
741
+            <element signature="e#696#697#0" expanded="true" />
742
+            <element signature="e#779#780#0" expanded="true" />
743
+            <element signature="e#808#809#0" expanded="true" />
744
+            <element signature="e#852#853#0" expanded="true" />
745
+            <element signature="e#888#889#0" expanded="true" />
746
+            <element signature="e#990#991#0" expanded="true" />
747
+            <element signature="e#1021#1022#0" expanded="true" />
748
+            <element signature="e#1070#1071#0" expanded="true" />
749
+            <element signature="e#1110#1111#0" expanded="true" />
750
+          </folding>
751
+        </state>
752
+      </provider>
753
+    </entry>
754
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java">
755
+      <provider selected="true" editor-type-id="text-editor">
756
+        <state relative-caret-position="135">
757
+          <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
727 758
           <folding>
728 759
             <element signature="imports" expanded="true" />
729 760
           </folding>

BIN
output.pcap View File


src/main/java/com/wyds/PacketRepo/packetRepository.java → src/main/java/com/wyds/PacketRepo/PacketRepository.java View File

@@ -3,7 +3,7 @@ package com.wyds.PacketRepo;
3 3
 import org.springframework.data.jpa.repository.JpaRepository;
4 4
 import org.springframework.stereotype.Repository;
5 5
 
6
-@Repository
7
-public interface packetRepository extends JpaRepository<String, Long> {
6
+
7
+interface PacketRepository {
8 8
     // String save(String p);
9 9
 }

+ 6
- 7
src/main/java/com/wyds/PacketTracker.java View File

@@ -1,30 +1,29 @@
1 1
 package com.wyds;
2 2
 
3
-import com.wyds.PacketRepo.packetRepository;
4 3
 import com.wyds.packets.Capture;
4
+import com.wyds.packets.PacketMapper;
5 5
 import com.wyds.packets.PacketParser;
6
-import com.wyds.packets.yourPacket;
6
+import com.wyds.packets.PacketEntity;
7 7
 import org.pcap4j.core.*;
8 8
 
9 9
 import java.io.IOException;
10 10
 
11
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
11
+import org.springframework.boot.SpringApplication;
12 12
 import org.springframework.boot.autoconfigure.SpringBootApplication;
13 13
 
14
-@EnableAutoConfiguration
15 14
 @SpringBootApplication
16 15
 public class PacketTracker {
17 16
     public static void main(String[] args) throws PcapNativeException, NotOpenException, IOException {
18 17
 
19
-       // SpringApplication.run(PacketTracker.class, args);
20 18
         Capture c = new Capture();
21 19
         PacketParser parser = new PacketParser();
22
-        yourPacket packet = new yourPacket();
20
+        PacketMapper pm = new PacketMapper();
23 21
 
24 22
         //runners
23
+        SpringApplication.run(PacketTracker.class, args);
25 24
         c.capturePack();
26 25
         parser.parseUDP();
27
-        packet.packet();
26
+        pm.packet();
28 27
 
29 28
 
30 29
 

+ 62
- 0
src/main/java/com/wyds/packets/PacketEntity.java View File

@@ -0,0 +1,62 @@
1
+package com.wyds.packets;
2
+
3
+
4
+
5
+import javax.persistence.*;
6
+
7
+@Entity
8
+@Table(name = "pcap")
9
+public class PacketEntity {
10
+
11
+    @Id
12
+    @GeneratedValue(strategy = GenerationType.AUTO)
13
+    @Column(name = "id")
14
+    private Long id;
15
+
16
+    public Long getId() {
17
+        return id;
18
+    }
19
+    public void setId(Long id) {
20
+        this.id = id;
21
+    }
22
+
23
+
24
+    @Column(name = "packet")
25
+    String packet;
26
+
27
+    public String getPacket() {
28
+        return packet;
29
+    }
30
+    public void setPacket(String packet) {
31
+        this.packet = packet;
32
+    }
33
+
34
+
35
+    @Column(name = "packetID")
36
+    private Integer packetID;
37
+
38
+    public Integer getPacketID() {
39
+        return packetID;
40
+    }
41
+    public void setPacketID(Integer packetID) {
42
+        this.packetID = packetID;
43
+    }
44
+
45
+
46
+
47
+    public PacketEntity(Long id, Integer packetID, String packet) {
48
+        this.id = id;
49
+        this.packetID = packetID;
50
+        this.packet = packet;
51
+    }
52
+
53
+    public PacketEntity() {
54
+    }
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+}

+ 26
- 0
src/main/java/com/wyds/packets/PacketMapper.java View File

@@ -0,0 +1,26 @@
1
+package com.wyds.packets;
2
+
3
+import java.io.IOException;
4
+import java.util.HashMap;
5
+import java.util.Map;
6
+
7
+public class PacketMapper {
8
+
9
+    private PacketParser parser = new PacketParser();
10
+    private Map<Integer, String> packetMap = new HashMap<>();
11
+
12
+    public Map<Integer, String> packet() throws IOException {
13
+        parser.parseUDP();
14
+
15
+        for (int i = 0; i < parser.getPacketList().size(); i++) {
16
+            packetMap.put(i, parser.getPacketList().get(i));
17
+
18
+            //use this in a POST method?
19
+            // packetRepository.save(packetMap.get(i));
20
+
21
+        }
22
+        System.out.println(packetMap);
23
+        return packetMap;
24
+    }
25
+
26
+}

+ 0
- 58
src/main/java/com/wyds/packets/yourPacket.java View File

@@ -1,58 +0,0 @@
1
-package com.wyds.packets;
2
-
3
-
4
-import com.wyds.PacketRepo.packetRepository;
5
-import org.springframework.beans.factory.annotation.Autowired;
6
-
7
-import javax.persistence.*;
8
-import java.io.IOException;
9
-import java.util.HashMap;
10
-import java.util.Map;
11
-
12
-@Entity
13
-@Table(name = "pcap")
14
-public class yourPacket {
15
-
16
-    PacketParser parser = new PacketParser();
17
-    Map<Integer,String> packetMap = new HashMap<>();
18
-
19
-    @Autowired
20
-    packetRepository packetRepository;
21
-
22
-    @Id
23
-    @GeneratedValue(strategy = GenerationType.AUTO)
24
-    @Column(name = "id")
25
-    private Long id;
26
-
27
-    @Column(name = "packet")
28
-    String packet;
29
-
30
-    @Column(name = "packetID")
31
-    private Integer packetID;
32
-
33
-    public yourPacket(Long id, Integer packetID, String packet) {
34
-        this.id = id;
35
-        this.packetID= packetID;
36
-        this.packet = packet;
37
-    }
38
-
39
-    public yourPacket() { }
40
-
41
-
42
-    public Map<Integer, String> packet() throws IOException {
43
-        parser.parseUDP();
44
-
45
-        for (int i = 0; i < parser.getPacketList().size(); i++) {
46
-            /*for (String p : parser.getPacketList()) {
47
-                packetMap.put(i, p);
48
-                System.out.println(p);
49
-                //packetRepository.save(p);
50
-            }*/
51
-            packetMap.put(i,parser.getPacketList().get(i));
52
-
53
-        }
54
-        System.out.println(packetMap);
55
-        return packetMap;
56
-    }
57
-
58
-}

BIN
target/classes/com/wyds/PacketRepo/packetRepository.class View File


BIN
target/classes/com/wyds/PacketTracker.class View File


BIN
target/classes/com/wyds/packets/PacketEntity.class View File


BIN
target/classes/com/wyds/packets/PacketMapper.class View File


BIN
target/classes/com/wyds/packets/yourPacket.class View File


+ 3
- 2
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst View File

@@ -1,5 +1,6 @@
1
+com/wyds/PacketRepo/PacketRepository.class
1 2
 com/wyds/packets/Capture.class
2 3
 com/wyds/PacketTracker.class
3 4
 com/wyds/packets/PacketParser.class
4
-com/wyds/packets/yourPacket.class
5
-com/wyds/PacketRepo/packetRepository.class
5
+com/wyds/packets/PacketMapper.class
6
+com/wyds/packets/PacketEntity.class

BIN
target/original-uber-pcap-1.0.0.jar View File


BIN
target/pcap-1.0.0.jar View File


BIN
target/uber-pcap-1.0.0.jar View File