@@ -80,8 +80,8 @@ public static Injection testInjection(String url, Config config, Boolean justSca
8080 String curl = uri . PathAndQuery . Replace ( param , payload ) ;
8181 injection . testUrl = testUrl . Replace ( param , payload ) ;
8282 injection . paramName = sprarm [ 0 ] ;
83- String oldrequest = Spider . reqestGetTemplate . Replace ( "{url}" , uri . PathAndQuery ) . Replace ( "{host}" , uri . Host + ":" + uri . Port ) ;
84- String request = Spider . reqestGetTemplate . Replace ( "{url}" , curl ) . Replace ( "{host}" , uri . Host + ":" + uri . Port ) ;
83+ String oldrequest = Spider . reqestGetTemplate . Replace ( "{url}" , uri . PathAndQuery ) . Replace ( "{host}" , uri . Host ) ;
84+ String request = Spider . reqestGetTemplate . Replace ( "{url}" , curl ) . Replace ( "{host}" , uri . Host ) ;
8585 //通过错误显示判断
8686 if ( timeout >= 3 )
8787 {
@@ -129,7 +129,7 @@ public static Injection testInjection(String url, Config config, Boolean justSca
129129
130130 foreach ( String bool_payload in bool_payloads )
131131 {
132- String [ ] bool_ps = bool_payload . Split ( ': ' ) ;
132+ String [ ] bool_ps = bool_payload . Split ( ': ' ) ;
133133
134134 String flasePayload = pramName + "=" + URLEncode . UrlEncode ( pramValue + bool_ps [ 1 ] ) ;
135135 String falseURL = uri . PathAndQuery . Replace ( param , flasePayload ) ;
@@ -139,7 +139,7 @@ public static Injection testInjection(String url, Config config, Boolean justSca
139139 {
140140 break ; //超时3次,认为此URL为坏死URL
141141 }
142- String falserequest = Spider . reqestGetTemplate . Replace ( "{url}" , falseURL ) . Replace ( "{host}" , uri . Host + ":" + uri . Port ) ;
142+ String falserequest = Spider . reqestGetTemplate . Replace ( "{url}" , falseURL ) . Replace ( "{host}" , uri . Host ) ;
143143 ServerInfo falseServer = HTTP . sendRequestRetry ( isSSL , config . reTry , uri . Host , uri . Port , flasePayload , falserequest , config . timeOut , HTTP . AutoGetEncoding , false , config . redirectDoGet ) ;
144144 if ( falseServer . runTime > config . timeOut * 1000 ) timeout ++ ;
145145 decimal pfalse = Tools . getLike ( oserver . body , falseServer . body ) ;
@@ -151,7 +151,7 @@ public static Injection testInjection(String url, Config config, Boolean justSca
151151
152152 String truePayload = pramName + "=" + URLEncode . UrlEncode ( pramValue + bool_ps [ 0 ] ) ;
153153 String trueURL = uri . PathAndQuery . Replace ( param , truePayload ) ;
154- String truerequest = Spider . reqestGetTemplate . Replace ( "{url}" , trueURL ) . Replace ( "{host}" , uri . Host + ":" + uri . Port ) ;
154+ String truerequest = Spider . reqestGetTemplate . Replace ( "{url}" , trueURL ) . Replace ( "{host}" , uri . Host ) ;
155155 if ( timeout >= 3 )
156156 {
157157 break ; //超时3次,认为此URL为坏死URL
0 commit comments