File tree Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 10
10
import random
11
11
import re
12
12
import socket
13
- import subprocess
14
13
import time
15
14
16
15
from extra .beep .beep import beep
@@ -783,22 +782,8 @@ def genCmpPayload():
783
782
injection .conf .regexp = conf .regexp
784
783
injection .conf .optimize = conf .optimize
785
784
786
- if not kb .alerted :
787
- if conf .beep :
788
- beep ()
789
-
790
- if conf .alert :
791
- infoMsg = "executing alerting shell command(s) ('%s')" % conf .alert
792
- logger .info (infoMsg )
793
-
794
- try :
795
- process = subprocess .Popen (conf .alert , shell = True )
796
- process .wait ()
797
- except Exception as ex :
798
- errMsg = "error occurred while executing '%s' ('%s')" % (conf .alert , getSafeExString (ex ))
799
- logger .error (errMsg )
800
-
801
- kb .alerted = True
785
+ if conf .beep :
786
+ beep ()
802
787
803
788
# There is no need to perform this test for other
804
789
# <where> tags
@@ -859,10 +844,8 @@ def genCmpPayload():
859
844
if not checkFalsePositives (injection ):
860
845
if conf .hostname in kb .vulnHosts :
861
846
kb .vulnHosts .remove (conf .hostname )
862
-
863
847
if NOTE .FALSE_POSITIVE_OR_UNEXPLOITABLE not in injection .notes :
864
848
injection .notes .append (NOTE .FALSE_POSITIVE_OR_UNEXPLOITABLE )
865
-
866
849
else :
867
850
injection = None
868
851
Original file line number Diff line number Diff line change 9
9
10
10
import os
11
11
import re
12
+ import subprocess
12
13
import time
13
14
14
15
from lib .controller .action import action
@@ -598,6 +599,19 @@ def start():
598
599
599
600
kb .injections .append (injection )
600
601
602
+ if not kb .alerted :
603
+ if conf .alert :
604
+ infoMsg = "executing alerting shell command(s) ('%s')" % conf .alert
605
+ logger .info (infoMsg )
606
+ try :
607
+ process = subprocess .Popen (conf .alert , shell = True )
608
+ process .wait ()
609
+ except Exception as ex :
610
+ errMsg = "error occurred while executing '%s' ('%s')" % (conf .alert , getSafeExString (ex ))
611
+ logger .error (errMsg )
612
+
613
+ kb .alerted = True
614
+
601
615
# In case when user wants to end detection phase (Ctrl+C)
602
616
if not proceed :
603
617
break
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.6.11.5 "
23
+ VERSION = "1.6.11.6 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments