Browse Source

make master right

Shivam Patel 6 years ago
parent
commit
a46cbdff54
100 changed files with 807 additions and 7825 deletions
  1. 0
    6
      ionic.config.json
  2. BIN
      lib/aopalliance-1.0.jar
  3. BIN
      lib/commons-logging-1.2.jar
  4. BIN
      lib/spring-aop-4.3.18.RELEASE.jar
  5. BIN
      lib/spring-aspects-4.3.18.RELEASE.jar
  6. BIN
      lib/spring-beans-4.3.18.RELEASE.jar
  7. BIN
      lib/spring-context-4.3.18.RELEASE.jar
  8. BIN
      lib/spring-context-support-4.3.18.RELEASE.jar
  9. BIN
      lib/spring-core-4.3.18.RELEASE.jar
  10. BIN
      lib/spring-expression-4.3.18.RELEASE.jar
  11. BIN
      lib/spring-instrument-4.3.18.RELEASE.jar
  12. BIN
      lib/spring-instrument-tomcat-4.3.18.RELEASE.jar
  13. BIN
      lib/spring-jdbc-4.3.18.RELEASE.jar
  14. BIN
      lib/spring-jms-4.3.18.RELEASE.jar
  15. BIN
      lib/spring-messaging-4.3.18.RELEASE.jar
  16. BIN
      lib/spring-orm-4.3.18.RELEASE.jar
  17. BIN
      lib/spring-oxm-4.3.18.RELEASE.jar
  18. BIN
      lib/spring-test-4.3.18.RELEASE.jar
  19. BIN
      lib/spring-tx-4.3.18.RELEASE.jar
  20. BIN
      output.pcap
  21. 0
    6523
      package-lock.json
  22. 0
    41
      package.json
  23. 100
    0
      pcap.iml
  24. BIN
      pcap.txt
  25. 133
    0
      pom.xml
  26. 0
    58
      src/app/app.component.ts
  27. 0
    20
      src/app/app.html
  28. 0
    37
      src/app/app.module.ts
  29. 0
    18
      src/app/app.scss
  30. 0
    5
      src/app/main.ts
  31. BIN
      src/assets/icon/favicon.ico
  32. BIN
      src/assets/imgs/logo.png
  33. 0
    50
      src/index.html
  34. 44
    0
      src/main/java/com/wyds/Loader/PacketLoader.java
  35. 25
    0
      src/main/java/com/wyds/PacketController/PacketController.java
  36. 14
    0
      src/main/java/com/wyds/PacketRepo/PacketRepository.java
  37. 40
    0
      src/main/java/com/wyds/PacketTracker.java
  38. 33
    0
      src/main/java/com/wyds/config/SpringSessionRedisConfiguration.java
  39. 81
    0
      src/main/java/com/wyds/packets/Capture.java
  40. 76
    0
      src/main/java/com/wyds/packets/PacketEntity.java
  41. 34
    0
      src/main/java/com/wyds/packets/PacketMapper.java
  42. 63
    0
      src/main/java/com/wyds/packets/PacketParser.java
  43. 38
    0
      src/main/resources/application.properties
  44. 0
    13
      src/manifest.json
  45. 0
    22
      src/pages/active/active.html
  46. 0
    13
      src/pages/active/active.module.ts
  47. 0
    3
      src/pages/active/active.scss
  48. 0
    30
      src/pages/active/active.ts
  49. 0
    18
      src/pages/history/history.html
  50. 0
    13
      src/pages/history/history.module.ts
  51. 0
    3
      src/pages/history/history.scss
  52. 0
    25
      src/pages/history/history.ts
  53. 0
    23
      src/pages/home/home.html
  54. 0
    16
      src/pages/home/home.module.ts
  55. 0
    3
      src/pages/home/home.scss
  56. 0
    22
      src/pages/home/home.ts
  57. 0
    23
      src/pages/list/list.html
  58. 0
    3
      src/pages/list/list.scss
  59. 0
    37
      src/pages/list/list.ts
  60. 0
    130
      src/pages/loginRegister/register.html
  61. 0
    0
      src/pages/loginRegister/register.ts
  62. 0
    18
      src/pages/notes/notes.html
  63. 0
    13
      src/pages/notes/notes.module.ts
  64. 0
    3
      src/pages/notes/notes.scss
  65. 0
    25
      src/pages/notes/notes.ts
  66. 0
    18
      src/pages/settings/settings.html
  67. 0
    13
      src/pages/settings/settings.module.ts
  68. 0
    3
      src/pages/settings/settings.scss
  69. 0
    25
      src/pages/settings/settings.ts
  70. 0
    31
      src/service-worker.js
  71. 0
    88
      src/theme/variables.scss
  72. 38
    0
      target/classes/application.properties
  73. BIN
      target/classes/com/wyds/Loader/PacketLoader.class
  74. BIN
      target/classes/com/wyds/PacketController/PacketController.class
  75. BIN
      target/classes/com/wyds/PacketRepo/packetRepository.class
  76. BIN
      target/classes/com/wyds/PacketTracker.class
  77. BIN
      target/classes/com/wyds/config/SpringSessionRedisConfiguration.class
  78. BIN
      target/classes/com/wyds/packets/Capture.class
  79. BIN
      target/classes/com/wyds/packets/PacketEntity.class
  80. BIN
      target/classes/com/wyds/packets/PacketMapper.class
  81. BIN
      target/classes/com/wyds/packets/PacketParser.class
  82. 4
    0
      target/maven-archiver/pom.properties
  83. 3
    0
      target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  84. 9
    0
      target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  85. 1
    0
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
  86. 1
    0
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
  87. BIN
      target/original-uber-pcap-1.0.0.jar
  88. BIN
      target/pcap-1.0.0.jar
  89. 66
    0
      target/surefire-reports/TEST-com.wyds.packets.AppTest.xml
  90. 4
    0
      target/surefire-reports/com.wyds.packets.AppTest.txt
  91. BIN
      target/uber-pcap-1.0.0.jar
  92. BIN
      test1.pcap
  93. 0
    28
      tsconfig.json
  94. 0
    11
      tslint.json
  95. 0
    25
      wyds2/.gitignore
  96. BIN
      wyds2/.mvn/wrapper/maven-wrapper.jar
  97. 0
    1
      wyds2/.mvn/wrapper/maven-wrapper.properties
  98. 0
    225
      wyds2/mvnw
  99. 0
    143
      wyds2/mvnw.cmd
  100. 0
    0
      wyds2/pom.xml

+ 0
- 6
ionic.config.json View File

@@ -1,6 +0,0 @@
1
-{
2
-  "name": "wyds",
3
-  "app_id": "86c9d776",
4
-  "type": "ionic-angular",
5
-  "integrations": {}
6
-}

BIN
lib/aopalliance-1.0.jar View File


BIN
lib/commons-logging-1.2.jar View File


BIN
lib/spring-aop-4.3.18.RELEASE.jar View File


BIN
lib/spring-aspects-4.3.18.RELEASE.jar View File


BIN
lib/spring-beans-4.3.18.RELEASE.jar View File


BIN
lib/spring-context-4.3.18.RELEASE.jar View File


BIN
lib/spring-context-support-4.3.18.RELEASE.jar View File


BIN
lib/spring-core-4.3.18.RELEASE.jar View File


BIN
lib/spring-expression-4.3.18.RELEASE.jar View File


BIN
lib/spring-instrument-4.3.18.RELEASE.jar View File


BIN
lib/spring-instrument-tomcat-4.3.18.RELEASE.jar View File


BIN
lib/spring-jdbc-4.3.18.RELEASE.jar View File


BIN
lib/spring-jms-4.3.18.RELEASE.jar View File


BIN
lib/spring-messaging-4.3.18.RELEASE.jar View File


BIN
lib/spring-orm-4.3.18.RELEASE.jar View File


BIN
lib/spring-oxm-4.3.18.RELEASE.jar View File


BIN
lib/spring-test-4.3.18.RELEASE.jar View File


BIN
lib/spring-tx-4.3.18.RELEASE.jar View File


BIN
output.pcap View File


+ 0
- 6523
package-lock.json
File diff suppressed because it is too large
View File


+ 0
- 41
package.json View File

@@ -1,41 +0,0 @@
1
-{
2
-  "name": "wyds",
3
-  "version": "0.0.1",
4
-  "author": "Ionic Framework",
5
-  "homepage": "http://ionicframework.com/",
6
-  "private": true,
7
-  "scripts": {
8
-    "clean": "ionic-app-scripts clean",
9
-    "build": "ionic-app-scripts build",
10
-    "lint": "ionic-app-scripts lint",
11
-    "ionic:build": "ionic-app-scripts build",
12
-    "ionic:serve": "ionic-app-scripts serve"
13
-  },
14
-  "dependencies": {
15
-    "@angular/animations": "5.2.11",
16
-    "@angular/common": "5.2.11",
17
-    "@angular/compiler": "5.2.11",
18
-    "@angular/compiler-cli": "5.2.11",
19
-    "@angular/core": "5.2.11",
20
-    "@angular/forms": "5.2.11",
21
-    "@angular/http": "5.2.11",
22
-    "@angular/platform-browser": "5.2.11",
23
-    "@angular/platform-browser-dynamic": "5.2.11",
24
-    "@ionic-native/core": "4.9.1",
25
-    "@ionic-native/splash-screen": "4.9.1",
26
-    "@ionic-native/status-bar": "4.9.1",
27
-    "@ionic/pro": "1.0.20",
28
-    "@ionic/storage": "2.1.3",
29
-    "angular-oauth2-oidc": "^4.0.2",
30
-    "ionic-angular": "3.9.2",
31
-    "ionicons": "3.0.0",
32
-    "rxjs": "5.5.11",
33
-    "sw-toolbox": "3.6.0",
34
-    "zone.js": "0.8.26"
35
-  },
36
-  "devDependencies": {
37
-    "@ionic/app-scripts": "3.1.10",
38
-    "typescript": "~2.6.2"
39
-  },
40
-  "description": "An Ionic project"
41
-}

+ 100
- 0
pcap.iml View File

@@ -0,0 +1,100 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="FacetManager">
4
+    <facet type="web" name="Web">
5
+      <configuration>
6
+        <webroots />
7
+        <sourceRoots>
8
+          <root url="file://$MODULE_DIR$/src/main/java" />
9
+          <root url="file://$MODULE_DIR$/src/main/resources" />
10
+        </sourceRoots>
11
+      </configuration>
12
+    </facet>
13
+    <facet type="Spring" name="Spring">
14
+      <configuration>
15
+        <fileset id="fileset" name="PacketTracker" removed="false">
16
+          <file>file://$MODULE_DIR$/src/main/java/com/wyds/packets/PacketTracker.java</file>
17
+          <file>file://$MODULE_DIR$/src/main/java/com/wyds/PacketTracker.java</file>
18
+        </fileset>
19
+      </configuration>
20
+    </facet>
21
+  </component>
22
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
23
+    <output url="file://$MODULE_DIR$/target/classes" />
24
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
25
+    <content url="file://$MODULE_DIR$">
26
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
27
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
28
+      <sourceFolder url="file://$MODULE_DIR$/src/main/test" isTestSource="true" />
29
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
30
+      <excludeFolder url="file://$MODULE_DIR$/target" />
31
+    </content>
32
+    <orderEntry type="inheritedJdk" />
33
+    <orderEntry type="sourceFolder" forTests="false" />
34
+    <orderEntry type="library" name="Spring-4.3.18.RELEASE" level="project" />
35
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:3.8.1" level="project" />
36
+    <orderEntry type="library" name="Maven: org.pcap4j:pcap4j-core:1.7.3" level="project" />
37
+    <orderEntry type="library" name="Maven: net.java.dev.jna:jna:4.5.1" level="project" />
38
+    <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
39
+    <orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.46" level="project" />
40
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.3.RELEASE" level="project" />
41
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.0.3.RELEASE" level="project" />
42
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.0.3.RELEASE" level="project" />
43
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.0.3.RELEASE" level="project" />
44
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.0.3.RELEASE" level="project" />
45
+    <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
46
+    <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
47
+    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.10.0" level="project" />
48
+    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.10.0" level="project" />
49
+    <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.25" level="project" />
50
+    <orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
51
+    <orderEntry type="library" name="Maven: org.springframework:spring-core:5.0.7.RELEASE" level="project" />
52
+    <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.0.7.RELEASE" level="project" />
53
+    <orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.19" level="project" />
54
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.3.RELEASE" level="project" />
55
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.6" level="project" />
56
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
57
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.6" level="project" />
58
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6" level="project" />
59
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6" level="project" />
60
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6" level="project" />
61
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.3.RELEASE" level="project" />
62
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.31" level="project" />
63
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.31" level="project" />
64
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.31" level="project" />
65
+    <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.10.Final" level="project" />
66
+    <orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
67
+    <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
68
+    <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
69
+    <orderEntry type="library" name="Maven: org.springframework:spring-web:5.0.7.RELEASE" level="project" />
70
+    <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.0.7.RELEASE" level="project" />
71
+    <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.0.7.RELEASE" level="project" />
72
+    <orderEntry type="library" name="Maven: org.springframework:spring-context:5.0.7.RELEASE" level="project" />
73
+    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.0.7.RELEASE" level="project" />
74
+    <orderEntry type="library" name="Maven: io.pkts:pkts-streams:3.0.2" level="project" />
75
+    <orderEntry type="library" name="Maven: io.pkts:pkts-sdp:3.0.2" level="project" />
76
+    <orderEntry type="library" name="Maven: javax.sip:jain-sip-ri:1.2.159" level="project" />
77
+    <orderEntry type="library" name="Maven: io.pkts:pkts-core:3.0.2" level="project" />
78
+    <orderEntry type="library" name="Maven: io.pkts:pkts-buffers:3.0.2" level="project" />
79
+    <orderEntry type="library" name="Maven: io.pkts:pkts-sip:3.0.2" level="project" />
80
+    <orderEntry type="library" name="Maven: redis.clients:jedis:2.9.0" level="project" />
81
+    <orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.5.0" level="project" />
82
+    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.0.3.RELEASE" level="project" />
83
+    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.0.8.RELEASE" level="project" />
84
+    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.0.8.RELEASE" level="project" />
85
+    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.0.7.RELEASE" level="project" />
86
+    <orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.0.7.RELEASE" level="project" />
87
+    <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.0.7.RELEASE" level="project" />
88
+    <orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.0.7.RELEASE" level="project" />
89
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.0.3.RELEASE" level="project" />
90
+    <orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.0.4.RELEASE" level="project" />
91
+    <orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.1.8.RELEASE" level="project" />
92
+    <orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.2" level="project" />
93
+    <orderEntry type="library" name="Maven: io.netty:netty-common:4.1.25.Final" level="project" />
94
+    <orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.25.Final" level="project" />
95
+    <orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.25.Final" level="project" />
96
+    <orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.25.Final" level="project" />
97
+    <orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.25.Final" level="project" />
98
+    <orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.25.Final" level="project" />
99
+  </component>
100
+</module>

BIN
pcap.txt View File


+ 133
- 0
pom.xml View File

@@ -0,0 +1,133 @@
1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+    <modelVersion>4.0.0</modelVersion>
4
+    <groupId>com.wyds.packets</groupId>
5
+    <artifactId>pcap</artifactId>
6
+    <packaging>jar</packaging>
7
+    <version>1.0.0</version>
8
+    <name>pcap</name>
9
+    <url>http://maven.apache.org</url>
10
+
11
+    <parent>
12
+        <groupId>org.springframework.boot</groupId>
13
+        <artifactId>spring-boot-starter-parent</artifactId>
14
+        <version>2.0.3.RELEASE</version>
15
+    </parent>
16
+
17
+
18
+    <dependencies>
19
+        <dependency>
20
+            <groupId>junit</groupId>
21
+            <artifactId>junit</artifactId>
22
+            <version>3.8.1</version>
23
+            <scope>test</scope>
24
+        </dependency>
25
+
26
+        <dependency>
27
+            <groupId>org.pcap4j</groupId>
28
+            <artifactId>pcap4j-core</artifactId>
29
+            <version>1.7.3</version>
30
+            <type>jar</type>
31
+        </dependency>
32
+
33
+
34
+        <dependency>
35
+            <groupId>mysql</groupId>
36
+            <artifactId>mysql-connector-java</artifactId>
37
+        </dependency>
38
+        <dependency>
39
+            <groupId>org.springframework.boot</groupId>
40
+            <artifactId>spring-boot-starter-web</artifactId>
41
+        </dependency>
42
+
43
+        <dependency>
44
+            <groupId>io.pkts</groupId>
45
+            <artifactId>pkts-streams</artifactId>
46
+            <version>3.0.2</version>
47
+            <type>jar</type>
48
+        </dependency>
49
+
50
+        <dependency>
51
+            <groupId>io.pkts</groupId>
52
+            <artifactId>pkts-core</artifactId>
53
+            <version>3.0.2</version>
54
+            <type>jar</type>
55
+        </dependency>
56
+
57
+        <dependency>
58
+            <groupId>redis.clients</groupId>
59
+            <artifactId>jedis</artifactId>
60
+            <version>2.9.0</version>
61
+        </dependency>
62
+        <dependency>
63
+            <groupId>org.springframework.data</groupId>
64
+            <artifactId>spring-data-redis</artifactId>
65
+            <version>2.0.3.RELEASE</version>
66
+        </dependency>
67
+
68
+        <dependency>
69
+            <groupId>org.springframework.boot</groupId>
70
+            <artifactId>spring-boot-starter-data-redis</artifactId>
71
+        </dependency>
72
+
73
+    </dependencies>
74
+
75
+    <build>
76
+
77
+
78
+
79
+
80
+        <plugins>
81
+            <!-- Specify to the compiler we want Java 1.8 -->
82
+            <plugin>
83
+                <groupId>org.apache.maven.plugins</groupId>
84
+                <artifactId>maven-compiler-plugin</artifactId>
85
+                <version>3.7.0</version>
86
+                <configuration>
87
+                    <source>1.8</source>
88
+                    <target>1.8</target>
89
+                </configuration>
90
+            </plugin>
91
+
92
+            <!-- Tell the JAR plugin which class is the main class -->
93
+            <plugin>
94
+                <groupId>org.apache.maven.plugins</groupId>
95
+                <artifactId>maven-jar-plugin</artifactId>
96
+                <version>3.0.2</version>
97
+                <configuration>
98
+                    <archive>
99
+                        <manifest>
100
+                            <mainClass>com.wyds.PacketTracker</mainClass>
101
+                        </manifest>
102
+                    </archive>
103
+                </configuration>
104
+            </plugin>
105
+
106
+            <!-- Embed dependencies inside the final JAR -->
107
+            <plugin>
108
+                <groupId>org.apache.maven.plugins</groupId>
109
+                <artifactId>maven-shade-plugin</artifactId>
110
+                <version>3.1.0</version>
111
+                <executions>
112
+                    <execution>
113
+                        <phase>package</phase>
114
+                        <goals>
115
+                            <goal>shade</goal>
116
+                        </goals>
117
+                    </execution>
118
+                </executions>
119
+                <configuration>
120
+                    <finalName>uber-${project.artifactId}-${project.version}</finalName>
121
+                </configuration>
122
+            </plugin>
123
+        </plugins>
124
+
125
+
126
+
127
+
128
+
129
+    </build>
130
+
131
+
132
+
133
+</project>

+ 0
- 58
src/app/app.component.ts View File

@@ -1,58 +0,0 @@
1
-import { Component, ViewChild } from '@angular/core';
2
-import { Nav, Platform } from 'ionic-angular';
3
-import { StatusBar } from '@ionic-native/status-bar';
4
-import { SplashScreen } from '@ionic-native/splash-screen';
5
-
6
-import { HomePage } from '../pages/home/home';
7
-import { ListPage } from '../pages/list/list';
8
-import { ActiveConnections } from '../pages/active/active';
9
-import { History } from '../pages/history/history';
10
-import { Notes } from '../pages/notes/notes';
11
-import {Settings} from '../pages/settings/settings'
12
-
13
-
14
-
15
-
16
-@Component({
17
-  templateUrl: 'app.html'
18
-})
19
-export class MyApp {
20
-  @ViewChild(Nav) nav: Nav;
21
-
22
-  rootPage: any = HomePage;
23
-
24
-  pages: Array<{title: string, component: any, icon: string}>;
25
-
26
-  constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) {
27
-   
28
-
29
-    this.initializeApp();
30
-
31
-
32
-    // used for an example of ngFor and navigation
33
-    this.pages = [
34
-      { title: 'Home', component: HomePage, icon: 'home'},
35
-      //{ title: 'ListOfLists', component: ListPage },
36
-      { title: 'Active Connections', component: ActiveConnections, icon: 'wifi'},
37
-      { title: 'History', component: History, icon: 'archive' },
38
-      { title: 'Notes', component: Notes, icon: 'create' },
39
-      {title: 'Settings', component: Settings, icon: 'settings'}
40
-    ];
41
-
42
-  }
43
-
44
-  initializeApp() {
45
-    this.platform.ready().then(() => {
46
-      // Okay, so the platform is ready and our plugins are available.
47
-      // Here you can do any higher level native things you might need.
48
-      this.statusBar.styleDefault();
49
-      this.splashScreen.hide();
50
-    });
51
-  }
52
-
53
-  openPage(page) {
54
-    // Reset the content nav to have just this page
55
-    // we wouldn't want the back button to show in this scenario
56
-    this.nav.setRoot(page.component);
57
-  }
58
-}

+ 0
- 20
src/app/app.html View File

@@ -1,20 +0,0 @@
1
-<ion-menu [content]="content">
2
-  <ion-header>
3
-    <ion-toolbar>
4
-      <ion-title>Menu</ion-title>
5
-    </ion-toolbar>
6
-  </ion-header>
7
-
8
-  <ion-content>
9
-    <ion-list>
10
-      <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">
11
-        <ion-icon [name]="p.icon" item-left></ion-icon>
12
-        {{p.title}}
13
-      </button>
14
-    </ion-list>
15
-  </ion-content>
16
-
17
-</ion-menu>
18
-
19
-<!-- Disable swipe-to-go-back because it's poor UX to combine STGB with side menus -->
20
-<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

+ 0
- 37
src/app/app.module.ts View File

@@ -1,37 +0,0 @@
1
-import { BrowserModule } from '@angular/platform-browser';
2
-import { ErrorHandler, NgModule } from '@angular/core';
3
-import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
4
-
5
-import { MyApp } from './app.component';
6
-import { HomePage } from '../pages/home/home';
7
-import { ListPage } from '../pages/list/list';
8
-
9
-import { StatusBar } from '@ionic-native/status-bar';
10
-import { SplashScreen } from '@ionic-native/splash-screen';
11
-import { HttpModule } from '@angular/http';
12
-
13
-
14
-@NgModule({
15
-  declarations: [
16
-    MyApp,
17
-    HomePage,
18
-    ListPage
19
-  ],
20
-  imports: [
21
-    BrowserModule,
22
-    HttpModule,
23
-    IonicModule.forRoot(MyApp),
24
-  ],
25
-  bootstrap: [IonicApp],
26
-  entryComponents: [
27
-    MyApp,
28
-    HomePage,
29
-    ListPage
30
-  ],
31
-  providers: [
32
-    StatusBar,
33
-    SplashScreen,
34
-    {provide: ErrorHandler, useClass: IonicErrorHandler}
35
-  ]
36
-})
37
-export class AppModule {}

+ 0
- 18
src/app/app.scss View File

@@ -1,18 +0,0 @@
1
-// http://ionicframework.com/docs/theming/
2
-
3
-
4
-// App Global Sass
5
-// --------------------------------------------------
6
-// Put style rules here that you want to apply globally. These
7
-// styles are for the entire app and not just one component.
8
-// Additionally, this file can be also used as an entry point
9
-// to import other Sass files to be included in the output CSS.
10
-//
11
-// Shared Sass variables, which can be used to adjust Ionic's
12
-// default Sass variables, belong in "theme/variables.scss".
13
-//
14
-// To declare rules for a specific mode, create a child rule
15
-// for the .md, .ios, or .wp mode classes. The mode class is
16
-// automatically applied to the <body> element in the app.
17
-
18
-

+ 0
- 5
src/app/main.ts View File

@@ -1,5 +0,0 @@
1
-import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2
-
3
-import { AppModule } from './app.module';
4
-
5
-platformBrowserDynamic().bootstrapModule(AppModule);

BIN
src/assets/icon/favicon.ico View File


BIN
src/assets/imgs/logo.png View File


+ 0
- 50
src/index.html View File

@@ -1,50 +0,0 @@
1
-<!DOCTYPE html>
2
-<html lang="en" dir="ltr">
3
-<head>
4
-  <meta charset="UTF-8">
5
-  <title>Ionic App</title>
6
-  <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
7
-  <meta name="format-detection" content="telephone=no">
8
-  <meta name="msapplication-tap-highlight" content="no">
9
-
10
-  <link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
11
-  <link rel="manifest" href="manifest.json">
12
-  <meta name="theme-color" content="#4e8ef7">
13
-
14
-  <!-- add to homescreen for ios -->
15
-  <meta name="apple-mobile-web-app-capable" content="yes">
16
-  <meta name="apple-mobile-web-app-status-bar-style" content="black">
17
-
18
-  <!-- cordova.js required for cordova apps (remove if not needed) -->
19
-  <script src="cordova.js"></script>
20
-
21
-  <!-- un-comment this code to enable service worker
22
-  <script>
23
-    if ('serviceWorker' in navigator) {
24
-      navigator.serviceWorker.register('service-worker.js')
25
-        .then(() => console.log('service worker installed'))
26
-        .catch(err => console.error('Error', err));
27
-    }
28
-  </script>-->
29
-
30
-  <link href="build/main.css" rel="stylesheet">
31
-
32
-</head>
33
-<body>
34
-
35
-  <!-- Ionic's root component and where the app will load -->
36
-  <ion-app></ion-app>
37
-
38
-  <!-- The polyfills js is generated during the build process -->
39
-  <script src="build/polyfills.js"></script>
40
-
41
-  <!-- The vendor js is generated during the build process
42
-       It contains all of the dependencies in node_modules -->
43
-  <script src="build/vendor.js"></script>
44
-
45
-  <!-- The main bundle js is generated during the build process -->
46
-  <script src="build/main.js"></script>
47
-
48
-
49
-</body>
50
-</html>

+ 44
- 0
src/main/java/com/wyds/Loader/PacketLoader.java View File

@@ -0,0 +1,44 @@
1
+package com.wyds.Loader;
2
+
3
+import com.wyds.PacketRepo.PacketRepository;
4
+import com.wyds.packets.PacketEntity;
5
+import com.wyds.packets.PacketMapper;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.boot.ApplicationArguments;
8
+import org.springframework.boot.ApplicationRunner;
9
+import org.springframework.stereotype.Service;
10
+
11
+import java.io.IOException;
12
+import java.util.Iterator;
13
+import java.util.Map;
14
+
15
+@Service
16
+public class PacketLoader implements ApplicationRunner {
17
+
18
+    private  PacketRepository pr;
19
+
20
+    private PacketMapper pm;
21
+
22
+    @Autowired
23
+    public PacketLoader(PacketRepository pr){
24
+        this.pr=pr;
25
+    }
26
+
27
+    @Override
28
+    public void run(ApplicationArguments args) throws IOException {
29
+
30
+
31
+
32
+        PacketEntity[] pe = new PacketEntity[]{new PacketEntity("1",2,"testPacket")
33
+        ,new PacketEntity("1", 2,"thisisapacket"), new PacketEntity("3", 3, "mary had a little lamb that wasa very sad")
34
+
35
+
36
+        };
37
+
38
+
39
+
40
+        for (PacketEntity e : pe){
41
+            this.pr.save(e);
42
+        }
43
+    }
44
+}

+ 25
- 0
src/main/java/com/wyds/PacketController/PacketController.java View File

@@ -0,0 +1,25 @@
1
+package com.wyds.PacketController;
2
+
3
+
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;
8
+
9
+@RestController
10
+public class PacketController {
11
+
12
+
13
+    @RequestMapping("/")
14
+    public String whatUp(){
15
+        return " Packet sniffing is awesome. Hello! The server is up and running.";
16
+    }
17
+
18
+
19
+    @RequestMapping("/wyd")
20
+    public String wydHere(){
21
+        return "Show me ur packets";
22
+    }
23
+
24
+
25
+}

+ 14
- 0
src/main/java/com/wyds/PacketRepo/PacketRepository.java View File

@@ -0,0 +1,14 @@
1
+package com.wyds.PacketRepo;
2
+
3
+
4
+import com.wyds.packets.PacketEntity;
5
+import org.springframework.data.redis.repository.configuration.EnableRedisRepositories;
6
+import org.springframework.data.repository.CrudRepository;
7
+import org.springframework.stereotype.Repository;
8
+import org.springframework.stereotype.Service;
9
+
10
+
11
+@Repository
12
+public interface PacketRepository extends CrudRepository<PacketEntity, String> {
13
+
14
+}

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

@@ -0,0 +1,40 @@
1
+package com.wyds;
2
+
3
+import com.wyds.packets.Capture;
4
+import com.wyds.packets.PacketMapper;
5
+import com.wyds.packets.PacketParser;
6
+import com.wyds.packets.PacketEntity;
7
+import org.pcap4j.core.*;
8
+
9
+import java.io.IOException;
10
+
11
+import org.springframework.boot.SpringApplication;
12
+import org.springframework.boot.autoconfigure.SpringBootApplication;
13
+import org.springframework.web.bind.annotation.RestController;
14
+
15
+@SpringBootApplication
16
+@RestController
17
+public class PacketTracker {
18
+    public static void main(String[] args) throws PcapNativeException, NotOpenException, IOException {
19
+
20
+        Capture c = new Capture();
21
+        PacketParser parser = new PacketParser();
22
+        PacketMapper pm = new PacketMapper();
23
+
24
+        //runners
25
+        SpringApplication.run(PacketTracker.class, args);
26
+        c.capturePack();
27
+        parser.parseUDP();
28
+        pm.packet();
29
+
30
+
31
+
32
+       //<------------------------------------------------------>
33
+        //mvn package
34
+        //sudo java -jar target/uber-pcap-1.0.0.jar
35
+        //mvn spring-boot:run
36
+
37
+    }
38
+
39
+
40
+}

+ 33
- 0
src/main/java/com/wyds/config/SpringSessionRedisConfiguration.java View File

@@ -0,0 +1,33 @@
1
+package com.wyds.config;
2
+
3
+import org.springframework.beans.factory.annotation.Value;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.Configuration;
6
+import org.springframework.context.annotation.PropertySource;
7
+import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
8
+import org.springframework.data.redis.cache.RedisCacheManager;
9
+import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
10
+import org.springframework.data.redis.core.RedisTemplate;
11
+import org.springframework.data.redis.repository.configuration.EnableRedisRepositories;
12
+import org.springframework.web.bind.annotation.RestController;
13
+
14
+@Configuration
15
+@EnableRedisRepositories
16
+
17
+//@PropertySource("application.properties")
18
+public class SpringSessionRedisConfiguration {
19
+
20
+    @Bean
21
+    JedisConnectionFactory jedisConnectionFactory() {
22
+        return new JedisConnectionFactory();
23
+
24
+    }
25
+
26
+    @Bean
27
+    public RedisTemplate<String, Object> redisTemplate() {
28
+        RedisTemplate<String, Object> template = new RedisTemplate<>();
29
+        template.setConnectionFactory(jedisConnectionFactory());
30
+        return template;
31
+    }
32
+
33
+}

+ 81
- 0
src/main/java/com/wyds/packets/Capture.java View File

@@ -0,0 +1,81 @@
1
+package com.wyds.packets;
2
+
3
+import org.pcap4j.core.*;
4
+import org.pcap4j.util.NifSelector;
5
+
6
+import java.io.IOException;
7
+
8
+public class Capture {
9
+
10
+
11
+    public void capturePack() throws PcapNativeException, NotOpenException {
12
+
13
+        int snapShotLength = 65536;
14
+        int timeOut = 50;
15
+        final PcapHandle handle;
16
+        final PcapNetworkInterface device = deviceCheck();
17
+
18
+        handle = device.openLive(snapShotLength, PcapNetworkInterface.PromiscuousMode.PROMISCUOUS, timeOut);
19
+
20
+
21
+        String filter = "";
22
+        handle.setFilter(filter, BpfProgram.BpfCompileMode.OPTIMIZE);
23
+
24
+        PcapDumper dumper = handle.dumpOpen("output.pcap");
25
+
26
+        /**
27
+           @param anonymous class
28
+         */
29
+        PacketListener listener = packet -> {
30
+
31
+            try {
32
+                dumper.dump(packet, handle.getTimestamp());
33
+            } catch (NotOpenException e) {
34
+               e.printStackTrace();
35
+            }
36
+
37
+
38
+        };
39
+
40
+        /**
41
+         * @param maxPackets, change this to desired amount. maybe a while loop?
42
+         */
43
+        try {
44
+            int maxPackets = 100;
45
+            handle.loop(maxPackets, listener);
46
+        } catch (InterruptedException e) {
47
+           e.printStackTrace();
48
+        }
49
+
50
+
51
+        PcapStat stats = handle.getStats();
52
+
53
+        System.out.println("Packets received: " + stats.getNumPacketsReceived());
54
+
55
+        dumper.close();
56
+        handle.close();
57
+
58
+
59
+
60
+    }
61
+
62
+    private PcapNetworkInterface deviceCheck() {
63
+
64
+        PcapNetworkInterface device = null;
65
+
66
+        try {
67
+            device = new NifSelector().selectNetworkInterface();
68
+        } catch (IOException e) {
69
+            e.printStackTrace();
70
+        }
71
+
72
+        System.out.println("Device: " + device);
73
+
74
+        if (device == null) {
75
+            System.out.println("no device chosen.");
76
+            System.exit(1);
77
+        }
78
+
79
+        return device;
80
+    }
81
+}

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

@@ -0,0 +1,76 @@
1
+package com.wyds.packets;
2
+
3
+
4
+
5
+//import javax.persistence.*;
6
+
7
+import org.springframework.data.annotation.Id;
8
+import org.springframework.data.annotation.Reference;
9
+import org.springframework.data.redis.core.RedisHash;
10
+import org.springframework.data.redis.core.index.Indexed;
11
+
12
+import java.io.Serializable;
13
+import java.util.HashMap;
14
+
15
+//@Entity
16
+///@Table(name = "pcap")
17
+@RedisHash("Packet")
18
+public class PacketEntity implements Serializable {
19
+    private PacketMapper pm = new PacketMapper();
20
+
21
+    @Id
22
+    private String id;
23
+
24
+   // @Column(name = "packet")
25
+    @Indexed
26
+    private String packet;
27
+
28
+   // @Column(name = "packetID")
29
+    @Indexed
30
+    private Integer packetID;
31
+
32
+
33
+    @Reference
34
+    HashMap<PacketEntity, String> packmap;
35
+
36
+
37
+    public PacketEntity(String id, Integer packetID, String packet) {
38
+        this.id = id;
39
+        this.packetID = packetID;
40
+        this.packet = packet;
41
+    }
42
+
43
+    public PacketEntity() {
44
+    }
45
+
46
+
47
+    public String getId() {
48
+        return id;
49
+    }
50
+
51
+    public void setId(String id) {
52
+        this.id = id;
53
+    }
54
+
55
+    public Integer getPacketID() {
56
+        return packetID;
57
+    }
58
+
59
+    public void setPacketID(Integer packetID) {
60
+        this.packetID = packetID;
61
+    }
62
+
63
+
64
+    public String getPacket() {
65
+        return packet;
66
+    }
67
+
68
+    public void setPacket(String packet) {
69
+        this.packet = packet;
70
+    }
71
+
72
+    public String concatPacket(){
73
+        return id + " " + packet;
74
+    }
75
+
76
+}

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

@@ -0,0 +1,34 @@
1
+package com.wyds.packets;
2
+
3
+import java.io.IOException;
4
+import java.util.HashMap;
5
+import java.util.LinkedList;
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+public class PacketMapper {
10
+
11
+    private PacketParser parser = new PacketParser();
12
+    private Map<Integer, String> packetMap = new HashMap<>();
13
+    private List<String> packetLst = new LinkedList<>();
14
+
15
+    public Map<Integer, String> packet() throws IOException {
16
+        parser.parseUDP();
17
+
18
+        for (int i = 0; i < parser.getPacketList().size(); i++) {
19
+            packetMap.put(i, parser.getPacketList().get(i));
20
+
21
+
22
+        }
23
+        //System.out.println(packetMap);
24
+        return packetMap;
25
+    }
26
+
27
+
28
+   /* public List<String> packet1() throws IOException {
29
+        parser.parseUDP();
30
+        packetLst.addAll(parser.getPacketList());
31
+        return packetLst;
32
+    }*/
33
+
34
+}

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

@@ -0,0 +1,63 @@
1
+package com.wyds.packets;
2
+
3
+import io.pkts.PacketHandler;
4
+import io.pkts.Pcap;
5
+import io.pkts.PcapOutputStream;
6
+import io.pkts.buffer.Buffer;
7
+import io.pkts.packet.Packet;
8
+import io.pkts.packet.TCPPacket;
9
+import io.pkts.packet.UDPPacket;
10
+import io.pkts.protocol.Protocol;
11
+
12
+import java.io.ByteArrayOutputStream;
13
+import java.io.IOException;
14
+import java.util.ArrayList;
15
+import java.util.HashMap;
16
+import java.util.List;
17
+import java.util.Map;
18
+
19
+
20
+public class PacketParser {
21
+
22
+
23
+
24
+
25
+
26
+    /**
27
+     * @param arrayList for storing udp packet buffers
28
+     */
29
+     private List<String> packetList;
30
+
31
+    public List<String> parseUDP() throws IOException {
32
+
33
+        final Pcap pcap = Pcap.openStream("output.pcap");
34
+        packetList = new ArrayList<>();
35
+
36
+
37
+        pcap.loop(packet -> {
38
+
39
+
40
+            if (packet.hasProtocol(Protocol.UDP)) {
41
+
42
+                UDPPacket udpPacket = (UDPPacket) packet.getPacket(Protocol.UDP);
43
+                Buffer buffer = udpPacket.getPayload();
44
+                if (buffer != null) {
45
+                    packetList.add(buffer.toString());
46
+                }
47
+            }
48
+
49
+            return true;
50
+        });
51
+
52
+        return packetList;
53
+    }
54
+
55
+    /**
56
+     * @return packet list of decrypted UDP packets
57
+     */
58
+    public List<String> getPacketList() {
59
+
60
+        return packetList;
61
+    }
62
+
63
+}

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

@@ -0,0 +1,38 @@
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-drop
28
+##change to update once functional
29
+
30
+#app.config.redis.host=localhost
31
+#app.config.redis.port=6379
32
+#app.config.redis.user=
33
+#app.config.redis.password=
34
+
35
+
36
+spring.redis.host= localhost
37
+
38
+spring.redis.port= 6379

+ 0
- 13
src/manifest.json View File

@@ -1,13 +0,0 @@
1
-{
2
-  "name": "Ionic",
3
-  "short_name": "Ionic",
4
-  "start_url": "index.html",
5
-  "display": "standalone",
6
-  "icons": [{
7
-    "src": "assets/imgs/logo.png",
8
-    "sizes": "512x512",
9
-    "type": "image/png"
10
-  }],
11
-  "background_color": "#4e8ef7",
12
-  "theme_color": "#4e8ef7"
13
-}

+ 0
- 22
src/pages/active/active.html View File

@@ -1,22 +0,0 @@
1
-<!--
2
-  Generated template for the ActivePage page.
3
-
4
-  See http://ionicframework.com/docs/components/#navigation for more info on
5
-  Ionic pages and navigation.
6
--->
7
-<ion-header>
8
-
9
-  <ion-navbar>
10
-    <ion-title>Active Connections</ion-title>
11
-  </ion-navbar>
12
-
13
-</ion-header>
14
-
15
-
16
-<ion-content>
17
-
18
-<ion-list>
19
-  <ion-item *ngFor="let Connection of Connections">{{Connection}}</ion-item>
20
-</ion-list>
21
-
22
-</ion-content>

+ 0
- 13
src/pages/active/active.module.ts View File

@@ -1,13 +0,0 @@
1
-import { NgModule } from '@angular/core';
2
-import { IonicPageModule } from 'ionic-angular';
3
-import { ActiveConnections } from './active';
4
-
5
-@NgModule({
6
-  declarations: [
7
-    ActiveConnections,
8
-  ],
9
-  imports: [
10
-    IonicPageModule.forChild(ActiveConnections),
11
-  ],
12
-})
13
-export class ActivePageModule {}

+ 0
- 3
src/pages/active/active.scss View File

@@ -1,3 +0,0 @@
1
-page-active {
2
-
3
-}

+ 0
- 30
src/pages/active/active.ts View File

@@ -1,30 +0,0 @@
1
-import { Component } from '@angular/core';
2
-import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
-
4
-/**
5
- * Generated class for the ActivePage page.
6
- *
7
- * See https://ionicframework.com/docs/components/#navigation for more info on
8
- * Ionic pages and navigation.
9
- */
10
-
11
-@IonicPage()
12
-@Component({
13
-  selector: 'page-active',
14
-  templateUrl: 'active.html',
15
-})
16
-export class ActiveConnections {
17
-
18
-  connections: any;
19
-
20
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
21
-  
22
-
23
-  this.connections = [
24
-    'Device 1',
25
-    'Device 2'
26
-
27
-  ];
28
-  }
29
-
30
-}

+ 0
- 18
src/pages/history/history.html View File

@@ -1,18 +0,0 @@
1
-<!--
2
-  Generated template for the HistoryPage page.
3
-
4
-  See http://ionicframework.com/docs/components/#navigation for more info on
5
-  Ionic pages and navigation.
6
--->
7
-<ion-header>
8
-
9
-  <ion-navbar>
10
-    <ion-title>History</ion-title>
11
-  </ion-navbar>
12
-
13
-</ion-header>
14
-
15
-
16
-<ion-content padding>
17
-
18
-</ion-content>

+ 0
- 13
src/pages/history/history.module.ts View File

@@ -1,13 +0,0 @@
1
-import { NgModule } from '@angular/core';
2
-import { IonicPageModule } from 'ionic-angular';
3
-import { HistoryPage } from './history';
4
-
5
-@NgModule({
6
-  declarations: [
7
-    HistoryPage,
8
-  ],
9
-  imports: [
10
-    IonicPageModule.forChild(HistoryPage),
11
-  ],
12
-})
13
-export class HistoryPageModule {}

+ 0
- 3
src/pages/history/history.scss View File

@@ -1,3 +0,0 @@
1
-page-history {
2
-
3
-}

+ 0
- 25
src/pages/history/history.ts View File

@@ -1,25 +0,0 @@
1
-import { Component } from '@angular/core';
2
-import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
-
4
-/**
5
- * Generated class for the HistoryPage page.
6
- *
7
- * See https://ionicframework.com/docs/components/#navigation for more info on
8
- * Ionic pages and navigation.
9
- */
10
-
11
-@IonicPage()
12
-@Component({
13
-  selector: 'page-history',
14
-  templateUrl: 'history.html',
15
-})
16
-export class History {
17
-
18
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
-  }
20
-
21
-  ionViewDidLoad() {
22
-    console.log('ionViewDidLoad HistoryPage');
23
-  }
24
-
25
-}

+ 0
- 23
src/pages/home/home.html View File

@@ -1,23 +0,0 @@
1
-<ion-header>
2
-  
3
-  <ion-navbar>
4
-    <button ion-button menuToggle>
5
-      <ion-icon name="menu"></ion-icon>
6
-    </button>
7
-    <ion-title>Home</ion-title>
8
-  
9
-  </ion-navbar>
10
-</ion-header>
11
-
12
-<ion-content padding>
13
-  <h1>WYD on my network</h1>
14
-
15
-
16
-  <p>This is the wyds homepage</p>
17
-
18
-  <button ion-button secondary menuToggle>Click for Menu</button>
19
-
20
-  
21
-
22
-
23
-</ion-content>

+ 0
- 16
src/pages/home/home.module.ts View File

@@ -1,16 +0,0 @@
1
-import { NgModule } from '@angular/core';
2
-import { IonicPageModule } from 'ionic-angular';
3
-import { HomePage } from './home';
4
- 
5
-@NgModule({
6
-  declarations: [
7
-    HomePage
8
-  ],
9
-  imports: [
10
-    IonicPageModule.forChild(HomePage),
11
-  ],
12
-  exports: [
13
-    HomePage
14
-  ]
15
-})
16
-export class HomeModule {}

+ 0
- 3
src/pages/home/home.scss View File

@@ -1,3 +0,0 @@
1
-page-home {
2
-
3
-}

+ 0
- 22
src/pages/home/home.ts View File

@@ -1,22 +0,0 @@
1
-import { Component } from '@angular/core';
2
-import { NavController } from 'ionic-angular';
3
-
4
-@Component({
5
-  selector: 'page-home',
6
-  templateUrl: 'home.html'
7
-})
8
-export class HomePage {
9
-
10
-  tab1Root: any = 'Home';
11
-  tab2Root: any = 'Active Connections'
12
-  tab3Root: any = 'History';
13
-  tab4Root: any = 'Notes';
14
-  tab5Root: any = 'Settings';
15
-
16
-
17
-
18
-  constructor(public navCtrl: NavController) {
19
-
20
-  }
21
-
22
-}

+ 0
- 23
src/pages/list/list.html View File

@@ -1,23 +0,0 @@
1
-<ion-header>
2
-  <ion-navbar>
3
-    <button ion-button menuToggle>
4
-      <ion-icon name="menu"></ion-icon>
5
-    </button>
6
-    <ion-title>Dropdown</ion-title>
7
-  </ion-navbar>
8
-</ion-header>
9
-
10
-<ion-content>
11
-  <ion-list>
12
-    <button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">
13
-      <ion-icon [name]="item.icon" item-start></ion-icon>
14
-      {{item.title}}
15
-      <div class="item-note" item-end>
16
-        {{item.note}}
17
-      </div>
18
-    </button>
19
-  </ion-list>
20
-  <div *ngIf="selectedItem" padding>
21
-    You navigated here from <b>{{selectedItem.title}}</b>
22
-  </div>
23
-</ion-content>

+ 0
- 3
src/pages/list/list.scss View File

@@ -1,3 +0,0 @@
1
-page-list {
2
-
3
-}

+ 0
- 37
src/pages/list/list.ts View File

@@ -1,37 +0,0 @@
1
-import { Component } from '@angular/core';
2
-import { NavController, NavParams } from 'ionic-angular';
3
-
4
-@Component({
5
-  selector: 'page-list',
6
-  templateUrl: 'list.html'
7
-})
8
-export class ListPage {
9
-  selectedItem: any;
10
-  icons: string[];
11
-  items: Array<{title: string, note: string, icon: string}>;
12
-
13
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
14
-    // If we navigated to this page, we will have an item available as a nav param
15
-    this.selectedItem = navParams.get('item');
16
-
17
-    // Let's populate this page with some filler content for funzies
18
-    this.icons = ['flask', 'wifi', 'beer', 'football', 'basketball', 'paper-plane',
19
-    'american-football', 'boat', 'bluetooth', 'build'];
20
-
21
-    this.items = [];
22
-    for (let i = 1; i < 11; i++) {
23
-      this.items.push({
24
-        title: 'Item ' + i,
25
-        note: 'This is item #' + i,
26
-        icon: this.icons[Math.floor(Math.random() * this.icons.length)]
27
-      });
28
-    }
29
-  }
30
-
31
-  itemTapped(event, item) {
32
-    // That's right, we're pushing to ourselves!
33
-    this.navCtrl.push(ListPage, {
34
-      item: item
35
-    });
36
-  }
37
-}

+ 0
- 130
src/pages/loginRegister/register.html View File

@@ -1,130 +0,0 @@
1
-<!DOCTYPE html>
2
-<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
3
-      xmlns:th="http://www.thymeleaf.org">
4
-
5
-<head>
6
-    <meta charset="utf-8" />
7
-    <meta http-equiv="X-UA-Compatible" content="google-Chrome" />
8
-    <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-    <meta name="description" content="User account registration" />
10
-
11
-    <title>Registration Page</title>
12
-
13
-    <!-- Bootstrap core CSS -->
14
-    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
15
-          rel="stylesheet"
16
-          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
17
-          crossorigin="anonymous" />
18
-
19
-    <link th:href="@{css/style.css}" rel="stylesheet" />
20
-</head>
21
-
22
-<body class="gray-bg">
23
-
24
-<div class="middle-box text-center loginscreen animated fadeInDown">
25
-    <div>
26
-
27
-        <h4>New User Registration</h4>
28
-
29
-        <form autocomplete="off" action="#" th:action="@{/register}"
30
-              th:object="${user}" method="post" class="m-t" role="form"
31
-              data-toggle="validator">
32
-
33
-
34
-            <div th:if="${#fields.hasErrors('firstName')}"
35
-                 th:errors="*{firstName}"
36
-                 class="validation-message alert alert-danger" role="alert"></div>
37
-
38
-            <div th:if="${#fields.hasErrors('lastName')}"
39
-                 th:errors="*{lastName}"
40
-                 class="validation-message alert alert-danger" role="alert"></div>
41
-
42
-            <div th:if="${#fields.hasErrors('email')}" th:errors="*{email}"
43
-                 class="validation-message alert alert-danger" role="alert"></div>
44
-
45
-            <div class="form-group input-group has-feedback">
46
-                <label th:if="${#fields.hasErrors('firstName')}"
47
-                       th:errors="*{firstName}" class="validation-message"></label>
48
-                <span class="input-group-addon">
49
-            <span class="glyphicon glyphicon-user"></span>
50
-          </span>
51
-
52
-                <input type="text" th:field="*{firstName}"
53
-                       placeholder="First Name" class="form-control" required />
54
-                <span class="glyphicon form-control-feedback"
55
-                      aria-hidden="true"></span>
56
-            </div>
57
-
58
-            <div class="form-group input-group has-feedback">
59
-          <span class="input-group-addon">
60
-            <span class="glyphicon glyphicon-user"></span>
61
-          </span>
62
-
63
-
64
-                <input type="text" th:field="*{lastName}"
65
-                       placeholder="Last Name" class="form-control" required />
66
-                <span class="glyphicon form-control-feedback"
67
-                      aria-hidden="true"></span>
68
-            </div>
69
-
70
-            <div class="form-group input-group has-feedback">
71
-          <span class="input-group-addon">
72
-            <span class="glyphicon glyphicon-envelope"></span>
73
-          </span>
74
-                <input type="email" th:field="*{email}"
75
-                       placeholder="Email Address" class="form-control"
76
-                       data-error="This email address is invalid" required />
77
-                <span class="glyphicon form-control-feedback"
78
-                      aria-hidden="true"></span>
79
-
80
-            </div>
81
-
82
-            <div class="form-group input-group has-feedback">
83
-          <span class="input-group-addon">
84
-            <span class="glyphicon glyphicon-lock"></span>
85
-          </span>
86
-                <input name="password" type="password" id="password"
87
-                       placeholder="Password" class="form-control" required />
88
-                <span class="glyphicon form-control-feedback"
89
-                      aria-hidden="true"></span>
90
-            </div>
91
-            <div class="form-group input-group has-feedback">
92
-          <span class="input-group-addon">
93
-            <span class="glyphicon glyphicon-lock"></span>
94
-          </span>
95
-                <input type="password" class="form-control" id="signup-password-confirm" placeholder="Confirm Password" name="ConfirmPassword" data-fv-notempty="true"
96
-                       data-fv-notempty-message="Please confirm password"
97
-                       data-fv-identical="true"
98
-                       data-fv-identical-field="password"
99
-                       data-fv-identical-message="Both passwords must be identical" />
100
-
101
-                <div class="help-block with-errors"></div>
102
-            </div>
103
-
104
-
105
-
106
-
107
-            <button type="submit"
108
-                    class="btn btn-primary block full-width m-b">Register</button>
109
-
110
-        </form>
111
-
112
-    </div>
113
-</div>
114
-
115
-<!-- jQuery-->
116
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
117
-
118
-<!-- Bootstrap -->
119
-<script
120
-        src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
121
-        integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
122
-        crossorigin="anonymous"></script>
123
-
124
-<!-- Bootstrap Validator plugin -->
125
-<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.9/validator.min.js"></script>
126
-
127
-
128
-</body>
129
-
130
-</html>

+ 0
- 0
src/pages/loginRegister/register.ts View File


+ 0
- 18
src/pages/notes/notes.html View File

@@ -1,18 +0,0 @@
1
-<!--
2
-  Generated template for the NotesPage page.
3
-
4
-  See http://ionicframework.com/docs/components/#navigation for more info on
5
-  Ionic pages and navigation.
6
--->
7
-<ion-header>
8
-
9
-  <ion-navbar>
10
-    <ion-title>Notes</ion-title>
11
-  </ion-navbar>
12
-
13
-</ion-header>
14
-
15
-
16
-<ion-content padding>
17
-
18
-</ion-content>

+ 0
- 13
src/pages/notes/notes.module.ts View File

@@ -1,13 +0,0 @@
1
-import { NgModule } from '@angular/core';
2
-import { IonicPageModule } from 'ionic-angular';
3
-import { NotesPage } from './notes';
4
-
5
-@NgModule({
6
-  declarations: [
7
-    NotesPage,
8
-  ],
9
-  imports: [
10
-    IonicPageModule.forChild(NotesPage),
11
-  ],
12
-})
13
-export class NotesPageModule {}

+ 0
- 3
src/pages/notes/notes.scss View File

@@ -1,3 +0,0 @@
1
-page-notes {
2
-
3
-}

+ 0
- 25
src/pages/notes/notes.ts View File

@@ -1,25 +0,0 @@
1
-import { Component } from '@angular/core';
2
-import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
-
4
-/**
5
- * Generated class for the NotesPage page.
6
- *
7
- * See https://ionicframework.com/docs/components/#navigation for more info on
8
- * Ionic pages and navigation.
9
- */
10
-
11
-@IonicPage()
12
-@Component({
13
-  selector: 'page-notes',
14
-  templateUrl: 'notes.html',
15
-})
16
-export class Notes {
17
-
18
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
-  }
20
-
21
-  ionViewDidLoad() {
22
-    console.log('ionViewDidLoad NotesPage');
23
-  }
24
-
25
-}

+ 0
- 18
src/pages/settings/settings.html View File

@@ -1,18 +0,0 @@
1
-<!--
2
-  Generated template for the SettingsPage page.
3
-
4
-  See http://ionicframework.com/docs/components/#navigation for more info on
5
-  Ionic pages and navigation.
6
--->
7
-<ion-header>
8
-
9
-  <ion-navbar>
10
-    <ion-title>Settings</ion-title>
11
-  </ion-navbar>
12
-
13
-</ion-header>
14
-
15
-
16
-<ion-content padding>
17
-
18
-</ion-content>

+ 0
- 13
src/pages/settings/settings.module.ts View File

@@ -1,13 +0,0 @@
1
-import { NgModule } from '@angular/core';
2
-import { IonicPageModule } from 'ionic-angular';
3
-import { SettingsPage } from './settings';
4
-
5
-@NgModule({
6
-  declarations: [
7
-    SettingsPage,
8
-  ],
9
-  imports: [
10
-    IonicPageModule.forChild(SettingsPage),
11
-  ],
12
-})
13
-export class SettingsPageModule {}

+ 0
- 3
src/pages/settings/settings.scss View File

@@ -1,3 +0,0 @@
1
-page-settings {
2
-
3
-}

+ 0
- 25
src/pages/settings/settings.ts View File

@@ -1,25 +0,0 @@
1
-import { Component } from '@angular/core';
2
-import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
-
4
-/**
5
- * Generated class for the SettingsPage page.
6
- *
7
- * See https://ionicframework.com/docs/components/#navigation for more info on
8
- * Ionic pages and navigation.
9
- */
10
-
11
-@IonicPage()
12
-@Component({
13
-  selector: 'page-settings',
14
-  templateUrl: 'settings.html',
15
-})
16
-export class Settings {
17
-
18
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
-  }
20
-
21
-  ionViewDidLoad() {
22
-    console.log('ionViewDidLoad SettingsPage');
23
-  }
24
-
25
-}

+ 0
- 31
src/service-worker.js View File

@@ -1,31 +0,0 @@
1
-/**
2
- * Check out https://googlechromelabs.github.io/sw-toolbox/ for
3
- * more info on how to use sw-toolbox to custom configure your service worker.
4
- */
5
-
6
-
7
-'use strict';
8
-importScripts('./build/sw-toolbox.js');
9
-
10
-self.toolbox.options.cache = {
11
-  name: 'ionic-cache'
12
-};
13
-
14
-// pre-cache our key assets
15
-self.toolbox.precache(
16
-  [
17
-    './build/main.js',
18
-    './build/vendor.js',
19
-    './build/main.css',
20
-    './build/polyfills.js',
21
-    'index.html',
22
-    'manifest.json'
23
-  ]
24
-);
25
-
26
-// dynamically cache any other local assets
27
-self.toolbox.router.any('/*', self.toolbox.fastest);
28
-
29
-// for any other requests go to the network, cache,
30
-// and then only use that cached resource if your user goes offline
31
-self.toolbox.router.default = self.toolbox.networkFirst;

+ 0
- 88
src/theme/variables.scss View File

@@ -1,88 +0,0 @@
1
-// Ionic Variables and Theming. For more info, please see:
2
-// http://ionicframework.com/docs/theming/
3
-
4
-// Font path is used to include ionicons,
5
-// roboto, and noto sans fonts
6
-$font-path: "../assets/fonts";
7
-
8
-
9
-// The app direction is used to include
10
-// rtl styles in your app. For more info, please see:
11
-// http://ionicframework.com/docs/theming/rtl-support/
12
-$app-direction: ltr;
13
-
14
-
15
-@import "ionic.globals";
16
-
17
-
18
-// Shared Variables
19
-// --------------------------------------------------
20
-// To customize the look and feel of this app, you can override
21
-// the Sass variables found in Ionic's source scss files.
22
-// To view all the possible Ionic variables, see:
23
-// http://ionicframework.com/docs/theming/overriding-ionic-variables/
24
-
25
-
26
-
27
-
28
-// Named Color Variables
29
-// --------------------------------------------------
30
-// Named colors makes it easy to reuse colors on various components.
31
-// It's highly recommended to change the default colors
32
-// to match your app's branding. Ionic uses a Sass map of
33
-// colors so you can add, rename and remove colors as needed.
34
-// The "primary" color is the only required color in the map.
35
-
36
-$colors: (
37
-  primary:    #488aff,
38
-  secondary:  #32db64,
39
-  danger:     #f53d3d,
40
-  light:      #f4f4f4,
41
-  dark:       rgb(145, 145, 145)
42
-);
43
-
44
-
45
-// App iOS Variables
46
-// --------------------------------------------------
47
-// iOS only Sass variables can go here
48
-
49
-
50
-
51
-
52
-// App Material Design Variables
53
-// --------------------------------------------------
54
-// Material Design only Sass variables can go here
55
-
56
-
57
-
58
-
59
-// App Windows Variables
60
-// --------------------------------------------------
61
-// Windows only Sass variables can go here
62
-
63
-
64
-
65
-
66
-// App Theme
67
-// --------------------------------------------------
68
-// Ionic apps can have different themes applied, which can
69
-// then be future customized. This import comes last
70
-// so that the above variables are used and Ionic's
71
-// default are overridden.
72
-
73
-@import "ionic.theme.dark";
74
-
75
-
76
-// Ionicons
77
-// --------------------------------------------------
78
-// The premium icon font for Ionic. For more info, please see:
79
-// http://ionicframework.com/docs/ionicons/
80
-
81
-@import "ionic.ionicons";
82
-
83
-
84
-// Fonts
85
-// --------------------------------------------------
86
-
87
-@import "roboto";
88
-@import "noto-sans";

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

@@ -0,0 +1,38 @@
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-drop
28
+##change to update once functional
29
+
30
+#app.config.redis.host=localhost
31
+#app.config.redis.port=6379
32
+#app.config.redis.user=
33
+#app.config.redis.password=
34
+
35
+
36
+spring.redis.host= localhost
37
+
38
+spring.redis.port= 6379

BIN
target/classes/com/wyds/Loader/PacketLoader.class View File


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


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


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


BIN
target/classes/com/wyds/config/SpringSessionRedisConfiguration.class View File


BIN
target/classes/com/wyds/packets/Capture.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/PacketParser.class View File


+ 4
- 0
target/maven-archiver/pom.properties View File

@@ -0,0 +1,4 @@
1
+#Created by Apache Maven 3.5.4
2
+groupId=com.wyds.packets
3
+artifactId=pcap
4
+version=1.0.0

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

@@ -0,0 +1,3 @@
1
+com/wyds/Loader/PacketLoader.class
2
+com/wyds/PacketTracker.class
3
+com/wyds/config/SpringSessionRedisConfiguration.class

+ 9
- 0
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst View File

@@ -0,0 +1,9 @@
1
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/packets/Capture.java
2
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/Loader/PacketLoader.java
3
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/PacketRepo/PacketRepository.java
4
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/PacketController/PacketController.java
5
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/packets/PacketEntity.java
6
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/packets/PacketMapper.java
7
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/packets/PacketParser.java
8
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/config/SpringSessionRedisConfiguration.java
9
+/Users/shivamp/Desktop/wydsProject/pcap/src/main/java/com/wyds/PacketTracker.java

+ 1
- 0
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst View File

@@ -0,0 +1 @@
1
+com/wyds/packets/AppTest.class

+ 1
- 0
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst View File

@@ -0,0 +1 @@
1
+/Users/shivamp/Desktop/wydsProject/pcap/src/test/java/com/wyds/packets/AppTest.java

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


BIN
target/pcap-1.0.0.jar View File


+ 66
- 0
target/surefire-reports/TEST-com.wyds.packets.AppTest.xml View File

@@ -0,0 +1,66 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd" name="com.wyds.packets.AppTest" time="0.005" tests="1" errors="0" skipped="0" failures="0">
3
+  <properties>
4
+    <property name="gopherProxySet" value="false"/>
5
+    <property name="awt.toolkit" value="sun.lwawt.macosx.LWCToolkit"/>
6
+    <property name="java.specification.version" value="10"/>
7
+    <property name="file.encoding.pkg" value="sun.io"/>
8
+    <property name="sun.cpu.isalist" value=""/>
9
+    <property name="sun.jnu.encoding" value="UTF-8"/>
10
+    <property name="java.class.path" value="/Users/shivamp/Desktop/wydsProject/pcap/target/test-classes:/Users/shivamp/Desktop/wydsProject/pcap/target/classes:/var/root/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/var/root/.m2/repository/org/pcap4j/pcap4j-core/1.7.3/pcap4j-core-1.7.3.jar:/var/root/.m2/repository/net/java/dev/jna/jna/4.5.1/jna-4.5.1.jar:/var/root/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/2.0.3.RELEASE/spring-boot-starter-data-jpa-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.3.RELEASE/spring-boot-starter-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot/2.0.3.RELEASE/spring-boot-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.3.RELEASE/spring-boot-autoconfigure-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.3.RELEASE/spring-boot-starter-logging-2.0.3.RELEASE.jar:/var/root/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/var/root/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/var/root/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar:/var/root/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar:/var/root/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar:/var/root/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/var/root/.m2/repository/org/springframework/spring-core/5.0.7.RELEASE/spring-core-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-jcl/5.0.7.RELEASE/spring-jcl-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.0.3.RELEASE/spring-boot-starter-aop-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-aop/5.0.7.RELEASE/spring-aop-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/aspectj/aspectjweaver/1.8.13/aspectjweaver-1.8.13.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.0.3.RELEASE/spring-boot-starter-jdbc-2.0.3.RELEASE.jar:/var/root/.m2/repository/com/zaxxer/HikariCP/2.7.9/HikariCP-2.7.9.jar:/var/root/.m2/repository/org/springframework/spring-jdbc/5.0.7.RELEASE/spring-jdbc-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/hibernate/hibernate-core/5.2.17.Final/hibernate-core-5.2.17.Final.jar:/var/root/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar:/var/root/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.2.Final/hibernate-jpa-2.1-api-1.0.2.Final.jar:/var/root/.m2/repository/org/javassist/javassist/3.22.0-GA/javassist-3.22.0-GA.jar:/var/root/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/var/root/.m2/repository/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar:/var/root/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar:/var/root/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/var/root/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar:/var/root/.m2/repository/javax/transaction/javax.transaction-api/1.2/javax.transaction-api-1.2.jar:/var/root/.m2/repository/org/springframework/data/spring-data-jpa/2.0.8.RELEASE/spring-data-jpa-2.0.8.RELEASE.jar:/var/root/.m2/repository/org/springframework/data/spring-data-commons/2.0.8.RELEASE/spring-data-commons-2.0.8.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-orm/5.0.7.RELEASE/spring-orm-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-context/5.0.7.RELEASE/spring-context-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-expression/5.0.7.RELEASE/spring-expression-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-tx/5.0.7.RELEASE/spring-tx-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-beans/5.0.7.RELEASE/spring-beans-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-aspects/5.0.7.RELEASE/spring-aspects-5.0.7.RELEASE.jar:/var/root/.m2/repository/mysql/mysql-connector-java/5.1.46/mysql-connector-java-5.1.46.jar:"/>
11
+    <property name="java.vm.vendor" value="&quot;Oracle Corporation&quot;"/>
12
+    <property name="sun.arch.data.model" value="64"/>
13
+    <property name="java.vendor.url" value="http://java.oracle.com/"/>
14
+    <property name="user.timezone" value=""/>
15
+    <property name="java.vm.specification.version" value="10"/>
16
+    <property name="os.name" value="Mac OS X"/>
17
+    <property name="sun.java.launcher" value="SUN_STANDARD"/>
18
+    <property name="user.country" value="US"/>
19
+    <property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib"/>
20
+    <property name="sun.java.command" value="/Users/shivamp/Desktop/wydsProject/pcap/target/surefire/surefirebooter13392530424885608253.jar /Users/shivamp/Desktop/wydsProject/pcap/target/surefire 2018-07-20T11-44-46_170-jvmRun1 surefire17470857409779618686tmp surefire_015169429099557783493tmp"/>
21
+    <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
22
+    <property name="jdk.debug" value="release"/>
23
+    <property name="surefire.test.class.path" value="/Users/shivamp/Desktop/wydsProject/pcap/target/test-classes:/Users/shivamp/Desktop/wydsProject/pcap/target/classes:/var/root/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/var/root/.m2/repository/org/pcap4j/pcap4j-core/1.7.3/pcap4j-core-1.7.3.jar:/var/root/.m2/repository/net/java/dev/jna/jna/4.5.1/jna-4.5.1.jar:/var/root/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/2.0.3.RELEASE/spring-boot-starter-data-jpa-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.3.RELEASE/spring-boot-starter-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot/2.0.3.RELEASE/spring-boot-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.3.RELEASE/spring-boot-autoconfigure-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.3.RELEASE/spring-boot-starter-logging-2.0.3.RELEASE.jar:/var/root/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/var/root/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/var/root/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar:/var/root/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar:/var/root/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar:/var/root/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/var/root/.m2/repository/org/springframework/spring-core/5.0.7.RELEASE/spring-core-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-jcl/5.0.7.RELEASE/spring-jcl-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.0.3.RELEASE/spring-boot-starter-aop-2.0.3.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-aop/5.0.7.RELEASE/spring-aop-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/aspectj/aspectjweaver/1.8.13/aspectjweaver-1.8.13.jar:/var/root/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.0.3.RELEASE/spring-boot-starter-jdbc-2.0.3.RELEASE.jar:/var/root/.m2/repository/com/zaxxer/HikariCP/2.7.9/HikariCP-2.7.9.jar:/var/root/.m2/repository/org/springframework/spring-jdbc/5.0.7.RELEASE/spring-jdbc-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/hibernate/hibernate-core/5.2.17.Final/hibernate-core-5.2.17.Final.jar:/var/root/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar:/var/root/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.2.Final/hibernate-jpa-2.1-api-1.0.2.Final.jar:/var/root/.m2/repository/org/javassist/javassist/3.22.0-GA/javassist-3.22.0-GA.jar:/var/root/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/var/root/.m2/repository/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar:/var/root/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar:/var/root/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/var/root/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar:/var/root/.m2/repository/javax/transaction/javax.transaction-api/1.2/javax.transaction-api-1.2.jar:/var/root/.m2/repository/org/springframework/data/spring-data-jpa/2.0.8.RELEASE/spring-data-jpa-2.0.8.RELEASE.jar:/var/root/.m2/repository/org/springframework/data/spring-data-commons/2.0.8.RELEASE/spring-data-commons-2.0.8.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-orm/5.0.7.RELEASE/spring-orm-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-context/5.0.7.RELEASE/spring-context-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-expression/5.0.7.RELEASE/spring-expression-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-tx/5.0.7.RELEASE/spring-tx-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-beans/5.0.7.RELEASE/spring-beans-5.0.7.RELEASE.jar:/var/root/.m2/repository/org/springframework/spring-aspects/5.0.7.RELEASE/spring-aspects-5.0.7.RELEASE.jar:/var/root/.m2/repository/mysql/mysql-connector-java/5.1.46/mysql-connector-java-5.1.46.jar:"/>
24
+    <property name="sun.cpu.endian" value="little"/>
25
+    <property name="user.home" value="/var/root"/>
26
+    <property name="user.language" value="en"/>
27
+    <property name="java.specification.vendor" value="Oracle Corporation"/>
28
+    <property name="java.version.date" value="2018-04-17"/>
29
+    <property name="java.home" value="/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home"/>
30
+    <property name="file.separator" value="/"/>
31
+    <property name="basedir" value="/Users/shivamp/Desktop/wydsProject/pcap"/>
32
+    <property name="java.vm.compressedOopsMode" value="Zero based"/>
33
+    <property name="line.separator" value="&#10;"/>
34
+    <property name="java.specification.name" value="Java Platform API Specification"/>
35
+    <property name="java.vm.specification.vendor" value="Oracle Corporation"/>
36
+    <property name="java.awt.graphicsenv" value="sun.awt.CGraphicsEnvironment"/>
37
+    <property name="surefire.real.class.path" value="/Users/shivamp/Desktop/wydsProject/pcap/target/surefire/surefirebooter13392530424885608253.jar"/>
38
+    <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
39
+    <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
40
+    <property name="java.runtime.version" value="10.0.1+10"/>
41
+    <property name="user.name" value="root"/>
42
+    <property name="path.separator" value=":"/>
43
+    <property name="os.version" value="10.13.3"/>
44
+    <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
45
+    <property name="file.encoding" value="UTF-8"/>
46
+    <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
47
+    <property name="java.vendor.version" value="18.3"/>
48
+    <property name="localRepository" value="/var/root/.m2/repository"/>
49
+    <property name="java.vendor.url.bug" value="http://bugreport.java.com/bugreport/"/>
50
+    <property name="java.io.tmpdir" value="/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/"/>
51
+    <property name="java.version" value="10.0.1"/>
52
+    <property name="user.dir" value="/Users/shivamp/Desktop/wydsProject/pcap"/>
53
+    <property name="os.arch" value="x86_64"/>
54
+    <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
55
+    <property name="java.awt.printerjob" value="sun.lwawt.macosx.CPrinterJob"/>
56
+    <property name="sun.os.patch.level" value="unknown"/>
57
+    <property name="java.library.path" value="/Users/shivamp/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."/>
58
+    <property name="java.vendor" value="Oracle Corporation"/>
59
+    <property name="java.vm.info" value="mixed mode"/>
60
+    <property name="java.vm.version" value="10.0.1+10"/>
61
+    <property name="sun.io.unicode.encoding" value="UnicodeBig"/>
62
+    <property name="java.class.version" value="54.0"/>
63
+    <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
64
+  </properties>
65
+  <testcase name="testApp" classname="com.wyds.packets.AppTest" time="0"/>
66
+</testsuite>

+ 4
- 0
target/surefire-reports/com.wyds.packets.AppTest.txt View File

@@ -0,0 +1,4 @@
1
+-------------------------------------------------------------------------------
2
+Test set: com.wyds.packets.AppTest
3
+-------------------------------------------------------------------------------
4
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s - in com.wyds.packets.AppTest

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


BIN
test1.pcap View File


+ 0
- 28
tsconfig.json View File

@@ -1,28 +0,0 @@
1
-{
2
-  "compilerOptions": {
3
-    "allowSyntheticDefaultImports": true,
4
-    "declaration": false,
5
-    "emitDecoratorMetadata": true,
6
-    "experimentalDecorators": true,
7
-    "lib": [
8
-      "dom",
9
-      "es2015"
10
-    ],
11
-    "module": "es2015",
12
-    "moduleResolution": "node",
13
-    "sourceMap": true,
14
-    "target": "es5"
15
-  },
16
-  "include": [
17
-    "src/**/*.ts"
18
-  ],
19
-  "exclude": [
20
-    "node_modules",
21
-    "src/**/*.spec.ts",
22
-    "src/**/__tests__/*.ts"
23
-  ],
24
-  "compileOnSave": false,
25
-  "atom": {
26
-    "rewriteTsconfig": false
27
-  }
28
-}

+ 0
- 11
tslint.json View File

@@ -1,11 +0,0 @@
1
-{
2
-  "rules": {
3
-    "no-duplicate-variable": true,
4
-    "no-unused-variable": [
5
-      true
6
-    ]
7
-  },
8
-  "rulesDirectory": [
9
-    "node_modules/tslint-eslint-rules/dist/rules"
10
-  ]
11
-}

+ 0
- 25
wyds2/.gitignore View File

@@ -1,25 +0,0 @@
1
-/target/
2
-!.mvn/wrapper/maven-wrapper.jar
3
-
4
-### STS ###
5
-.apt_generated
6
-.classpath
7
-.factorypath
8
-.project
9
-.settings
10
-.springBeans
11
-.sts4-cache
12
-
13
-### IntelliJ IDEA ###
14
-.idea
15
-*.iws
16
-*.iml
17
-*.ipr
18
-
19
-### NetBeans ###
20
-/nbproject/private/
21
-/build/
22
-/nbbuild/
23
-/dist/
24
-/nbdist/
25
-/.nb-gradle/

BIN
wyds2/.mvn/wrapper/maven-wrapper.jar View File


+ 0
- 1
wyds2/.mvn/wrapper/maven-wrapper.properties View File

@@ -1 +0,0 @@
1
-distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip

+ 0
- 225
wyds2/mvnw View File

@@ -1,225 +0,0 @@
1
-#!/bin/sh
2
-# ----------------------------------------------------------------------------
3
-# Licensed to the Apache Software Foundation (ASF) under one
4
-# or more contributor license agreements.  See the NOTICE file
5
-# distributed with this work for additional information
6
-# regarding copyright ownership.  The ASF licenses this file
7
-# to you under the Apache License, Version 2.0 (the
8
-# "License"); you may not use this file except in compliance
9
-# with the License.  You may obtain a copy of the License at
10
-#
11
-#    http://www.apache.org/licenses/LICENSE-2.0
12
-#
13
-# Unless required by applicable law or agreed to in writing,
14
-# software distributed under the License is distributed on an
15
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
-# KIND, either express or implied.  See the License for the
17
-# specific language governing permissions and limitations
18
-# under the License.
19
-# ----------------------------------------------------------------------------
20
-
21
-# ----------------------------------------------------------------------------
22
-# Maven2 Start Up Batch script
23
-#
24
-# Required ENV vars:
25
-# ------------------
26
-#   JAVA_HOME - location of a JDK home dir
27
-#
28
-# Optional ENV vars
29
-# -----------------
30
-#   M2_HOME - location of maven2's installed home dir
31
-#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
-#     e.g. to debug Maven itself, use
33
-#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
-#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
-# ----------------------------------------------------------------------------
36
-
37
-if [ -z "$MAVEN_SKIP_RC" ] ; then
38
-
39
-  if [ -f /etc/mavenrc ] ; then
40
-    . /etc/mavenrc
41
-  fi
42
-
43
-  if [ -f "$HOME/.mavenrc" ] ; then
44
-    . "$HOME/.mavenrc"
45
-  fi
46
-
47
-fi
48
-
49
-# OS specific support.  $var _must_ be set to either true or false.
50
-cygwin=false;
51
-darwin=false;
52
-mingw=false
53
-case "`uname`" in
54
-  CYGWIN*) cygwin=true ;;
55
-  MINGW*) mingw=true;;
56
-  Darwin*) darwin=true
57
-    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58
-    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59
-    if [ -z "$JAVA_HOME" ]; then
60
-      if [ -x "/usr/libexec/java_home" ]; then
61
-        export JAVA_HOME="`/usr/libexec/java_home`"
62
-      else
63
-        export JAVA_HOME="/Library/Java/Home"
64
-      fi
65
-    fi
66
-    ;;
67
-esac
68
-
69
-if [ -z "$JAVA_HOME" ] ; then
70
-  if [ -r /etc/gentoo-release ] ; then
71
-    JAVA_HOME=`java-config --jre-home`
72
-  fi
73
-fi
74
-
75
-if [ -z "$M2_HOME" ] ; then
76
-  ## resolve links - $0 may be a link to maven's home
77
-  PRG="$0"
78
-
79
-  # need this for relative symlinks
80
-  while [ -h "$PRG" ] ; do
81
-    ls=`ls -ld "$PRG"`
82
-    link=`expr "$ls" : '.*-> \(.*\)$'`
83
-    if expr "$link" : '/.*' > /dev/null; then
84
-      PRG="$link"
85
-    else
86
-      PRG="`dirname "$PRG"`/$link"
87
-    fi
88
-  done
89
-
90
-  saveddir=`pwd`
91
-
92
-  M2_HOME=`dirname "$PRG"`/..
93
-
94
-  # make it fully qualified
95
-  M2_HOME=`cd "$M2_HOME" && pwd`
96
-
97
-  cd "$saveddir"
98
-  # echo Using m2 at $M2_HOME
99
-fi
100
-
101
-# For Cygwin, ensure paths are in UNIX format before anything is touched
102
-if $cygwin ; then
103
-  [ -n "$M2_HOME" ] &&
104
-    M2_HOME=`cygpath --unix "$M2_HOME"`
105
-  [ -n "$JAVA_HOME" ] &&
106
-    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107
-  [ -n "$CLASSPATH" ] &&
108
-    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109
-fi
110
-
111
-# For Migwn, ensure paths are in UNIX format before anything is touched
112
-if $mingw ; then
113
-  [ -n "$M2_HOME" ] &&
114
-    M2_HOME="`(cd "$M2_HOME"; pwd)`"
115
-  [ -n "$JAVA_HOME" ] &&
116
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117
-  # TODO classpath?
118
-fi
119
-
120
-if [ -z "$JAVA_HOME" ]; then
121
-  javaExecutable="`which javac`"
122
-  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
123
-    # readlink(1) is not available as standard on Solaris 10.
124
-    readLink=`which readlink`
125
-    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
126
-      if $darwin ; then
127
-        javaHome="`dirname \"$javaExecutable\"`"
128
-        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
129
-      else
130
-        javaExecutable="`readlink -f \"$javaExecutable\"`"
131
-      fi
132
-      javaHome="`dirname \"$javaExecutable\"`"
133
-      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
134
-      JAVA_HOME="$javaHome"
135
-      export JAVA_HOME
136
-    fi
137
-  fi
138
-fi
139
-
140
-if [ -z "$JAVACMD" ] ; then
141
-  if [ -n "$JAVA_HOME"  ] ; then
142
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
143
-      # IBM's JDK on AIX uses strange locations for the executables
144
-      JAVACMD="$JAVA_HOME/jre/sh/java"
145
-    else
146
-      JAVACMD="$JAVA_HOME/bin/java"
147
-    fi
148
-  else
149
-    JAVACMD="`which java`"
150
-  fi
151
-fi
152
-
153
-if [ ! -x "$JAVACMD" ] ; then
154
-  echo "Error: JAVA_HOME is not defined correctly." >&2
155
-  echo "  We cannot execute $JAVACMD" >&2
156
-  exit 1
157
-fi
158
-
159
-if [ -z "$JAVA_HOME" ] ; then
160
-  echo "Warning: JAVA_HOME environment variable is not set."
161
-fi
162
-
163
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
164
-
165
-# traverses directory structure from process work directory to filesystem root
166
-# first directory with .mvn subdirectory is considered project base directory
167
-find_maven_basedir() {
168
-
169
-  if [ -z "$1" ]
170
-  then
171
-    echo "Path not specified to find_maven_basedir"
172
-    return 1
173
-  fi
174
-
175
-  basedir="$1"
176
-  wdir="$1"
177
-  while [ "$wdir" != '/' ] ; do
178
-    if [ -d "$wdir"/.mvn ] ; then
179
-      basedir=$wdir
180
-      break
181
-    fi
182
-    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
183
-    if [ -d "${wdir}" ]; then
184
-      wdir=`cd "$wdir/.."; pwd`
185
-    fi
186
-    # end of workaround
187
-  done
188
-  echo "${basedir}"
189
-}
190
-
191
-# concatenates all lines of a file
192
-concat_lines() {
193
-  if [ -f "$1" ]; then
194
-    echo "$(tr -s '\n' ' ' < "$1")"
195
-  fi
196
-}
197
-
198
-BASE_DIR=`find_maven_basedir "$(pwd)"`
199
-if [ -z "$BASE_DIR" ]; then
200
-  exit 1;
201
-fi
202
-
203
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
204
-echo $MAVEN_PROJECTBASEDIR
205
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
206
-
207
-# For Cygwin, switch paths to Windows format before running java
208
-if $cygwin; then
209
-  [ -n "$M2_HOME" ] &&
210
-    M2_HOME=`cygpath --path --windows "$M2_HOME"`
211
-  [ -n "$JAVA_HOME" ] &&
212
-    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
213
-  [ -n "$CLASSPATH" ] &&
214
-    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
215
-  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
216
-    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
217
-fi
218
-
219
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
220
-
221
-exec "$JAVACMD" \
222
-  $MAVEN_OPTS \
223
-  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
224
-  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
225
-  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 0
- 143
wyds2/mvnw.cmd View File

@@ -1,143 +0,0 @@
1
-@REM ----------------------------------------------------------------------------
2
-@REM Licensed to the Apache Software Foundation (ASF) under one
3
-@REM or more contributor license agreements.  See the NOTICE file
4
-@REM distributed with this work for additional information
5
-@REM regarding copyright ownership.  The ASF licenses this file
6
-@REM to you under the Apache License, Version 2.0 (the
7
-@REM "License"); you may not use this file except in compliance
8
-@REM with the License.  You may obtain a copy of the License at
9
-@REM
10
-@REM    http://www.apache.org/licenses/LICENSE-2.0
11
-@REM
12
-@REM Unless required by applicable law or agreed to in writing,
13
-@REM software distributed under the License is distributed on an
14
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
-@REM KIND, either express or implied.  See the License for the
16
-@REM specific language governing permissions and limitations
17
-@REM under the License.
18
-@REM ----------------------------------------------------------------------------
19
-
20
-@REM ----------------------------------------------------------------------------
21
-@REM Maven2 Start Up Batch script
22
-@REM
23
-@REM Required ENV vars:
24
-@REM JAVA_HOME - location of a JDK home dir
25
-@REM
26
-@REM Optional ENV vars
27
-@REM M2_HOME - location of maven2's installed home dir
28
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
-@REM     e.g. to debug Maven itself, use
32
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
-@REM ----------------------------------------------------------------------------
35
-
36
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
-@echo off
38
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
39
-@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
40
-
41
-@REM set %HOME% to equivalent of $HOME
42
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
43
-
44
-@REM Execute a user defined script before this one
45
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
46
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
47
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
48
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
49
-:skipRcPre
50
-
51
-@setlocal
52
-
53
-set ERROR_CODE=0
54
-
55
-@REM To isolate internal variables from possible post scripts, we use another setlocal
56
-@setlocal
57
-
58
-@REM ==== START VALIDATION ====
59
-if not "%JAVA_HOME%" == "" goto OkJHome
60
-
61
-echo.
62
-echo Error: JAVA_HOME not found in your environment. >&2
63
-echo Please set the JAVA_HOME variable in your environment to match the >&2
64
-echo location of your Java installation. >&2
65
-echo.
66
-goto error
67
-
68
-:OkJHome
69
-if exist "%JAVA_HOME%\bin\java.exe" goto init
70
-
71
-echo.
72
-echo Error: JAVA_HOME is set to an invalid directory. >&2
73
-echo JAVA_HOME = "%JAVA_HOME%" >&2
74
-echo Please set the JAVA_HOME variable in your environment to match the >&2
75
-echo location of your Java installation. >&2
76
-echo.
77
-goto error
78
-
79
-@REM ==== END VALIDATION ====
80
-
81
-:init
82
-
83
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
84
-@REM Fallback to current working directory if not found.
85
-
86
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
87
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
88
-
89
-set EXEC_DIR=%CD%
90
-set WDIR=%EXEC_DIR%
91
-:findBaseDir
92
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
93
-cd ..
94
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
95
-set WDIR=%CD%
96
-goto findBaseDir
97
-
98
-:baseDirFound
99
-set MAVEN_PROJECTBASEDIR=%WDIR%
100
-cd "%EXEC_DIR%"
101
-goto endDetectBaseDir
102
-
103
-:baseDirNotFound
104
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
105
-cd "%EXEC_DIR%"
106
-
107
-:endDetectBaseDir
108
-
109
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
110
-
111
-@setlocal EnableExtensions EnableDelayedExpansion
112
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
113
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
114
-
115
-:endReadAdditionalConfig
116
-
117
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
118
-
119
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
120
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
121
-
122
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
123
-if ERRORLEVEL 1 goto error
124
-goto end
125
-
126
-:error
127
-set ERROR_CODE=1
128
-
129
-:end
130
-@endlocal & set ERROR_CODE=%ERROR_CODE%
131
-
132
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
133
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
134
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
135
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
136
-:skipRcPost
137
-
138
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
139
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
140
-
141
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
142
-
143
-exit /B %ERROR_CODE%

+ 0
- 0
wyds2/pom.xml View File


Some files were not shown because too many files changed in this diff