mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	adding --purge-output to be one of mandatory switches
This commit is contained in:
		
							parent
							
								
									d57d5e4b2c
								
							
						
					
					
						commit
						697768c01a
					
				|  | @ -1968,7 +1968,7 @@ def init(inputOptions=AttribDict(), overrideOptions=False): | ||||||
|     parseTargetUrl() |     parseTargetUrl() | ||||||
|     parseTargetDirect() |     parseTargetDirect() | ||||||
| 
 | 
 | ||||||
|     if any([conf.url, conf.logFile, conf.bulkFile, conf.requestFile, conf.googleDork, conf.liveTest]): |     if any((conf.url, conf.logFile, conf.bulkFile, conf.requestFile, conf.googleDork, conf.liveTest)): | ||||||
|         __setHTTPTimeout() |         __setHTTPTimeout() | ||||||
|         __setHTTPExtraHeaders() |         __setHTTPExtraHeaders() | ||||||
|         __setHTTPCookies() |         __setHTTPCookies() | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ def purge(directory): | ||||||
|     if not os.path.isdir(directory): |     if not os.path.isdir(directory): | ||||||
|         return |         return | ||||||
| 
 | 
 | ||||||
|     infoMsg = "purging content of directory ('%s'). Please wait. This could take a while..." % directory |     infoMsg = "purging content of directory ('%s'). Please wait as this could take a while" % directory | ||||||
|     logger.info(infoMsg) |     logger.info(infoMsg) | ||||||
| 
 | 
 | ||||||
|     filepaths = [] |     filepaths = [] | ||||||
|  |  | ||||||
|  | @ -665,8 +665,8 @@ def cmdLineParser(): | ||||||
|                 break |                 break | ||||||
| 
 | 
 | ||||||
|         if not any((args.direct, args.url, args.logFile, args.bulkFile, args.googleDork, args.configFile, \ |         if not any((args.direct, args.url, args.logFile, args.bulkFile, args.googleDork, args.configFile, \ | ||||||
|             args.requestFile, args.updateAll, args.smokeTest, args.liveTest, args.realTest, args.wizard, args.dependencies)): |             args.requestFile, args.updateAll, args.smokeTest, args.liveTest, args.realTest, args.wizard, args.dependencies, args.purgeOutput)): | ||||||
|             errMsg = "missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --wizard, --update or --dependencies), " |             errMsg = "missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --wizard, --update, --purge-output or --dependencies), " | ||||||
|             errMsg += "use -h for help" |             errMsg += "use -h for help" | ||||||
|             parser.error(errMsg) |             parser.error(errMsg) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user