mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Minor update (git/https repo address consistency)
This commit is contained in:
		
							parent
							
								
									0c4b6c9978
								
							
						
					
					
						commit
						99894dc3c1
					
				| 
						 | 
					@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
 | 
				
			||||||
from lib.core.enums import OS
 | 
					from lib.core.enums import OS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
					# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
				
			||||||
VERSION = "1.2.3.18"
 | 
					VERSION = "1.2.3.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)
 | 
				
			||||||
| 
						 | 
					@ -27,7 +27,7 @@ DESCRIPTION = "automatic SQL injection and database takeover tool"
 | 
				
			||||||
SITE = "http://sqlmap.org"
 | 
					SITE = "http://sqlmap.org"
 | 
				
			||||||
DEV_EMAIL_ADDRESS = "dev@sqlmap.org"
 | 
					DEV_EMAIL_ADDRESS = "dev@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"
 | 
					GIT_REPOSITORY = "https://github.com/sqlmapproject/sqlmap.git"
 | 
				
			||||||
GIT_PAGE = "https://github.com/sqlmapproject/sqlmap"
 | 
					GIT_PAGE = "https://github.com/sqlmapproject/sqlmap"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# colorful banner
 | 
					# colorful banner
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@ def update():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if not os.path.exists(os.path.join(paths.SQLMAP_ROOT_PATH, ".git")):
 | 
					    if not os.path.exists(os.path.join(paths.SQLMAP_ROOT_PATH, ".git")):
 | 
				
			||||||
        errMsg = "not a git repository. Please checkout the 'sqlmapproject/sqlmap' repository "
 | 
					        errMsg = "not a git repository. Please checkout the 'sqlmapproject/sqlmap' repository "
 | 
				
			||||||
        errMsg += "from GitHub (e.g. 'git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap')"
 | 
					        errMsg += "from GitHub (e.g. 'git clone --depth 1 %s sqlmap')" % GIT_REPOSITORY
 | 
				
			||||||
        logger.error(errMsg)
 | 
					        logger.error(errMsg)
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        infoMsg = "updating sqlmap to the latest development revision from the "
 | 
					        infoMsg = "updating sqlmap to the latest development revision from the "
 | 
				
			||||||
| 
						 | 
					@ -56,7 +56,7 @@ def update():
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            if "Not a git repository" in stderr:
 | 
					            if "Not a git repository" in stderr:
 | 
				
			||||||
                errMsg = "not a valid git repository. Please checkout the 'sqlmapproject/sqlmap' repository "
 | 
					                errMsg = "not a valid git repository. Please checkout the 'sqlmapproject/sqlmap' repository "
 | 
				
			||||||
                errMsg += "from GitHub (e.g. 'git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap')"
 | 
					                errMsg += "from GitHub (e.g. 'git clone --depth 1 %s sqlmap')" % GIT_REPOSITORY
 | 
				
			||||||
                logger.error(errMsg)
 | 
					                logger.error(errMsg)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                logger.error("update could not be completed ('%s')" % re.sub(r"\W+", " ", stderr).strip())
 | 
					                logger.error("update could not be completed ('%s')" % re.sub(r"\W+", " ", stderr).strip())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,14 +46,14 @@ ffa5f01f39b17c8d73423acca6cfe86a  lib/core/readlineng.py
 | 
				
			||||||
0c3eef46bdbf87e29a3f95f90240d192  lib/core/replication.py
 | 
					0c3eef46bdbf87e29a3f95f90240d192  lib/core/replication.py
 | 
				
			||||||
a7db43859b61569b601b97f187dd31c5  lib/core/revision.py
 | 
					a7db43859b61569b601b97f187dd31c5  lib/core/revision.py
 | 
				
			||||||
fcb74fcc9577523524659ec49e2e964b  lib/core/session.py
 | 
					fcb74fcc9577523524659ec49e2e964b  lib/core/session.py
 | 
				
			||||||
fbcb5796a6af29fc0715fe516e38f754  lib/core/settings.py
 | 
					38ff7838ee66e799a8484f4850152cdc  lib/core/settings.py
 | 
				
			||||||
d0adc28a38e43a787df4471f7f027413  lib/core/shell.py
 | 
					d0adc28a38e43a787df4471f7f027413  lib/core/shell.py
 | 
				
			||||||
63491be462c515a1a3880c27c2acc4a2  lib/core/subprocessng.py
 | 
					63491be462c515a1a3880c27c2acc4a2  lib/core/subprocessng.py
 | 
				
			||||||
3cc852f927833895361973fbcfd156d2  lib/core/target.py
 | 
					3cc852f927833895361973fbcfd156d2  lib/core/target.py
 | 
				
			||||||
72d499ca8d792e90a1ebfb2ad2341a51  lib/core/testing.py
 | 
					72d499ca8d792e90a1ebfb2ad2341a51  lib/core/testing.py
 | 
				
			||||||
de9922a29c71a235cb95a916ff925db2  lib/core/threads.py
 | 
					de9922a29c71a235cb95a916ff925db2  lib/core/threads.py
 | 
				
			||||||
c40758411bb0bd68764d78e0bb72bd0f  lib/core/unescaper.py
 | 
					c40758411bb0bd68764d78e0bb72bd0f  lib/core/unescaper.py
 | 
				
			||||||
063c10fb8261994fe1f8c8ace715aa76  lib/core/update.py
 | 
					1b655a78fe4d937d39131938a4a5a1d6  lib/core/update.py
 | 
				
			||||||
fc624104ddb36d41794b7a943fde5f21  lib/core/wordlist.py
 | 
					fc624104ddb36d41794b7a943fde5f21  lib/core/wordlist.py
 | 
				
			||||||
1e5532ede194ac9c083891c2f02bca93  lib/__init__.py
 | 
					1e5532ede194ac9c083891c2f02bca93  lib/__init__.py
 | 
				
			||||||
7620f1f4b8791e13c7184c06b5421754  lib/parse/banner.py
 | 
					7620f1f4b8791e13c7184c06b5421754  lib/parse/banner.py
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user