mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Patch for sqlmapapi (NotImplementedError)
This commit is contained in:
		
							parent
							
								
									d5fb3a0d8b
								
							
						
					
					
						commit
						1241a025a2
					
				|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | ||||||
| from thirdparty import six | from thirdparty import six | ||||||
| 
 | 
 | ||||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||||
| VERSION = "1.3.5.48" | VERSION = "1.3.5.49" | ||||||
| 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) | ||||||
|  |  | ||||||
|  | @ -21,6 +21,8 @@ warnings.filterwarnings(action="ignore", category=DeprecationWarning) | ||||||
| from sqlmap import modulePath | from sqlmap import modulePath | ||||||
| from lib.core.common import setPaths | from lib.core.common import setPaths | ||||||
| from lib.core.data import logger | from lib.core.data import logger | ||||||
|  | from lib.core.patch import dirtyPatches | ||||||
|  | from lib.core.patch import resolveCrossReferences | ||||||
| from lib.core.settings import RESTAPI_DEFAULT_ADAPTER | from lib.core.settings import RESTAPI_DEFAULT_ADAPTER | ||||||
| from lib.core.settings import RESTAPI_DEFAULT_ADDRESS | from lib.core.settings import RESTAPI_DEFAULT_ADDRESS | ||||||
| from lib.core.settings import RESTAPI_DEFAULT_PORT | from lib.core.settings import RESTAPI_DEFAULT_PORT | ||||||
|  | @ -32,6 +34,9 @@ def main(): | ||||||
|     REST-JSON API main function |     REST-JSON API main function | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|  |     dirtyPatches() | ||||||
|  |     resolveCrossReferences() | ||||||
|  | 
 | ||||||
|     # Set default logging level to debug |     # Set default logging level to debug | ||||||
|     logger.setLevel(logging.DEBUG) |     logger.setLevel(logging.DEBUG) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user