33import shutil
44import tkinter as tk
55import re
6- import requests
76import subprocess
87from concurrent .futures import ThreadPoolExecutor
98import tkinter .messagebox as msgbox
1211from tkinter import messagebox
1312from tkinter import Text
1413
14+ try :
15+ import requests
16+ except :
17+ os .system ("pip install requests" )
18+ try :
19+ import requests
20+ except :
21+ messagebox .askyesno ("安装报错" , "您的 requests 库安装失败,请手动安装后再运行!" )
22+
1523def get_technique_abbr (technique_full ):
1624 techniques_dict = {
1725 "全选" : "BESUTQ" ,
@@ -229,7 +237,7 @@ def help():
229237 help .geometry (f"+{ x } +{ y } " )
230238
231239root = tk .Tk ()
232- root .title ("SQLmap汉化GUI版-V1.6 by本间白猫" )
240+ root .title ("SQLmap汉化GUI版-V1.7 by本间白猫" )
233241
234242paned_window = ttk .PanedWindow (root , orient = tk .HORIZONTAL )
235243paned_window .pack (fill = tk .BOTH , expand = True )
@@ -559,7 +567,7 @@ def show_custom_dialog(text1,x,y):
559567 dialog .mainloop ()
560568def update_module (x ,y ):
561569 try :
562- sqlmap_time = "2024-05-17 "
570+ sqlmap_time = "2024-07-22 "
563571 url = "https://y.shironekosan.cn/1.html"
564572 response = requests .get (url )
565573 pattern = r'<div\s+class="nc-light-gallery"\s+id="image_container">(.*?)</div>'
@@ -602,5 +610,5 @@ def update_module(x,y):
602610x = (screen_width - root_width ) // 2
603611y = (screen_height - root_height ) // 2
604612root .geometry ("+%d+%d" % (x , y ))
605- update_module (x , y )
606613root .mainloop ()
614+ update_module (x , y )
0 commit comments