Browse Source

refactor and add parse class

System Administrator 6 years ago
parent
commit
409fee91b7
37 changed files with 496 additions and 64 deletions
  1. 13
    0
      .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
  2. 13
    0
      .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml
  3. 13
    0
      .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml
  4. 13
    0
      .idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml
  5. 13
    0
      .idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml
  6. 13
    0
      .idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml
  7. 13
    0
      .idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml
  8. 13
    0
      .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml
  9. 13
    0
      .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml
  10. 13
    0
      .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml
  11. 13
    0
      .idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_10_Final.xml
  12. 13
    0
      .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_3_RELEASE.xml
  13. 13
    0
      .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_3_RELEASE.xml
  14. 13
    0
      .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_3_RELEASE.xml
  15. 13
    0
      .idea/libraries/Maven__org_springframework_spring_web_5_0_7_RELEASE.xml
  16. 13
    0
      .idea/libraries/Maven__org_springframework_spring_webmvc_5_0_7_RELEASE.xml
  17. 157
    31
      .idea/workspace.xml
  18. BIN
      output.pcap
  19. 24
    2
      pcap.iml
  20. BIN
      pcap.txt
  21. 5
    4
      pom.xml
  22. 34
    0
      src/main/java/com/wyds/PacketTracker.java
  23. 0
    8
      src/main/java/com/wyds/SpringAppStarter.java
  24. 6
    17
      src/main/java/com/wyds/packets/Capture.java
  25. 6
    0
      src/main/java/com/wyds/packets/PacketParser.java
  26. 27
    0
      src/main/resources/application.properties
  27. 27
    0
      target/classes/application.properties
  28. BIN
      target/classes/com/wyds/CoinMiner.class
  29. BIN
      target/classes/com/wyds/PacketTracker.class
  30. BIN
      target/classes/com/wyds/SpringAppStarter.class
  31. BIN
      target/classes/com/wyds/packets/Capture.class
  32. BIN
      target/classes/com/wyds/packets/PacketTracker.class
  33. 2
    2
      target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  34. BIN
      target/original-uber-pcap-1.0.0.jar
  35. BIN
      target/pcap-1.0.0.jar
  36. BIN
      target/test-classes/com/wyds/packets/AppTest.class
  37. BIN
      target/uber-pcap-1.0.0.jar

+ 13
- 0
.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.6">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.6">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.6/jackson-datatype-jdk8-2.9.6.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.6/jackson-datatype-jdk8-2.9.6-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.6/jackson-datatype-jdk8-2.9.6-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.6/jackson-datatype-jsr310-2.9.6.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.6/jackson-datatype-jsr310-2.9.6-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.6/jackson-datatype-jsr310-2.9.6-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.6/jackson-module-parameter-names-2.9.6.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.6/jackson-module-parameter-names-2.9.6-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.6/jackson-module-parameter-names-2.9.6-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: javax.validation:validation-api:2.0.1.Final">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.31">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.31">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.31">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_10_Final.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.hibernate.validator:hibernate-validator:6.0.10.Final">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/validator/hibernate-validator/6.0.10.Final/hibernate-validator-6.0.10.Final.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/validator/hibernate-validator/6.0.10.Final/hibernate-validator-6.0.10.Final-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/validator/hibernate-validator/6.0.10.Final/hibernate-validator-6.0.10.Final-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_3_RELEASE.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.3.RELEASE">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-json/2.0.3.RELEASE/spring-boot-starter-json-2.0.3.RELEASE.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-json/2.0.3.RELEASE/spring-boot-starter-json-2.0.3.RELEASE-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-json/2.0.3.RELEASE/spring-boot-starter-json-2.0.3.RELEASE-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_3_RELEASE.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.3.RELEASE">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-tomcat/2.0.3.RELEASE/spring-boot-starter-tomcat-2.0.3.RELEASE.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-tomcat/2.0.3.RELEASE/spring-boot-starter-tomcat-2.0.3.RELEASE-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-tomcat/2.0.3.RELEASE/spring-boot-starter-tomcat-2.0.3.RELEASE-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_3_RELEASE.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.3.RELEASE">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-web/2.0.3.RELEASE/spring-boot-starter-web-2.0.3.RELEASE.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-web/2.0.3.RELEASE/spring-boot-starter-web-2.0.3.RELEASE-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-web/2.0.3.RELEASE/spring-boot-starter-web-2.0.3.RELEASE-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_springframework_spring_web_5_0_7_RELEASE.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.springframework:spring-web:5.0.7.RELEASE">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-web/5.0.7.RELEASE/spring-web-5.0.7.RELEASE.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-web/5.0.7.RELEASE/spring-web-5.0.7.RELEASE-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-web/5.0.7.RELEASE/spring-web-5.0.7.RELEASE-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_7_RELEASE.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.springframework:spring-webmvc:5.0.7.RELEASE">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-webmvc/5.0.7.RELEASE/spring-webmvc-5.0.7.RELEASE.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-webmvc/5.0.7.RELEASE/spring-webmvc-5.0.7.RELEASE-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-webmvc/5.0.7.RELEASE/spring-webmvc-5.0.7.RELEASE-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 157
- 31
.idea/workspace.xml View File

@@ -1,7 +1,39 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="a2cd3f2a-ecd9-43c0-a5b7-6ff3b5edd4e5" name="Default" comment="" />
4
+    <list default="true" id="a2cd3f2a-ecd9-43c0-a5b7-6ff3b5edd4e5" name="Default" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml" afterDir="false" />
11
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml" afterDir="false" />
12
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml" afterDir="false" />
13
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml" afterDir="false" />
14
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml" afterDir="false" />
15
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_10_Final.xml" afterDir="false" />
16
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_3_RELEASE.xml" afterDir="false" />
17
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_3_RELEASE.xml" afterDir="false" />
18
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_3_RELEASE.xml" afterDir="false" />
19
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_web_5_0_7_RELEASE.xml" afterDir="false" />
20
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_7_RELEASE.xml" afterDir="false" />
21
+      <change afterPath="$PROJECT_DIR$/src/main/resources/application.properties" afterDir="false" />
22
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
23
+      <change beforePath="$PROJECT_DIR$/output.pcap" beforeDir="false" afterPath="$PROJECT_DIR$/output.pcap" afterDir="false" />
24
+      <change beforePath="$PROJECT_DIR$/pcap.iml" beforeDir="false" afterPath="$PROJECT_DIR$/pcap.iml" afterDir="false" />
25
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
26
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/SpringAppStarter.java" beforeDir="false" />
27
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketTracker.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketTracker.java" afterDir="false" />
28
+      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/CoinMiner.class" beforeDir="false" />
29
+      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/SpringAppStarter.class" beforeDir="false" />
30
+      <change beforePath="$PROJECT_DIR$/target/classes/com/wyds/packets/PacketTracker.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/wyds/packets/PacketTracker.class" afterDir="false" />
31
+      <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" />
32
+      <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" />
33
+      <change beforePath="$PROJECT_DIR$/target/pcap-1.0.0.jar" beforeDir="false" afterPath="$PROJECT_DIR$/target/pcap-1.0.0.jar" afterDir="false" />
34
+      <change beforePath="$PROJECT_DIR$/target/test-classes/com/wyds/packets/AppTest.class" beforeDir="false" />
35
+      <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" />
36
+    </list>
5 37
     <ignored path="$PROJECT_DIR$/target/" />
6 38
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7 39
     <option name="TRACKING_ENABLED" value="true" />
@@ -26,15 +58,41 @@
26 58
   </component>
27 59
   <component name="FileEditorManager">
28 60
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
61
+      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
30 62
         <entry file="file://$PROJECT_DIR$/pom.xml">
31 63
           <provider selected="true" editor-type-id="text-editor">
32
-            <state relative-caret-position="615">
64
+            <state relative-caret-position="-356">
33 65
               <caret line="41" column="21" selection-start-line="41" selection-start-column="21" selection-end-line="41" selection-end-column="21" />
34 66
             </state>
35 67
           </provider>
36 68
         </entry>
37 69
       </file>
70
+      <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
71
+        <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
72
+          <provider selected="true" editor-type-id="text-editor">
73
+            <state relative-caret-position="390">
74
+              <caret line="26" column="38" lean-forward="true" selection-start-line="26" selection-start-column="38" selection-end-line="26" selection-end-column="38" />
75
+            </state>
76
+          </provider>
77
+        </entry>
78
+      </file>
79
+      <file leaf-file-name="PacketTracker.java" pinned="false" current-in-tab="false">
80
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketTracker.java">
81
+          <provider selected="true" editor-type-id="text-editor">
82
+            <state relative-caret-position="550">
83
+              <caret line="83" column="27" selection-start-line="83" selection-start-column="27" selection-end-line="83" selection-end-column="27" />
84
+              <folding>
85
+                <element signature="imports" expanded="true" />
86
+              </folding>
87
+            </state>
88
+          </provider>
89
+        </entry>
90
+      </file>
91
+      <file leaf-file-name="pcap.txt" pinned="false" current-in-tab="true">
92
+        <entry file="file://$PROJECT_DIR$/pcap.txt">
93
+          <provider selected="true" editor-type-id="text-editor" />
94
+        </entry>
95
+      </file>
38 96
     </leaf>
39 97
   </component>
40 98
   <component name="FileTemplateManagerImpl">
@@ -51,8 +109,9 @@
51 109
     <option name="CHANGED_PATHS">
52 110
       <list>
53 111
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/CoinMiner.java" />
54
-        <option value="$PROJECT_DIR$/src/main/java/com/wyds/SpringAppStarter.java" />
55 112
         <option value="$PROJECT_DIR$/pom.xml" />
113
+        <option value="$PROJECT_DIR$/src/main/java/com/wyds/SpringAppStarter.java" />
114
+        <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
56 115
         <option value="$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketTracker.java" />
57 116
       </list>
58 117
     </option>
@@ -110,6 +169,47 @@
110 169
               <item name="src" type="462c0819:PsiDirectoryNode" />
111 170
               <item name="main" type="462c0819:PsiDirectoryNode" />
112 171
             </path>
172
+            <path>
173
+              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
174
+              <item name="pcap" type="462c0819:PsiDirectoryNode" />
175
+              <item name="src" type="462c0819:PsiDirectoryNode" />
176
+              <item name="main" type="462c0819:PsiDirectoryNode" />
177
+              <item name="java" type="462c0819:PsiDirectoryNode" />
178
+            </path>
179
+            <path>
180
+              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
181
+              <item name="pcap" type="462c0819:PsiDirectoryNode" />
182
+              <item name="src" type="462c0819:PsiDirectoryNode" />
183
+              <item name="main" type="462c0819:PsiDirectoryNode" />
184
+              <item name="java" type="462c0819:PsiDirectoryNode" />
185
+              <item name="com" type="462c0819:PsiDirectoryNode" />
186
+            </path>
187
+            <path>
188
+              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
189
+              <item name="pcap" type="462c0819:PsiDirectoryNode" />
190
+              <item name="src" type="462c0819:PsiDirectoryNode" />
191
+              <item name="main" type="462c0819:PsiDirectoryNode" />
192
+              <item name="java" type="462c0819:PsiDirectoryNode" />
193
+              <item name="com" type="462c0819:PsiDirectoryNode" />
194
+              <item name="wyds" type="462c0819:PsiDirectoryNode" />
195
+            </path>
196
+            <path>
197
+              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
198
+              <item name="pcap" type="462c0819:PsiDirectoryNode" />
199
+              <item name="src" type="462c0819:PsiDirectoryNode" />
200
+              <item name="main" type="462c0819:PsiDirectoryNode" />
201
+              <item name="java" type="462c0819:PsiDirectoryNode" />
202
+              <item name="com" type="462c0819:PsiDirectoryNode" />
203
+              <item name="wyds" type="462c0819:PsiDirectoryNode" />
204
+              <item name="packets" type="462c0819:PsiDirectoryNode" />
205
+            </path>
206
+            <path>
207
+              <item name="pcap" type="b2602c69:ProjectViewProjectNode" />
208
+              <item name="pcap" type="462c0819:PsiDirectoryNode" />
209
+              <item name="src" type="462c0819:PsiDirectoryNode" />
210
+              <item name="main" type="462c0819:PsiDirectoryNode" />
211
+              <item name="resources" type="462c0819:PsiDirectoryNode" />
212
+            </path>
113 213
           </expand>
114 214
           <select />
115 215
         </subPane>
@@ -124,9 +224,9 @@
124 224
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
125 225
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
126 226
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
127
-    <property name="project.structure.last.edited" value="Project" />
128
-    <property name="project.structure.proportion" value="0.0" />
129
-    <property name="project.structure.side.proportion" value="0.0" />
227
+    <property name="project.structure.last.edited" value="Modules" />
228
+    <property name="project.structure.proportion" value="0.15" />
229
+    <property name="project.structure.side.proportion" value="0.2" />
130 230
   </component>
131 231
   <component name="RecentsManager">
132 232
     <key name="CopyFile.RECENT_KEYS">
@@ -145,7 +245,7 @@
145 245
       </list>
146 246
     </option>
147 247
   </component>
148
-  <component name="RunManager" selected="Application.CoinMiner">
248
+  <component name="RunManager" selected="Application.PacketTracker">
149 249
     <configuration name="CoinMiner" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
150 250
       <option name="MAIN_CLASS_NAME" value="com.wyds.CoinMiner" />
151 251
       <module name="pcap" />
@@ -168,6 +268,17 @@
168 268
         </pattern>
169 269
       </extension>
170 270
     </configuration>
271
+    <configuration name="SpringAppStarter" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
272
+      <option name="MAIN_CLASS_NAME" value="com.wyds.SpringAppStarter" />
273
+      <module name="pcap" />
274
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
275
+      <extension name="coverage">
276
+        <pattern>
277
+          <option name="PATTERN" value="com.wyds.*" />
278
+          <option name="ENABLED" value="true" />
279
+        </pattern>
280
+      </extension>
281
+    </configuration>
171 282
     <configuration default="true" type="Application" factoryName="Application">
172 283
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
173 284
     </configuration>
@@ -212,11 +323,13 @@
212 323
     <list>
213 324
       <item itemvalue="Application.PacketTracker" />
214 325
       <item itemvalue="Application.CoinMiner" />
326
+      <item itemvalue="Application.SpringAppStarter" />
215 327
     </list>
216 328
     <recent_temporary>
217 329
       <list>
218
-        <item itemvalue="Application.CoinMiner" />
219 330
         <item itemvalue="Application.PacketTracker" />
331
+        <item itemvalue="Application.SpringAppStarter" />
332
+        <item itemvalue="Application.CoinMiner" />
220 333
       </list>
221 334
     </recent_temporary>
222 335
   </component>
@@ -231,15 +344,16 @@
231 344
       <option name="presentableId" value="Default" />
232 345
       <updated>1531775306742</updated>
233 346
       <workItem from="1531775309911" duration="2309000" />
234
-      <workItem from="1531779911018" duration="27978000" />
347
+      <workItem from="1531779911018" duration="29725000" />
235 348
     </task>
236 349
     <servers />
237 350
   </component>
238 351
   <component name="TimeTrackingManager">
239
-    <option name="totallyTimeSpent" value="30287000" />
352
+    <option name="totallyTimeSpent" value="32034000" />
240 353
   </component>
241 354
   <component name="ToolWindowManager">
242 355
     <frame x="0" y="0" width="1680" height="1050" extended-state="0" />
356
+    <editor active="true" />
243 357
     <layout>
244 358
       <window_info anchor="right" id="Palette" order="3" />
245 359
       <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
@@ -263,6 +377,7 @@
263 377
       <window_info anchor="bottom" id="Spring" weight="0.32923076" />
264 378
       <window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.29538462" />
265 379
       <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.16971917" />
380
+      <window_info anchor="right" id="Bean Validation" />
266 381
       <window_info id="Web" side_tool="true" />
267 382
       <window_info anchor="bottom" id="Find" order="1" weight="0.32935324" />
268 383
       <window_info anchor="right" id="Theme Preview" order="3" />
@@ -329,42 +444,53 @@
329 444
         </state>
330 445
       </provider>
331 446
     </entry>
332
-    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
447
+    <entry file="file://$PROJECT_DIR$/config.xml">
448
+      <provider selected="true" editor-type-id="text-editor" />
449
+    </entry>
450
+    <entry file="file://$PROJECT_DIR$/.gitignore">
451
+      <provider selected="true" editor-type-id="text-editor" />
452
+    </entry>
453
+    <entry file="file://$PROJECT_DIR$/src/main/java/resources.properties">
454
+      <provider selected="true" editor-type-id="text-editor" />
455
+    </entry>
456
+    <entry file="file://$PROJECT_DIR$/pom.xml">
333 457
       <provider selected="true" editor-type-id="text-editor">
334
-        <state relative-caret-position="405">
335
-          <caret line="27" lean-forward="true" selection-start-line="27" selection-end-line="27" />
458
+        <state relative-caret-position="-356">
459
+          <caret line="41" column="21" selection-start-line="41" selection-start-column="21" selection-end-line="41" selection-end-column="21" />
336 460
         </state>
337 461
       </provider>
338 462
     </entry>
339 463
     <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/SpringAppStarter.java">
340 464
       <provider selected="true" editor-type-id="text-editor">
341
-        <state relative-caret-position="-7">
342
-          <caret line="3" selection-start-line="3" selection-end-line="3" />
465
+        <state relative-caret-position="150">
466
+          <caret line="10" column="60" lean-forward="true" selection-start-line="10" selection-start-column="8" selection-end-line="10" selection-end-column="60" />
467
+          <folding>
468
+            <element signature="imports" expanded="true" />
469
+            <element signature="e#226#227#0" expanded="true" />
470
+            <element signature="e#293#294#0" expanded="true" />
471
+          </folding>
343 472
         </state>
344 473
       </provider>
345 474
     </entry>
346
-    <entry file="file://$PROJECT_DIR$/config.xml">
347
-      <provider selected="true" editor-type-id="text-editor" />
348
-    </entry>
349
-    <entry file="file://$PROJECT_DIR$/.gitignore">
350
-      <provider selected="true" editor-type-id="text-editor" />
475
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
476
+      <provider selected="true" editor-type-id="text-editor">
477
+        <state relative-caret-position="390">
478
+          <caret line="26" column="38" lean-forward="true" selection-start-line="26" selection-start-column="38" selection-end-line="26" selection-end-column="38" />
479
+        </state>
480
+      </provider>
351 481
     </entry>
352 482
     <entry file="file://$PROJECT_DIR$/src/main/java/com/wyds/packets/PacketTracker.java">
353 483
       <provider selected="true" editor-type-id="text-editor">
354
-        <state relative-caret-position="213">
355
-          <caret line="69" selection-start-line="69" selection-end-line="69" />
484
+        <state relative-caret-position="550">
485
+          <caret line="83" column="27" selection-start-line="83" selection-start-column="27" selection-end-line="83" selection-end-column="27" />
356 486
           <folding>
357 487
             <element signature="imports" expanded="true" />
358 488
           </folding>
359 489
         </state>
360 490
       </provider>
361 491
     </entry>
362
-    <entry file="file://$PROJECT_DIR$/pom.xml">
363
-      <provider selected="true" editor-type-id="text-editor">
364
-        <state relative-caret-position="615">
365
-          <caret line="41" column="21" selection-start-line="41" selection-start-column="21" selection-end-line="41" selection-end-column="21" />
366
-        </state>
367
-      </provider>
492
+    <entry file="file://$PROJECT_DIR$/pcap.txt">
493
+      <provider selected="true" editor-type-id="text-editor" />
368 494
     </entry>
369 495
   </component>
370 496
   <component name="masterDetails">
@@ -418,7 +544,7 @@
418 544
       </state>
419 545
       <state key="ModuleStructureConfigurable.UI">
420 546
         <settings>
421
-          <last-edited>pcap</last-edited>
547
+          <last-edited>Spring|pcap</last-edited>
422 548
           <splitter-proportions>
423 549
             <option name="proportions">
424 550
               <list>
@@ -442,7 +568,7 @@
442 568
       </state>
443 569
       <state key="ProjectLibrariesConfigurable.UI">
444 570
         <settings>
445
-          <last-edited>Maven: commons-codec:commons-codec:1.4</last-edited>
571
+          <last-edited>Maven: antlr:antlr:2.7.7</last-edited>
446 572
           <splitter-proportions>
447 573
             <option name="proportions">
448 574
               <list>

BIN
output.pcap View File


+ 24
- 2
pcap.iml View File

@@ -10,7 +10,11 @@
10 10
       </configuration>
11 11
     </facet>
12 12
     <facet type="Spring" name="Spring">
13
-      <configuration />
13
+      <configuration>
14
+        <fileset id="fileset" name="PacketTracker" removed="false">
15
+          <file>file://$MODULE_DIR$/src/main/java/com/wyds/packets/PacketTracker.java</file>
16
+        </fileset>
17
+      </configuration>
14 18
     </facet>
15 19
   </component>
16 20
   <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
@@ -19,6 +23,8 @@
19 23
     <content url="file://$MODULE_DIR$">
20 24
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
21 25
       <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
26
+      <sourceFolder url="file://$MODULE_DIR$/src/main/test" isTestSource="true" />
27
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
22 28
       <excludeFolder url="file://$MODULE_DIR$/target" />
23 29
     </content>
24 30
     <orderEntry type="inheritedJdk" />
@@ -62,10 +68,26 @@
62 68
     <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.0.8.RELEASE" level="project" />
63 69
     <orderEntry type="library" name="Maven: org.springframework:spring-orm:5.0.7.RELEASE" level="project" />
64 70
     <orderEntry type="library" name="Maven: org.springframework:spring-context:5.0.7.RELEASE" level="project" />
65
-    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.0.7.RELEASE" level="project" />
66 71
     <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.0.7.RELEASE" level="project" />
67 72
     <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.0.7.RELEASE" level="project" />
68 73
     <orderEntry type="library" name="Maven: org.springframework:spring-aspects:5.0.7.RELEASE" level="project" />
69 74
     <orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.46" level="project" />
75
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.3.RELEASE" level="project" />
76
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.3.RELEASE" level="project" />
77
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.6" level="project" />
78
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
79
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.6" level="project" />
80
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6" level="project" />
81
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6" level="project" />
82
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6" level="project" />
83
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.3.RELEASE" level="project" />
84
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.31" level="project" />
85
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.31" level="project" />
86
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.31" level="project" />
87
+    <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.10.Final" level="project" />
88
+    <orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
89
+    <orderEntry type="library" name="Maven: org.springframework:spring-web:5.0.7.RELEASE" level="project" />
90
+    <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.0.7.RELEASE" level="project" />
91
+    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.0.7.RELEASE" level="project" />
70 92
   </component>
71 93
 </module>

BIN
pcap.txt View File


+ 5
- 4
pom.xml View File

@@ -40,9 +40,10 @@
40 40
             <groupId>mysql</groupId>
41 41
             <artifactId>mysql-connector-java</artifactId>
42 42
         </dependency>
43
-
44
-
45
-
43
+        <dependency>
44
+            <groupId>org.springframework.boot</groupId>
45
+            <artifactId>spring-boot-starter-web</artifactId>
46
+        </dependency>
46 47
 
47 48
 
48 49
     </dependencies>
@@ -72,7 +73,7 @@
72 73
                 <configuration>
73 74
                     <archive>
74 75
                         <manifest>
75
-                            <mainClass>com.wyds.packets.PacketTracker</mainClass>
76
+                            <mainClass>com.wyds.PacketTracker</mainClass>
76 77
                         </manifest>
77 78
                     </archive>
78 79
                 </configuration>

+ 34
- 0
src/main/java/com/wyds/PacketTracker.java View File

@@ -0,0 +1,34 @@
1
+package com.wyds;
2
+
3
+import com.wyds.packets.Capture;
4
+import org.pcap4j.core.*;
5
+import org.pcap4j.util.NifSelector;
6
+import org.pcap4j.core.PcapNetworkInterface.PromiscuousMode;
7
+import java.io.IOException;
8
+
9
+
10
+import org.pcap4j.core.BpfProgram.BpfCompileMode;
11
+import org.springframework.boot.SpringApplication;
12
+import org.springframework.boot.autoconfigure.SpringBootApplication;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+
15
+
16
+@SpringBootApplication
17
+public class PacketTracker {
18
+    public static void main(String[] args) throws PcapNativeException, NotOpenException {
19
+
20
+        //SpringApplication.run(PacketTracker.class, args);
21
+        Capture c = new Capture();
22
+        c.capturePack();
23
+
24
+
25
+
26
+    }
27
+
28
+    @RequestMapping(value="/")
29
+    public String register(){
30
+        return "login here";
31
+    }
32
+
33
+
34
+}

+ 0
- 8
src/main/java/com/wyds/SpringAppStarter.java View File

@@ -1,8 +0,0 @@
1
-package com.wyds;
2
-
3
-
4
-public class SpringAppStarter {
5
-    public static void main(String[] args) {
6
-
7
-    }
8
-}

src/main/java/com/wyds/packets/PacketTracker.java → src/main/java/com/wyds/packets/Capture.java View File

@@ -2,33 +2,23 @@ package com.wyds.packets;
2 2
 
3 3
 import org.pcap4j.core.*;
4 4
 import org.pcap4j.util.NifSelector;
5
-import org.pcap4j.core.PcapNetworkInterface.PromiscuousMode;
6
-import java.io.IOException;
7
-
8
-
9
-import org.pcap4j.core.BpfProgram.BpfCompileMode;
10
-
11
-
12
-public class PacketTracker {
13
-    public static void main(String[] args) throws PcapNativeException, NotOpenException {
14 5
 
15
-        PacketTracker p = new PacketTracker();
16
-        p.capturePack();
6
+import java.io.IOException;
17 7
 
18
-    }
8
+public class Capture {
19 9
 
20
-    private void capturePack() throws PcapNativeException, NotOpenException {
10
+    public void capturePack() throws PcapNativeException, NotOpenException {
21 11
 
22 12
         int snapShotLength = 65536;
23 13
         int timeOut = 50;
24 14
         final PcapHandle handle;
25 15
         final PcapNetworkInterface device = deviceCheck();
26 16
 
27
-        handle = device.openLive(snapShotLength, PromiscuousMode.PROMISCUOUS, timeOut);
17
+        handle = device.openLive(snapShotLength, PcapNetworkInterface.PromiscuousMode.PROMISCUOUS, timeOut);
28 18
 
29 19
 
30 20
         String filter = "";
31
-        handle.setFilter(filter, BpfCompileMode.OPTIMIZE);
21
+        handle.setFilter(filter, BpfProgram.BpfCompileMode.OPTIMIZE);
32 22
 
33 23
         PcapDumper dumper = handle.dumpOpen("output.pcap");
34 24
 
@@ -47,6 +37,7 @@ public class PacketTracker {
47 37
                 e.printStackTrace();
48 38
             }
49 39
 
40
+
50 41
         };
51 42
         try {
52 43
             int maxPackets = 40;
@@ -70,7 +61,6 @@ public class PacketTracker {
70 61
 
71 62
     }
72 63
 
73
-
74 64
     private PcapNetworkInterface deviceCheck() {
75 65
 
76 66
         PcapNetworkInterface device = null;
@@ -90,5 +80,4 @@ public class PacketTracker {
90 80
 
91 81
         return device;
92 82
     }
93
-
94 83
 }

+ 6
- 0
src/main/java/com/wyds/packets/PacketParser.java View File

@@ -0,0 +1,6 @@
1
+package com.wyds.packets;
2
+
3
+public class PacketParser {
4
+
5
+
6
+}

+ 27
- 0
src/main/resources/application.properties View File

@@ -0,0 +1,27 @@
1
+# ===============================
2
+# TOMCAT
3
+# ===============================
4
+server.address=127.0.0.1
5
+server.error.whitelabel.enabled=true
6
+# ===============================
7
+# = LOGGING
8
+# ===============================
9
+logging.level.org.springframework.web=DEBUG
10
+logging.level.org.hibernate=ERROR
11
+
12
+# ===============================
13
+# = DATA SOURCE
14
+# ===============================
15
+spring.datasource.url=jdbc:mysql://localhost:3306/pcap
16
+spring.datasource.username=root
17
+spring.datasource.password=
18
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
19
+spring.datasource.tomcat.max-wait=10000
20
+spring.datasource.tomcat.max-active=5
21
+spring.datasource.tomcat.test-on-borrow=true
22
+
23
+# ===============================
24
+# = JPA / HIBERNATE
25
+# ===============================
26
+spring.jpa.show-sql = true
27
+spring.jpa.hibernate.ddl-auto = create

+ 27
- 0
target/classes/application.properties View File

@@ -0,0 +1,27 @@
1
+# ===============================
2
+# TOMCAT
3
+# ===============================
4
+server.address=127.0.0.1
5
+server.error.whitelabel.enabled=true
6
+# ===============================
7
+# = LOGGING
8
+# ===============================
9
+logging.level.org.springframework.web=DEBUG
10
+logging.level.org.hibernate=ERROR
11
+
12
+# ===============================
13
+# = DATA SOURCE
14
+# ===============================
15
+spring.datasource.url=jdbc:mysql://localhost:3306/pcap
16
+spring.datasource.username=root
17
+spring.datasource.password=
18
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
19
+spring.datasource.tomcat.max-wait=10000
20
+spring.datasource.tomcat.max-active=5
21
+spring.datasource.tomcat.test-on-borrow=true
22
+
23
+# ===============================
24
+# = JPA / HIBERNATE
25
+# ===============================
26
+spring.jpa.show-sql = true
27
+spring.jpa.hibernate.ddl-auto = create

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


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


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


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


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


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

@@ -1,2 +1,2 @@
1
-com/wyds/SpringAppStarter.class
2
-com/wyds/packets/PacketTracker.class
1
+com/wyds/packets/Capture.class
2
+com/wyds/PacketTracker.class

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


BIN
target/pcap-1.0.0.jar View File


BIN
target/test-classes/com/wyds/packets/AppTest.class View File


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