mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Minor update for --os-shell directories
This commit is contained in:
		
							parent
							
								
									3e76895155
								
							
						
					
					
						commit
						023dda26fc
					
				|  | @ -767,9 +767,14 @@ def getManualDirectories(): | |||
| 
 | ||||
|                 for suffix in BRUTE_DOC_ROOT_SUFFIXES: | ||||
|                     for target in targets: | ||||
|                         item = "%s/%s" % (prefix, suffix) | ||||
|                         if not prefix.endswith("/%s" % suffix): | ||||
|                             item = "%s/%s" % (prefix, suffix) | ||||
|                         else: | ||||
|                             item = prefix | ||||
| 
 | ||||
|                         item = item.replace(BRUTE_DOC_ROOT_TARGET_MARK, target).replace("//", '/').rstrip('/') | ||||
|                         directories.append(item) | ||||
|                         if item not in directories: | ||||
|                             directories.append(item) | ||||
| 
 | ||||
|                         if BRUTE_DOC_ROOT_TARGET_MARK not in prefix: | ||||
|                             break | ||||
|  |  | |||
|  | @ -234,6 +234,6 @@ DUMP_DATA_PREPROCESS = { | |||
|                        } | ||||
| 
 | ||||
| DEFAULT_DOC_ROOTS = { | ||||
|                         OS.WINDOWS: ("C:/xampp/htdocs/", "C:/Inetpub/wwwroot/"), | ||||
|                         OS.LINUX: ("/var/www/", "/var/www/html", "/usr/local/apache2/htdocs", "/var/www/nginx-default")  # Reference: https://wiki.apache.org/httpd/DistrosDefaultLayout | ||||
|                         OS.WINDOWS: ("C:/xampp/htdocs/", "C:/wamp/www/", "C:/Inetpub/wwwroot/"), | ||||
|                         OS.LINUX: ("/var/www/", "/var/www/html", "/usr/local/apache2/htdocs", "/var/www/nginx-default", "/srv/www")  # Reference: https://wiki.apache.org/httpd/DistrosDefaultLayout | ||||
|                     } | ||||
|  |  | |||
|  | @ -19,7 +19,7 @@ from lib.core.enums import OS | |||
| from lib.core.revision import getRevisionNumber | ||||
| 
 | ||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||
| VERSION = "1.0.5.49" | ||||
| VERSION = "1.0.5.50" | ||||
| REVISION = getRevisionNumber() | ||||
| STABLE = VERSION.count('.') <= 2 | ||||
| VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") | ||||
|  | @ -680,7 +680,7 @@ BRUTE_DOC_ROOT_PREFIXES = { | |||
| } | ||||
| 
 | ||||
| # Suffixes used in brute force search for web server document root | ||||
| BRUTE_DOC_ROOT_SUFFIXES = ("", "html", "htdocs", "httpdocs", "php", "public", "src", "site", "build", "web", "data", "sites/all", "www/build") | ||||
| BRUTE_DOC_ROOT_SUFFIXES = ("", "html", "htdocs", "httpdocs", "php", "public", "src", "site", "build", "web", "www", "data", "sites/all", "www/build") | ||||
| 
 | ||||
| # String used for marking target name inside used brute force web server document root | ||||
| BRUTE_DOC_ROOT_TARGET_MARK = "%TARGET%" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user