mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Fixes #3937
This commit is contained in:
		
							parent
							
								
									cc8209d648
								
							
						
					
					
						commit
						95e476d5c9
					
				| 
						 | 
					@ -341,7 +341,8 @@ def _setCrawler():
 | 
				
			||||||
        if conf.bulkFile:
 | 
					        if conf.bulkFile:
 | 
				
			||||||
            targets = getFileItems(conf.bulkFile)
 | 
					            targets = getFileItems(conf.bulkFile)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            targets = parseSitemap(conf.sitemapUrl)
 | 
					            targets = list(parseSitemap(conf.sitemapUrl))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for i in xrange(len(targets)):
 | 
					        for i in xrange(len(targets)):
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                target = targets[i]
 | 
					                target = targets[i]
 | 
				
			||||||
| 
						 | 
					@ -473,10 +474,13 @@ def _findPageForms():
 | 
				
			||||||
        if conf.bulkFile:
 | 
					        if conf.bulkFile:
 | 
				
			||||||
            targets = getFileItems(conf.bulkFile)
 | 
					            targets = getFileItems(conf.bulkFile)
 | 
				
			||||||
        elif conf.sitemapUrl:
 | 
					        elif conf.sitemapUrl:
 | 
				
			||||||
            targets = parseSitemap(conf.sitemapUrl)
 | 
					            targets = list(parseSitemap(conf.sitemapUrl))
 | 
				
			||||||
        elif conf.googleDork:
 | 
					        elif conf.googleDork:
 | 
				
			||||||
            targets = [_[0] for _ in kb.targets]
 | 
					            targets = [_[0] for _ in kb.targets]
 | 
				
			||||||
            kb.targets.clear()
 | 
					            kb.targets.clear()
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
 | 
					            targets = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for i in xrange(len(targets)):
 | 
					        for i in xrange(len(targets)):
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                target = targets[i]
 | 
					                target = targets[i]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,7 @@ from lib.core.enums import OS
 | 
				
			||||||
from thirdparty.six import unichr as _unichr
 | 
					from thirdparty.six import unichr as _unichr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
					# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
				
			||||||
VERSION = "1.3.9.18"
 | 
					VERSION = "1.3.9.19"
 | 
				
			||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
					TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
				
			||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
					TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
				
			||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
					VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user