mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
feat: support webflux netty shell (#8)
This commit is contained in:
-5
@@ -2,11 +2,6 @@ package com.reajason.javaweb.vul.springboot2;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.web.reactive.function.server.RequestPredicates;
|
||||
import org.springframework.web.reactive.function.server.RouterFunction;
|
||||
import org.springframework.web.reactive.function.server.RouterFunctions;
|
||||
import org.springframework.web.reactive.function.server.ServerResponse;
|
||||
|
||||
@SpringBootApplication
|
||||
public class VulSpringboot2Application {
|
||||
|
||||
-2
@@ -18,11 +18,9 @@ import java.util.Base64;
|
||||
public class Base64ClassLoaderController {
|
||||
@PostMapping
|
||||
public Mono<String> handleFormSubmission(ServerWebExchange exchange) {
|
||||
System.out.println("hello i'm coming");
|
||||
return exchange.getFormData()
|
||||
.flatMap(formData -> {
|
||||
String data = formData.getFirst("data");
|
||||
System.out.println("b64: " + data);
|
||||
byte[] bytes = Base64.getDecoder().decode(data);
|
||||
Object o = null;
|
||||
try {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping
|
||||
@RestController
|
||||
public class IndexController {
|
||||
@GetMapping("/test")
|
||||
@RequestMapping("/test")
|
||||
public String test() {
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user