Skip to content

Commit

Permalink
Fix folder vars
Browse files Browse the repository at this point in the history
  • Loading branch information
devploit committed May 20, 2024
1 parent 5a41d80 commit 417fbb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func showInfo(options RequestOptions) {
╲__╱_____╱╲________╱╲__╱__╱__╱╲________╱╲____╱___╱╲________╱ ╱____╱╲________╱╲________╱
`)
}
fmt.Printf("%s \t\t%s\n", "Target:", uri)
fmt.Printf("%s \t\t%s\n", "Target:", options.uri)
if len(options.reqHeaders[0]) != 0 {
for _, header := range options.headers {
fmt.Printf("%s \t\t%s\n", "Headers:", header)
Expand Down Expand Up @@ -181,7 +181,7 @@ func requestMethods(options RequestOptions) {
color.Cyan("\n━━━━━━━━━━━━━━━ VERB TAMPERING ━━━━━━━━━━━━━━━")

var lines []string
lines, err := parseFile(folder + "/httpmethods")
lines, err := parseFile(options.folder + "/httpmethods")
if err != nil {
log.Fatalf("Error reading /httpmethods file: %v", err)
}
Expand Down Expand Up @@ -209,7 +209,7 @@ func requestMethodsCaseSwitching(options RequestOptions) {
color.Cyan("\n━━━━━━━ VERB TAMPERING CASE SWITCHING ━━━━━━━━")

var lines []string
lines, err := parseFile(folder + "/httpmethods")
lines, err := parseFile(options.folder + "/httpmethods")
if err != nil {
log.Fatalf("Error reading /httpmethods file: %v", err)
}
Expand Down Expand Up @@ -306,7 +306,7 @@ func requestEndPaths(options RequestOptions) {
color.Cyan("\n━━━━━━━━━━━━━━━ CUSTOM PATHS ━━━━━━━━━━━━━━━━━")

var lines []string
lines, err := parseFile(folder + "/endpaths")
lines, err := parseFile(options.folder + "/endpaths")
if err != nil {
log.Fatalf("Error reading custom paths file: %v", err)
}
Expand All @@ -333,7 +333,7 @@ func requestEndPaths(options RequestOptions) {
// requestMidPaths makes HTTP requests using a list of custom mid-paths from a file and prints the results.
func requestMidPaths(options RequestOptions) {
var lines []string
lines, err := parseFile(folder + "/midpaths")
lines, err := parseFile(options.folder + "/midpaths")
if err != nil {
log.Fatalf("Error reading custom paths file: %v", err)
}
Expand Down

0 comments on commit 417fbb2

Please sign in to comment.