Skip to content

Commit

Permalink
Song/feat/web fuzzer table20000 data (yaklang#1600)
Browse files Browse the repository at this point in the history
* feat: 限制20000条&不展示payloads字段相关

* pref: 优化

* 注释还原
  • Loading branch information
song-xiao-lin authored Apr 23, 2024
1 parent 2e7d592 commit 6306aba
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,9 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
Tags: []
}),
SourceType: props.params?.SourceType || "mitm",
WithPayload: toWebFuzzer,
RuntimeIDs: toWebFuzzer && runTimeId ? runTimeId.split(",") : undefined,
RuntimeId: !toWebFuzzer ? runTimeId || undefined : undefined
WithPayload: false,
RuntimeIDs: runTimeId && runTimeId.indexOf(",") !== -1 ? runTimeId.split(",") : undefined,
RuntimeId: runTimeId && runTimeId.indexOf(",") === -1 ? runTimeId : undefined
})
const [tagsFilter, setTagsFilter] = useState<string[]>([])
const [pagination, setPagination] = useState<PaginationSchema>({
Expand Down Expand Up @@ -1842,24 +1842,24 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
}

// toWebFuzzer
if (toWebFuzzer) {
return [
ID,
Method,
StatusCode,
Url,
HtmlTitle,
WebPayloads,
Tags,
IPAddress,
BodyLength,
GetParamsTotal,
ContentType,
UpdatedAt,
RequestSizeVerbose,
action
]
}
// if (toWebFuzzer) {
// return [
// ID,
// Method,
// StatusCode,
// Url,
// HtmlTitle,
// WebPayloads,
// Tags,
// IPAddress,
// BodyLength,
// GetParamsTotal,
// ContentType,
// UpdatedAt,
// RequestSizeVerbose,
// action
// ]
// }

return [
ID,
Expand Down Expand Up @@ -2048,9 +2048,9 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
SourceType: props.params?.SourceType || "mitm",
ExcludeId: params.ExcludeId,
ExcludeInUrl: params.ExcludeInUrl,
WithPayload: toWebFuzzer,
RuntimeIDs: toWebFuzzer && runTimeId ? runTimeId.split(",") : undefined,
RuntimeId: !toWebFuzzer ? runTimeId || undefined : undefined
WithPayload: false,
RuntimeIDs: runTimeId && runTimeId.indexOf(",") !== -1 ? runTimeId.split(",") : undefined,
RuntimeId: runTimeId && runTimeId.indexOf(",") === -1 ? runTimeId : undefined
}
setParams({...newParams})
updateData()
Expand Down Expand Up @@ -2182,10 +2182,6 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
title: "Title",
key: "response"
},
{
title: "Payloads",
key: "payloads"
},
{
title: "Tags",
key: "tags"
Expand Down Expand Up @@ -2566,7 +2562,7 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
number: 30,
default: true,
webSocket: false,
toWebFuzzer: false,
toWebFuzzer: true,
onClickSingle: (v) => onShareData([v.Id], 50),
onClickBatch: (list, n) => {
const ids: string[] = list.map((ele) => ele.Id)
Expand Down Expand Up @@ -2774,9 +2770,9 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
SourceType: props.params?.SourceType || "mitm",
ExcludeId: params.ExcludeId,
ExcludeInUrl: params.ExcludeInUrl,
WithPayload: toWebFuzzer,
RuntimeIDs: toWebFuzzer && runTimeId ? runTimeId.split(",") : undefined,
RuntimeId: !toWebFuzzer ? runTimeId || undefined : undefined
WithPayload: false,
RuntimeIDs: runTimeId && runTimeId.indexOf(',') !== -1 ? runTimeId.split(",") : undefined,
RuntimeId: runTimeId && runTimeId.indexOf(',') === -1 ? runTimeId : undefined
}
setParams(newParams)
setIsReset(!isReset)
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/src/main/src/pages/fuzzer/HTTPFuzzerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ export const defaultAdvancedConfigValue: AdvancedConfigValueProps = {
}

// WebFuzzer表格最多显示多少数据
export const FuzzerTableMaxData = 1000000
export const FuzzerTableMaxData = 20000
export const defaultAdvancedConfigShow: AdvancedConfigShowProps = {
config: true,
rule: true
Expand Down

0 comments on commit 6306aba

Please sign in to comment.