System Administrator vor 6 Jahren
Ursprung
Commit
173340660e

+ 103
- 88
.idea/workspace.xml Datei anzeigen

@@ -2,19 +2,11 @@
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$/src/main/java/com/wyds/packets/PacketMapper.java" afterDir="false" />
6
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7 5
       <change beforePath="$PROJECT_DIR$/output.pcap" beforeDir="false" afterPath="$PROJECT_DIR$/output.pcap" 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" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java" afterDir="false" />
7
+      <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" />
9 8
       <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" />
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" />
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" />
12
-      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/PacketTracker.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/wyds/PacketTracker.class" afterDir="false" />
13
-      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/packets/yourPacket.class" beforeDir="false" />
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" />
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" />
16
-      <change beforePath="$PROJECT_DIR$/target/pcap-1.0.0.jar" beforeDir="false" afterPath="$PROJECT_DIR$/target/pcap-1.0.0.jar" afterDir="false" />
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" />
9
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java" afterDir="false" />
18 10
     </list>
19 11
     <ignored path="$PROJECT_DIR$/target/" />
20 12
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -61,8 +53,8 @@
61 53
       <file leaf-file-name="PacketTracker.java" pinned="false" current-in-tab="false">
62 54
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java">
63 55
           <provider selected="true" editor-type-id="text-editor">
64
-            <state relative-caret-position="169">
65
-              <caret line="13" selection-start-line="13" selection-end-line="13" />
56
+            <state relative-caret-position="319">
57
+              <caret line="24" column="57" lean-forward="true" selection-start-line="24" selection-start-column="57" selection-end-line="24" selection-end-column="57" />
66 58
               <folding>
67 59
                 <element signature="imports" expanded="true" />
68 60
               </folding>
@@ -73,21 +65,21 @@
73 65
       <file leaf-file-name="PacketEntity.java" pinned="false" current-in-tab="false">
74 66
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java">
75 67
           <provider selected="true" editor-type-id="text-editor">
76
-            <state relative-caret-position="30">
77
-              <caret line="2" selection-start-line="2" selection-end-line="2" />
68
+            <state relative-caret-position="345">
69
+              <caret line="23" lean-forward="true" selection-start-line="23" selection-end-line="23" />
78 70
               <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" />
71
+                <element signature="e#578#579#0" expanded="true" />
72
+                <element signature="e#603#604#0" expanded="true" />
73
+                <element signature="e#636#637#0" expanded="true" />
74
+                <element signature="e#664#665#0" expanded="true" />
75
+                <element signature="e#834#835#0" expanded="true" />
76
+                <element signature="e#865#866#0" expanded="true" />
77
+                <element signature="e#913#914#0" expanded="true" />
78
+                <element signature="e#953#954#0" expanded="true" />
79
+                <element signature="e#849#850#0" expanded="true" />
80
+                <element signature="e#878#879#0" expanded="true" />
81
+                <element signature="e#921#922#0" expanded="true" />
82
+                <element signature="e#957#958#0" expanded="true" />
91 83
               </folding>
92 84
             </state>
93 85
           </provider>
@@ -96,8 +88,8 @@
96 88
       <file leaf-file-name="PacketMapper.java" pinned="false" current-in-tab="false">
97 89
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java">
98 90
           <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" />
91
+            <state relative-caret-position="330">
92
+              <caret line="22" column="24" selection-start-line="22" selection-start-column="24" selection-end-line="22" selection-end-column="24" />
101 93
               <folding>
102 94
                 <element signature="imports" expanded="true" />
103 95
               </folding>
@@ -105,11 +97,11 @@
105 97
           </provider>
106 98
         </entry>
107 99
       </file>
108
-      <file leaf-file-name="PacketParser.java" pinned="false" current-in-tab="false">
100
+      <file leaf-file-name="PacketParser.java" pinned="false" current-in-tab="true">
109 101
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java">
110 102
           <provider selected="true" editor-type-id="text-editor">
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" />
103
+            <state relative-caret-position="165">
104
+              <caret line="36" lean-forward="true" selection-start-line="36" selection-end-line="36" />
113 105
               <folding>
114 106
                 <element signature="imports" expanded="true" />
115 107
                 <element signature="e#1768#1769#0" expanded="true" />
@@ -131,11 +123,11 @@
131 123
           </provider>
132 124
         </entry>
133 125
       </file>
134
-      <file leaf-file-name="PacketRepository.java" pinned="false" current-in-tab="true">
126
+      <file leaf-file-name="PacketRepository.java" pinned="false" current-in-tab="false">
135 127
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java">
136 128
           <provider selected="true" editor-type-id="text-editor">
137
-            <state relative-caret-position="135">
138
-              <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
129
+            <state relative-caret-position="180">
130
+              <caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" />
139 131
               <folding>
140 132
                 <element signature="imports" expanded="true" />
141 133
               </folding>
@@ -146,8 +138,12 @@
146 138
       <file leaf-file-name="PacketController.java" pinned="false" current-in-tab="false">
147 139
         <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java">
148 140
           <provider selected="true" editor-type-id="text-editor">
149
-            <state relative-caret-position="120">
150
-              <caret line="8" selection-start-line="8" selection-end-line="8" />
141
+            <state relative-caret-position="255">
142
+              <caret line="19" column="28" lean-forward="true" selection-start-line="19" selection-start-column="28" selection-end-line="19" selection-end-column="28" />
143
+              <folding>
144
+                <element signature="imports" expanded="true" />
145
+                <element signature="e#517#518#0" expanded="true" />
146
+              </folding>
151 147
             </state>
152 148
           </provider>
153 149
         </entry>
@@ -171,7 +167,6 @@
171 167
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/CoinMiner.java" />
172 168
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/SpringAppStarter.java" />
173 169
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketTracker.java" />
174
-        <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java" />
175 170
         <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
176 171
         <option value="$PROJECT_DIR$/pom.xml" />
177 172
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParserEntity.java" />
@@ -180,9 +175,10 @@
180 175
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java" />
181 176
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/yourPacket.java" />
182 177
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java" />
178
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java" />
183 179
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java" />
180
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java" />
184 181
         <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" />
186 182
       </list>
187 183
     </option>
188 184
   </component>
@@ -213,7 +209,7 @@
213 209
   <component name="NodePackageJsonFileManager">
214 210
     <packageJsonPaths />
215 211
   </component>
216
-  <component name="ProjectFrameBounds">
212
+  <component name="ProjectFrameBounds" extendedState="1">
217 213
     <option name="x" value="51" />
218 214
     <option name="y" value="22" />
219 215
     <option name="width" value="1629" />
@@ -293,6 +289,16 @@
293 289
               <item name="pcap" type="462c0819:PsiDirectoryNode" />
294 290
               <item name="src" type="462c0819:PsiDirectoryNode" />
295 291
               <item name="main" type="462c0819:PsiDirectoryNode" />
292
+              <item name="java" type="462c0819:PsiDirectoryNode" />
293
+              <item name="com" type="462c0819:PsiDirectoryNode" />
294
+              <item name="wyds" type="462c0819:PsiDirectoryNode" />
295
+              <item name="packets" type="462c0819:PsiDirectoryNode" />
296
+            </path>
297
+            <path>
298
+              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
299
+              <item name="pcap" type="462c0819:PsiDirectoryNode" />
300
+              <item name="src" type="462c0819:PsiDirectoryNode" />
301
+              <item name="main" type="462c0819:PsiDirectoryNode" />
296 302
               <item name="resources" type="462c0819:PsiDirectoryNode" />
297 303
             </path>
298 304
           </expand>
@@ -459,15 +465,16 @@
459 465
       <updated>1531775306742</updated>
460 466
       <workItem from="1531775309911" duration="2309000" />
461 467
       <workItem from="1531779911018" duration="35716000" />
462
-      <workItem from="1532125318831" duration="32878000" />
468
+      <workItem from="1532125318831" duration="36061000" />
463 469
     </task>
464 470
     <servers />
465 471
   </component>
466 472
   <component name="TimeTrackingManager">
467
-    <option name="totallyTimeSpent" value="70903000" />
473
+    <option name="totallyTimeSpent" value="74086000" />
468 474
   </component>
469 475
   <component name="ToolWindowManager">
470 476
     <frame x="51" y="22" width="1629" height="970" extended-state="0" />
477
+    <editor active="true" />
471 478
     <layout>
472 479
       <window_info anchor="right" id="Palette" order="3" />
473 480
       <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
@@ -568,6 +575,10 @@
568 575
       <provider selected="true" editor-type-id="text-editor">
569 576
         <state relative-caret-position="120">
570 577
           <caret line="8" selection-start-line="8" selection-end-line="8" />
578
+          <folding>
579
+            <element signature="imports" expanded="true" />
580
+            <element signature="e#517#518#0" expanded="true" />
581
+          </folding>
571 582
         </state>
572 583
       </provider>
573 584
     </entry>
@@ -632,13 +643,6 @@
632 643
         </state>
633 644
       </provider>
634 645
     </entry>
635
-    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
636
-      <provider selected="true" editor-type-id="text-editor">
637
-        <state relative-caret-position="195">
638
-          <caret line="13" column="33" selection-start-line="13" selection-start-column="33" selection-end-line="13" selection-end-column="33" />
639
-        </state>
640
-      </provider>
641
-    </entry>
642 646
     <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/src.zip!/java/io/ByteArrayOutputStream.java">
643 647
       <provider selected="true" editor-type-id="text-editor">
644 648
         <state relative-caret-position="545">
@@ -664,13 +668,6 @@
664 668
         </state>
665 669
       </provider>
666 670
     </entry>
667
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java">
668
-      <provider selected="true" editor-type-id="text-editor">
669
-        <state relative-caret-position="120">
670
-          <caret line="8" selection-start-line="8" selection-end-line="8" />
671
-        </state>
672
-      </provider>
673
-    </entry>
674 671
     <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParserEntity.java">
675 672
       <provider selected="true" editor-type-id="text-editor">
676 673
         <state relative-caret-position="120">
@@ -688,79 +685,97 @@
688 685
         </state>
689 686
       </provider>
690 687
     </entry>
691
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java">
688
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java">
692 689
       <provider selected="true" editor-type-id="text-editor">
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" />
690
+        <state relative-caret-position="319">
691
+          <caret line="24" column="57" lean-forward="true" selection-start-line="24" selection-start-column="57" selection-end-line="24" selection-end-column="57" />
695 692
           <folding>
696 693
             <element signature="imports" expanded="true" />
697 694
           </folding>
698 695
         </state>
699 696
       </provider>
700 697
     </entry>
701
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java">
698
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java">
702 699
       <provider selected="true" editor-type-id="text-editor">
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" />
700
+        <state relative-caret-position="180">
701
+          <caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" />
705 702
           <folding>
706 703
             <element signature="imports" expanded="true" />
707
-            <element signature="e#1768#1769#0" expanded="true" />
708
-            <element signature="e#1801#1802#0" expanded="true" />
709 704
           </folding>
710 705
         </state>
711 706
       </provider>
712 707
     </entry>
713
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java">
708
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketController/PacketController.java">
714 709
       <provider selected="true" editor-type-id="text-editor">
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" />
710
+        <state relative-caret-position="255">
711
+          <caret line="19" column="28" lean-forward="true" selection-start-line="19" selection-start-column="28" selection-end-line="19" selection-end-column="28" />
717 712
           <folding>
718 713
             <element signature="imports" expanded="true" />
714
+            <element signature="e#517#518#0" expanded="true" />
719 715
           </folding>
720 716
         </state>
721 717
       </provider>
722 718
     </entry>
723
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketTracker.java">
719
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/Capture.java">
724 720
       <provider selected="true" editor-type-id="text-editor">
725
-        <state relative-caret-position="169">
726
-          <caret line="13" selection-start-line="13" selection-end-line="13" />
721
+        <state relative-caret-position="-618">
722
+          <caret line="12" column="34" lean-forward="true" selection-start-line="12" selection-start-column="34" selection-end-line="12" selection-end-column="34" />
727 723
           <folding>
728 724
             <element signature="imports" expanded="true" />
729 725
           </folding>
730 726
         </state>
731 727
       </provider>
732 728
     </entry>
729
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
730
+      <provider selected="true" editor-type-id="text-editor">
731
+        <state relative-caret-position="195">
732
+          <caret line="13" column="33" selection-start-line="13" selection-start-column="33" selection-end-line="13" selection-end-column="33" />
733
+        </state>
734
+      </provider>
735
+    </entry>
733 736
     <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketEntity.java">
734 737
       <provider selected="true" editor-type-id="text-editor">
735
-        <state relative-caret-position="30">
736
-          <caret line="2" selection-start-line="2" selection-end-line="2" />
738
+        <state relative-caret-position="345">
739
+          <caret line="23" lean-forward="true" selection-start-line="23" selection-end-line="23" />
737 740
           <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" />
741
+            <element signature="e#578#579#0" expanded="true" />
742
+            <element signature="e#603#604#0" expanded="true" />
743
+            <element signature="e#636#637#0" expanded="true" />
744
+            <element signature="e#664#665#0" expanded="true" />
745
+            <element signature="e#834#835#0" expanded="true" />
746
+            <element signature="e#865#866#0" expanded="true" />
747
+            <element signature="e#913#914#0" expanded="true" />
748
+            <element signature="e#953#954#0" expanded="true" />
749
+            <element signature="e#849#850#0" expanded="true" />
750
+            <element signature="e#878#879#0" expanded="true" />
751
+            <element signature="e#921#922#0" expanded="true" />
752
+            <element signature="e#957#958#0" expanded="true" />
750 753
           </folding>
751 754
         </state>
752 755
       </provider>
753 756
     </entry>
754
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/PacketRepo/PacketRepository.java">
757
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketMapper.java">
755 758
       <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" />
759
+        <state relative-caret-position="330">
760
+          <caret line="22" column="24" selection-start-line="22" selection-start-column="24" selection-end-line="22" selection-end-column="24" />
758 761
           <folding>
759 762
             <element signature="imports" expanded="true" />
760 763
           </folding>
761 764
         </state>
762 765
       </provider>
763 766
     </entry>
767
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketParser.java">
768
+      <provider selected="true" editor-type-id="text-editor">
769
+        <state relative-caret-position="165">
770
+          <caret line="36" lean-forward="true" selection-start-line="36" selection-end-line="36" />
771
+          <folding>
772
+            <element signature="imports" expanded="true" />
773
+            <element signature="e#1768#1769#0" expanded="true" />
774
+            <element signature="e#1801#1802#0" expanded="true" />
775
+          </folding>
776
+        </state>
777
+      </provider>
778
+    </entry>
764 779
   </component>
765 780
   <component name="masterDetails">
766 781
     <states>
@@ -837,7 +852,7 @@
837 852
       </state>
838 853
       <state key="ProjectLibrariesConfigurable.UI">
839 854
         <settings>
840
-          <last-edited>Maven: antlr:antlr:2.7.7</last-edited>
855
+          <last-edited />
841 856
           <splitter-proportions>
842 857
             <option name="proportions">
843 858
               <list>

BIN
output.pcap Datei anzeigen


+ 15
- 1
src/main/java/com/wyds/PacketController/PacketController.java Datei anzeigen

@@ -2,10 +2,24 @@ package com.wyds.PacketController;
2 2
 
3 3
 
4 4
 import org.springframework.stereotype.Controller;
5
+import org.springframework.web.bind.annotation.GetMapping;
6
+import org.springframework.web.bind.annotation.RequestMapping;
7
+import org.springframework.web.bind.annotation.RestController;
5 8
 
6
-@Controller
9
+@RestController
7 10
 public class PacketController {
8 11
 
9 12
 
13
+    @RequestMapping("/")
14
+    public String whatUp(){
15
+        return " Packet sniffing is awesome. Hello!";
16
+    }
17
+
18
+
19
+    @RequestMapping("/wyd")
20
+    public String wydHere(){
21
+        return "Show me ur packets";
22
+    }
23
+
10 24
 
11 25
 }

+ 4
- 1
src/main/java/com/wyds/PacketRepo/PacketRepository.java Datei anzeigen

@@ -1,9 +1,12 @@
1 1
 package com.wyds.PacketRepo;
2 2
 
3 3
 import org.springframework.data.jpa.repository.JpaRepository;
4
+import org.springframework.data.repository.CrudRepository;
4 5
 import org.springframework.stereotype.Repository;
6
+import org.springframework.stereotype.Service;
5 7
 
6 8
 
9
+@Service
7 10
 interface PacketRepository {
8
-    // String save(String p);
11
+
9 12
 }

+ 2
- 0
src/main/java/com/wyds/PacketTracker.java Datei anzeigen

@@ -10,8 +10,10 @@ import java.io.IOException;
10 10
 
11 11
 import org.springframework.boot.SpringApplication;
12 12
 import org.springframework.boot.autoconfigure.SpringBootApplication;
13
+import org.springframework.web.bind.annotation.RestController;
13 14
 
14 15
 @SpringBootApplication
16
+@RestController
15 17
 public class PacketTracker {
16 18
     public static void main(String[] args) throws PcapNativeException, NotOpenException, IOException {
17 19
 

+ 22
- 23
src/main/java/com/wyds/packets/PacketEntity.java Datei anzeigen

@@ -13,34 +13,13 @@ public class PacketEntity {
13 13
     @Column(name = "id")
14 14
     private Long id;
15 15
 
16
-    public Long getId() {
17
-        return id;
18
-    }
19
-    public void setId(Long id) {
20
-        this.id = id;
21
-    }
22
-
23
-
24 16
     @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
-
17
+    private String packet;
34 18
 
35 19
     @Column(name = "packetID")
36 20
     private Integer packetID;
37 21
 
38
-    public Integer getPacketID() {
39
-        return packetID;
40
-    }
41
-    public void setPacketID(Integer packetID) {
42
-        this.packetID = packetID;
43
-    }
22
+
44 23
 
45 24
 
46 25
 
@@ -56,7 +35,27 @@ public class PacketEntity {
56 35
 
57 36
 
58 37
 
38
+    public Long getId() {
39
+        return id;
40
+    }
41
+    public void setId(Long id) {
42
+        this.id = id;
43
+    }
59 44
 
45
+    public Integer getPacketID() {
46
+        return packetID;
47
+    }
48
+    public void setPacketID(Integer packetID) {
49
+        this.packetID = packetID;
50
+    }
51
+
52
+
53
+    public String getPacket() {
54
+        return packet;
55
+    }
56
+    public void setPacket(String packet) {
57
+        this.packet = packet;
58
+    }
60 59
 
61 60
 
62 61
 }

BIN
target/classes/com/wyds/PacketController/PacketController.class Datei anzeigen


BIN
target/classes/com/wyds/PacketRepo/packetRepository.class Datei anzeigen


BIN
target/classes/com/wyds/PacketTracker.class Datei anzeigen


BIN
target/classes/com/wyds/packets/PacketEntity.class Datei anzeigen


BIN
target/original-uber-pcap-1.0.0.jar Datei anzeigen


BIN
target/pcap-1.0.0.jar Datei anzeigen


BIN
target/uber-pcap-1.0.0.jar Datei anzeigen