| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 34ce774 commit cf2d5fd
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -269,7 +269,7 @@ def start(): | |||
| 269 | 269 | for targetUrl, targetMethod, targetData, targetCookie, targetHeaders in kb.targets: | |
| 270 | 270 | try: | |
| 271 | 271 | conf.url = targetUrl | |
| 272 | - conf.method = targetMethod | ||
| 272 | + conf.method = targetMethod.upper() if targetMethod else targetMethod | ||
| 273 | 273 | conf.data = targetData | |
| 274 | 274 | conf.cookie = targetCookie | |
| 275 | 275 | conf.httpHeaders = list(initialHeaders) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,6 +23,7 @@ | |||
| 23 | 23 | }, | |
| 24 | 24 | ||
| 25 | 25 | "Request": { | |
| 26 | + "method": "string", | ||
| 26 | 27 | "data": "string", | |
| 27 | 28 | "paramDel": "string", | |
| 28 | 29 | "cookie": "string", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,6 +90,9 @@ def cmdLineParser(): | |||
| 90 | 90 | request = OptionGroup(parser, "Request", "These options can be used " | |
| 91 | 91 | "to specify how to connect to the target URL") | |
| 92 | 92 | ||
| 93 | + request.add_option("--method", dest="method", | ||
| 94 | + help="Force usage of given HTTP method (e.g. PUT)") | ||
| 95 | + | ||
| 93 | 96 | request.add_option("--data", dest="data", | |
| 94 | 97 | help="Data string to be sent through POST") | |
| 95 | 98 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -307,7 +307,7 @@ def getPage(**kwargs): | |||
| 307 | 307 | url = "%s?%s" % (url, get) | |
| 308 | 308 | requestMsg += "?%s" % get | |
| 309 | 309 | ||
| 310 | - if PLACE.POST in conf.parameters and not post and method in (None, HTTPMETHOD.POST): | ||
| 310 | + if PLACE.POST in conf.parameters and not post and method != HTTPMETHOD.GET: | ||
| 311 | 311 | post = conf.parameters[PLACE.POST] | |
| 312 | 312 | ||
| 313 | 313 | elif get: | |
@@ -634,6 +634,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent | |||
| 634 | 634 | auxHeaders = {} | |
| 635 | 635 | ||
| 636 | 636 | raise404 = place != PLACE.URI if raise404 is None else raise404 | |
| 637 | + method = method or conf.method | ||
| 637 | 638 | ||
| 638 | 639 | value = agent.adjustLateValues(value) | |
| 639 | 640 | payload = agent.extractPayload(value) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,31 +40,34 @@ sitemapUrl = | |||
| 40 | 40 | # These options can be used to specify how to connect to the target URL. | |
| 41 | 41 | [Request] | |
| 42 | 42 | ||
| 43 | + # Force usage of given HTTP method (e.g. PUT). | ||
| 44 | + method = | ||
| 45 | + | ||
| 43 | 46 | # Data string to be sent through POST. | |
| 44 | 47 | data = | |
| 45 | 48 | ||
| 46 | - # Character used for splitting parameter values | ||
| 49 | + # Character used for splitting parameter values. | ||
| 47 | 50 | paramDel = | |
| 48 | 51 | ||
| 49 | 52 | # HTTP Cookie header value. | |
| 50 | 53 | cookie = | |
| 51 | 54 | ||
| 52 | - # Character used for splitting cookie values | ||
| 55 | + # Character used for splitting cookie values. | ||
| 53 | 56 | cookieDel = | |
| 54 | 57 | ||
| 55 | - # File containing cookies in Netscape/wget format | ||
| 58 | + # File containing cookies in Netscape/wget format. | ||
| 56 | 59 | loadCookies = | |
| 57 | 60 | ||
| 58 | - # Ignore Set-Cookie header from response | ||
| 61 | + # Ignore Set-Cookie header from response. | ||
| 59 | 62 | # Valid: True or False | |
| 60 | 63 | dropSetCookie = False | |
| 61 | 64 | ||
| 62 | 65 | # HTTP User-Agent header value. Useful to fake the HTTP User-Agent header value | |
| 63 | - # at each HTTP request | ||
| 66 | + # at each HTTP request. | ||
| 64 | 67 | # sqlmap will also test for SQL injection on the HTTP User-Agent value. | |
| 65 | 68 | agent = | |
| 66 | 69 | ||
| 67 | - # Use randomly selected HTTP User-Agent header value | ||
| 70 | + # Use randomly selected HTTP User-Agent header value. | ||
| 68 | 71 | # Valid: True or False | |
| 69 | 72 | randomAgent = False | |
| 70 | 73 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments