| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1140,16 +1140,16 @@ def _setSafeUrl(): | |||
| 1140 | 1140 | """ | |
| 1141 | 1141 | Check and set the safe URL options. | |
| 1142 | 1142 | """ | |
| 1143 | - if not conf.safUrl: | ||
| 1143 | + if not conf.safeUrl: | ||
| 1144 | 1144 | return | |
| 1145 | 1145 | ||
| 1146 | - if not re.search("^http[s]*://", conf.safUrl): | ||
| 1147 | - if ":443/" in conf.safUrl: | ||
| 1148 | - conf.safUrl = "https://" + conf.safUrl | ||
| 1146 | + if not re.search("^http[s]*://", conf.safeUrl): | ||
| 1147 | + if ":443/" in conf.safeUrl: | ||
| 1148 | + conf.safeUrl = "https://" + conf.safeUrl | ||
| 1149 | 1149 | else: | |
| 1150 | - conf.safUrl = "http://" + conf.safUrl | ||
| 1150 | + conf.safeUrl = "http://" + conf.safeUrl | ||
| 1151 | 1151 | ||
| 1152 | - if conf.saFreq <= 0: | ||
| 1152 | + if conf.safeFreq <= 0: | ||
| 1153 | 1153 | errMsg = "please provide a valid value (>0) for safe frequency (--safe-freq) while using safe URL feature" | |
| 1154 | 1154 | raise SqlmapSyntaxException(errMsg) | |
| 1155 | 1155 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,9 +50,9 @@ | |||
| 50 | 50 | "timeout": "float", | |
| 51 | 51 | "retries": "integer", | |
| 52 | 52 | "rParam": "string", | |
| 53 | - "safUrl": "string", | ||
| 54 | - "safPost": "string", | ||
| 55 | - "saFreq": "integer", | ||
| 53 | + "safeUrl": "string", | ||
| 54 | + "safePost": "string", | ||
| 55 | + "safeFreq": "integer", | ||
| 56 | 56 | "skipUrlEncode": "boolean", | |
| 57 | 57 | "csrfToken": "string", | |
| 58 | 58 | "csrfUrl": "string", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -185,13 +185,13 @@ def cmdLineParser(): | |||
| 185 | 185 | request.add_option("--randomize", dest="rParam", | |
| 186 | 186 | help="Randomly change value for given parameter(s)") | |
| 187 | 187 | ||
| 188 | - request.add_option("--safe-url", dest="safUrl", | ||
| 188 | + request.add_option("--safe-url", dest="safeUrl", | ||
| 189 | 189 | help="URL address to visit frequently during testing") | |
| 190 | 190 | ||
| 191 | - request.add_option("--safe-post", dest="safPost", | ||
| 191 | + request.add_option("--safe-post", dest="safePost", | ||
| 192 | 192 | help="POST data to send to a safe URL") | |
| 193 | 193 | ||
| 194 | - request.add_option("--safe-freq", dest="saFreq", type="int", | ||
| 194 | + request.add_option("--safe-freq", dest="safeFreq", type="int", | ||
| 195 | 195 | help="Test requests between two visits to a given safe URL") | |
| 196 | 196 | ||
| 197 | 197 | request.add_option("--skip-urlencode", dest="skipUrlEncode", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -971,10 +971,10 @@ def _randomizeParameter(paramString, randomParameter): | |||
| 971 | 971 | warnMsg += "10 or more)" | |
| 972 | 972 | logger.critical(warnMsg) | |
| 973 | 973 | ||
| 974 | - if conf.safUrl and conf.saFreq > 0: | ||
| 974 | + if conf.safeUrl and conf.safeFreq > 0: | ||
| 975 | 975 | kb.queryCounter += 1 | |
| 976 | - if kb.queryCounter % conf.saFreq == 0: | ||
| 977 | - Connect.getPage(url=conf.safUrl, post=conf.safPost, cookie=cookie, direct=True, silent=True, ua=ua, referer=referer, host=host) | ||
| 976 | + if kb.queryCounter % conf.safeFreq == 0: | ||
| 977 | + Connect.getPage(url=conf.safeUrl, post=conf.safePost, cookie=cookie, direct=True, silent=True, ua=ua, referer=referer, host=host) | ||
| 978 | 978 | ||
| 979 | 979 | start = time.time() | |
| 980 | 980 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,16 +150,16 @@ rParam = | |||
| 150 | 150 | ||
| 151 | 151 | # URL address to visit frequently during testing. | |
| 152 | 152 | # Example: http://192.168.1.121/index.html | |
| 153 | - safUrl = | ||
| 153 | + safeUrl = | ||
| 154 | 154 | ||
| 155 | 155 | # POST data to send to a safe URL. | |
| 156 | 156 | # Example: username=admin&password=passw0rd! | |
| 157 | - safPost = | ||
| 157 | + safePost = | ||
| 158 | 158 | ||
| 159 | 159 | # Test requests between two visits to a given safe URL (default 0). | |
| 160 | 160 | # Valid: integer | |
| 161 | 161 | # Default: 0 | |
| 162 | - saFreq = 0 | ||
| 162 | + safeFreq = 0 | ||
| 163 | 163 | ||
| 164 | 164 | # Skip URL encoding of payload data | |
| 165 | 165 | # Valid: True or False | |
| Back | FazBrowse Home | New Git URL |
0 commit comments