mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Update regarding Issue #52
This commit is contained in:
		
							parent
							
								
									0d539a876d
								
							
						
					
					
						commit
						3ff28e58b4
					
				| 
						 | 
					@ -24,6 +24,7 @@ VERSION_STRING = "sqlmap/%s%s" % (VERSION, "-%s" % REVISION if REVISION else "")
 | 
				
			||||||
DESCRIPTION = "automatic SQL injection and database takeover tool"
 | 
					DESCRIPTION = "automatic SQL injection and database takeover tool"
 | 
				
			||||||
SITE = "http://sqlmap.org"
 | 
					SITE = "http://sqlmap.org"
 | 
				
			||||||
ISSUES_PAGE = "https://github.com/sqlmapproject/sqlmap/issues/new"
 | 
					ISSUES_PAGE = "https://github.com/sqlmapproject/sqlmap/issues/new"
 | 
				
			||||||
 | 
					GIT_REPOSITORY = "git://github.com/sqlmapproject/sqlmap.git"
 | 
				
			||||||
ML = "sqlmap-users@lists.sourceforge.net"
 | 
					ML = "sqlmap-users@lists.sourceforge.net"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# minimum distance of ratio from kb.matchRatio to result in True
 | 
					# minimum distance of ratio from kb.matchRatio to result in True
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,6 +17,7 @@ from lib.core.common import getUnicode
 | 
				
			||||||
from lib.core.data import conf
 | 
					from lib.core.data import conf
 | 
				
			||||||
from lib.core.data import logger
 | 
					from lib.core.data import logger
 | 
				
			||||||
from lib.core.data import paths
 | 
					from lib.core.data import paths
 | 
				
			||||||
 | 
					from lib.core.settings import GIT_REPOSITORY
 | 
				
			||||||
from lib.core.settings import IS_WIN
 | 
					from lib.core.settings import IS_WIN
 | 
				
			||||||
from lib.core.settings import REVISION
 | 
					from lib.core.settings import REVISION
 | 
				
			||||||
from lib.core.settings import UNICODE_ENCODING
 | 
					from lib.core.settings import UNICODE_ENCODING
 | 
				
			||||||
| 
						 | 
					@ -42,7 +43,7 @@ def update():
 | 
				
			||||||
        logger.debug(debugMsg)
 | 
					        logger.debug(debugMsg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        dataToStdout("\r[%s] [INFO] update in progress " % time.strftime("%X"))
 | 
					        dataToStdout("\r[%s] [INFO] update in progress " % time.strftime("%X"))
 | 
				
			||||||
        process = execute("git pull %s" % rootDir, shell=True, stdout=PIPE, stderr=PIPE)
 | 
					        process = execute("git pull %s HEAD" % GIT_REPOSITORY, shell=True, stdout=PIPE, stderr=PIPE)
 | 
				
			||||||
        pollProcess(process, True)
 | 
					        pollProcess(process, True)
 | 
				
			||||||
        stdout, stderr = process.communicate()
 | 
					        stdout, stderr = process.communicate()
 | 
				
			||||||
        success = not process.returncode
 | 
					        success = not process.returncode
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user