mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Minor update
This commit is contained in:
		
							parent
							
								
									36938f8880
								
							
						
					
					
						commit
						b2a8cb8f77
					
				|  | @ -5,6 +5,16 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) | ||||||
| See the file 'LICENSE' for copying permission | See the file 'LICENSE' for copying permission | ||||||
| """ | """ | ||||||
| 
 | 
 | ||||||
|  | import webbrowser | ||||||
|  | 
 | ||||||
|  | from lib.core.settings import DEV_EMAIL_ADDRESS | ||||||
|  | from lib.core.settings import ISSUES_PAGE | ||||||
|  | from lib.core.settings import GIT_PAGE | ||||||
|  | from lib.core.settings import SITE | ||||||
|  | from lib.core.settings import VERSION_STRING | ||||||
|  | from lib.core.settings import WIKI_PAGE | ||||||
|  | from thirdparty.six.moves import tkinter_messagebox as _tkinter_messagebox | ||||||
|  | 
 | ||||||
| def runGui(parser): | def runGui(parser): | ||||||
|     import re |     import re | ||||||
|     import tkinter as tk |     import tkinter as tk | ||||||
|  | @ -42,7 +52,7 @@ def runGui(parser): | ||||||
|             event.widget.configure(height=tab.winfo_reqheight()) |             event.widget.configure(height=tab.winfo_reqheight()) | ||||||
| 
 | 
 | ||||||
|     window = tk.Tk() |     window = tk.Tk() | ||||||
|     window.title("sqlmap") |     window.title(VERSION_STRING) | ||||||
| 
 | 
 | ||||||
|     # Reference: https://www.holadevs.com/pregunta/64750/change-selected-tab-color-in-ttknotebook |     # Reference: https://www.holadevs.com/pregunta/64750/change-selected-tab-color-in-ttknotebook | ||||||
|     style = ttk.Style() |     style = ttk.Style() | ||||||
|  | @ -56,28 +66,28 @@ def runGui(parser): | ||||||
|     menubar = tk.Menu(window) |     menubar = tk.Menu(window) | ||||||
| 
 | 
 | ||||||
|     filemenu = tk.Menu(menubar, tearoff=0) |     filemenu = tk.Menu(menubar, tearoff=0) | ||||||
|     filemenu.add_command(label="Open", command=dummy) |     filemenu.add_command(label="Open", command=dummy, state=tk.DISABLED) | ||||||
|     filemenu.add_command(label="Save", command=dummy) |     filemenu.add_command(label="Save", command=dummy, state=tk.DISABLED) | ||||||
|     filemenu.add_separator() |     filemenu.add_separator() | ||||||
|     filemenu.add_command(label="Exit", command=window.quit) |     filemenu.add_command(label="Exit", command=window.quit) | ||||||
|     menubar.add_cascade(label="File", menu=filemenu) |     menubar.add_cascade(label="File", menu=filemenu) | ||||||
| 
 | 
 | ||||||
|     runmenu = tk.Menu(menubar, tearoff=0) |     menubar.add_command(label="Run", command=window.quit) | ||||||
|     runmenu.add_command(label="Start", command=dummy) |  | ||||||
|     runmenu.add_command(label="Stop", command=dummy) |  | ||||||
|     menubar.add_cascade(label="Run", menu=runmenu) |  | ||||||
| 
 | 
 | ||||||
|     helpmenu = tk.Menu(menubar, tearoff=0) |     helpmenu = tk.Menu(menubar, tearoff=0) | ||||||
|     helpmenu.add_command(label="Wiki pages", command=dummy) |     helpmenu.add_command(label="Official site", command=lambda: webbrowser.open(SITE)) | ||||||
|     helpmenu.add_command(label="Official site", command=dummy) |     helpmenu.add_command(label="Github pages", command=lambda: webbrowser.open(GIT_PAGE)) | ||||||
|  |     helpmenu.add_command(label="Wiki pages", command=lambda: webbrowser.open(WIKI_PAGE)) | ||||||
|  |     helpmenu.add_command(label="Report issue", command=lambda: webbrowser.open(ISSUES_PAGE)) | ||||||
|     helpmenu.add_separator() |     helpmenu.add_separator() | ||||||
|     helpmenu.add_command(label="About", command=dummy) |     helpmenu.add_command(label="About", command=lambda: _tkinter_messagebox.showinfo("About", "Copyright (c) 2006-2019\n\n    (%s)" % DEV_EMAIL_ADDRESS)) | ||||||
|     menubar.add_cascade(label="Help", menu=helpmenu) |     menubar.add_cascade(label="Help", menu=helpmenu) | ||||||
| 
 | 
 | ||||||
|     window.config(menu=menubar) |     window.config(menu=menubar) | ||||||
| 
 | 
 | ||||||
|     notebook = AutoresizableNotebook(window) |     notebook = AutoresizableNotebook(window) | ||||||
| 
 | 
 | ||||||
|  |     first = None | ||||||
|     frames = {} |     frames = {} | ||||||
|     for group in parser.option_groups: |     for group in parser.option_groups: | ||||||
|         frame = frames[group.title] = tk.Frame(notebook, width=200, height=200) |         frame = frames[group.title] = tk.Frame(notebook, width=200, height=200) | ||||||
|  | @ -105,6 +115,7 @@ def runGui(parser): | ||||||
|                 widget = tk.Checkbutton(frame, variable=var) |                 widget = tk.Checkbutton(frame, variable=var) | ||||||
|                 widget.var = var |                 widget.var = var | ||||||
| 
 | 
 | ||||||
|  |             first = first or widget | ||||||
|             widget.grid(column=1, row=row, sticky=tk.W) |             widget.grid(column=1, row=row, sticky=tk.W) | ||||||
| 
 | 
 | ||||||
|             default = defaults.get(option.dest) |             default = defaults.get(option.dest) | ||||||
|  | @ -119,7 +130,8 @@ def runGui(parser): | ||||||
|         tk.Label(frame).grid(column=0, row=row, sticky=tk.W) |         tk.Label(frame).grid(column=0, row=row, sticky=tk.W) | ||||||
| 
 | 
 | ||||||
|     notebook.pack(expand=1, fill="both") |     notebook.pack(expand=1, fill="both") | ||||||
| 
 |  | ||||||
|     notebook.enable_traversal() |     notebook.enable_traversal() | ||||||
| 
 | 
 | ||||||
|  |     first.focus() | ||||||
|  | 
 | ||||||
|     window.mainloop() |     window.mainloop() | ||||||
|  | @ -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.11.87" | VERSION = "1.3.11.88" | ||||||
| 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) | ||||||
|  | @ -29,6 +29,7 @@ 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 = "https://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" | ||||||
|  | WIKI_PAGE = "https://github.com/sqlmapproject/sqlmap/wiki/" | ||||||
| ZIPBALL_PAGE = "https://github.com/sqlmapproject/sqlmap/zipball/master" | ZIPBALL_PAGE = "https://github.com/sqlmapproject/sqlmap/zipball/master" | ||||||
| 
 | 
 | ||||||
| # colorful banner | # colorful banner | ||||||
|  |  | ||||||
|  | @ -122,12 +122,12 @@ def cmdLineParser(argv=None): | ||||||
|         # Target options |         # Target options | ||||||
|         target = parser.add_argument_group("Target", "At least one of these options has to be provided to define the target(s)") |         target = parser.add_argument_group("Target", "At least one of these options has to be provided to define the target(s)") | ||||||
| 
 | 
 | ||||||
|         target.add_argument("-d", dest="direct", |  | ||||||
|             help="Connection string for direct database connection") |  | ||||||
| 
 |  | ||||||
|         target.add_argument("-u", "--url", dest="url", |         target.add_argument("-u", "--url", dest="url", | ||||||
|             help="Target URL (e.g. \"http://www.site.com/vuln.php?id=1\")") |             help="Target URL (e.g. \"http://www.site.com/vuln.php?id=1\")") | ||||||
| 
 | 
 | ||||||
|  |         target.add_argument("-d", dest="direct", | ||||||
|  |             help="Connection string for direct database connection") | ||||||
|  | 
 | ||||||
|         target.add_argument("-l", dest="logFile", |         target.add_argument("-l", dest="logFile", | ||||||
|             help="Parse target(s) from Burp or WebScarab proxy log file") |             help="Parse target(s) from Burp or WebScarab proxy log file") | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,16 +2,16 @@ | ||||||
| # get target URLs from. | # get target URLs from. | ||||||
| [Target] | [Target] | ||||||
| 
 | 
 | ||||||
|  | # Target URL. | ||||||
|  | # Example: http://192.168.1.121/sqlmap/mysql/get_int.php?id=1&cat=2 | ||||||
|  | url = | ||||||
|  | 
 | ||||||
| # Direct connection to the database. | # Direct connection to the database. | ||||||
| # Examples: | # Examples: | ||||||
| #   mysql://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_NAME | #   mysql://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_NAME | ||||||
| #   oracle://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_SID | #   oracle://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_SID | ||||||
| direct =  | direct =  | ||||||
| 
 | 
 | ||||||
| # Target URL. |  | ||||||
| # Example: http://192.168.1.121/sqlmap/mysql/get_int.php?id=1&cat=2 |  | ||||||
| url =  |  | ||||||
| 
 |  | ||||||
| # Parse targets from Burp or WebScarab logs | # Parse targets from Burp or WebScarab logs | ||||||
| # Valid: Burp proxy (http://portswigger.net/suite/) requests log file path | # Valid: Burp proxy (http://portswigger.net/suite/) requests log file path | ||||||
| # or WebScarab proxy (http://www.owasp.org/index.php/Category:OWASP_WebScarab_Project) | # or WebScarab proxy (http://www.owasp.org/index.php/Category:OWASP_WebScarab_Project) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user