mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
feat: support probe get payload from header by default
This commit is contained in:
@@ -57,7 +57,6 @@ const PROBE_METHOD_OPTIONS = [
|
||||
|
||||
const DEFAULT_FORM_VALUES = {
|
||||
reqParamName: "payload",
|
||||
reqHeaderName: "X-PAYLOAD",
|
||||
sleepServer: "Tomcat",
|
||||
seconds: 5,
|
||||
} as const;
|
||||
|
||||
@@ -53,7 +53,6 @@ export default function ProbeShellGenerator() {
|
||||
host: "",
|
||||
server: "Tomcat",
|
||||
reqParamName: "payload",
|
||||
reqHeaderName: "X-PAYLOAD",
|
||||
seconds: 5,
|
||||
sleepServer: "Tomcat",
|
||||
shrink: true,
|
||||
|
||||
@@ -25,7 +25,6 @@ export interface ProbeContentConfig {
|
||||
sleepServer?: string;
|
||||
server?: string;
|
||||
reqParamName?: string;
|
||||
reqHeaderName?: string;
|
||||
}
|
||||
|
||||
export interface DNSLogConfig {
|
||||
@@ -40,7 +39,6 @@ export interface SleepConfig {
|
||||
export interface ResponseBodyConfig {
|
||||
server: string;
|
||||
reqParamName: string;
|
||||
reqHeaderName: string;
|
||||
}
|
||||
|
||||
export interface PayloadFormValues {
|
||||
@@ -52,7 +50,6 @@ export interface PayloadFormValues {
|
||||
host?: string;
|
||||
server?: string;
|
||||
reqParamName?: string;
|
||||
reqHeaderName?: string;
|
||||
sleepServer?: string;
|
||||
seconds?: number;
|
||||
packingMethod: string;
|
||||
|
||||
@@ -145,7 +145,6 @@ export const probeShellFormSchema = yup.object().shape({
|
||||
host: yup.string().optional(),
|
||||
server: yup.string().optional(),
|
||||
reqParamName: yup.string().optional(),
|
||||
reqHeaderName: yup.string().optional(),
|
||||
seconds: yup.number().optional(),
|
||||
sleepServer: yup.string().optional(),
|
||||
packingMethod: yup.string().required(),
|
||||
|
||||
@@ -63,7 +63,6 @@ export function transformToProbePostData(formValue: ProbeShellFormSchema) {
|
||||
sleepServer: formValue.sleepServer,
|
||||
server: formValue.server,
|
||||
reqParamName: formValue.reqParamName,
|
||||
reqHeaderName: formValue.reqHeaderName,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user