Skip to content

Commit

Permalink
update20190830
Browse files Browse the repository at this point in the history
update20190830
  • Loading branch information
shack2 committed Aug 30, 2019
1 parent 419a7ce commit cee66af
Show file tree
Hide file tree
Showing 10 changed files with 305 additions and 229 deletions.
206 changes: 109 additions & 97 deletions SuperSQLInjection/Main.Designer.cs

Large diffs are not rendered by default.

258 changes: 143 additions & 115 deletions SuperSQLInjection/Main.cs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions SuperSQLInjection/Main.resx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACU
BwAAAk1TRnQBSQFMAwEBAAEIAQABCAEAARQBAAEUAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
BwAAAk1TRnQBSQFMAwEBAAGIAQABiAEAARQBAAEUAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
AVADAAEUAwABAQEAAQgFAAFAAQYYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down Expand Up @@ -157,9 +157,9 @@
AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm
AQABIQEAAaUBAANfAQADd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/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAAUADAAEBAQABCAYAARAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down Expand Up @@ -340,7 +340,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACq
DQAAAk1TRnQBSQFMAgEBBwEAAWgBCgFoAQoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
DQAAAk1TRnQBSQFMAgEBBwEAAegBCgHoAQoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down
4 changes: 2 additions & 2 deletions SuperSQLInjection/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2019.08.23")]
[assembly: AssemblyFileVersion("1.2019.08.23")]
[assembly: AssemblyVersion("1.2019.08.30")]
[assembly: AssemblyFileVersion("1.2019.08.30")]
Binary file added SuperSQLInjection/Properties/images/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SuperSQLInjection/Resources/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions SuperSQLInjection/SuperSQLInjection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@
</ItemGroup>
<ItemGroup>
<Content Include="favicon.ico" />
<None Include="Resources\bg.png" />
<None Include="Resources\article_top_nav_bg.png" />
<None Include="Properties\images\bg.png" />
<None Include="Properties\images\下载.png" />
<None Include="Properties\images\bug.png" />
<None Include="Properties\images\版本.png" />
Expand All @@ -309,9 +312,7 @@
<None Include="Properties\images\stop.png" />
<None Include="Properties\images\vers.png" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
16 changes: 12 additions & 4 deletions SuperSQLInjection/tools/file/FileTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ public static void SaveProxyList(String path, Dictionary<String,Proxy>.ValueColl
{
fs_dir = new FileStream(path, FileMode.Create, FileAccess.Write);
sw = new StreamWriter(fs_dir, Encoding.UTF8);
foreach(Proxy proxy in vals)
String head = "域名或IP,代理端口,代理类型,代理账号,代理密码,是否可用,用时(毫秒),验证时间(毫秒)";
sw.WriteLine(head);
foreach (Proxy proxy in vals)
{
String line = proxy.host + "\t" + proxy.port + "\t" + proxy.proxyType + "\t" + proxy.username + "\t" + proxy.password + "\t" + proxy.isOk + "\t" + proxy.useTime + "\t" + proxy.checkTime;
String line = proxy.host + "," + proxy.port + "," + proxy.proxyType + "," + proxy.username + "," + proxy.password + "," + proxy.isOk + "," + proxy.useTime + "," + proxy.checkTime;
sw.WriteLine(line);
}
}
Expand Down Expand Up @@ -267,12 +269,17 @@ public static Dictionary<String,Proxy> ReadProxyList(String path)
reader = new StreamReader(fs_dir);

String lineStr;

int line = 0;
while ((lineStr = reader.ReadLine()) != null)
{
line++;
if (line == 1) {
continue;
}

if (!lineStr.Equals(""))
{
String[] strs = lineStr.Split('\t');
String[] strs = lineStr.Split(',');
if (strs.Length == 2)
{
Proxy proxy = new Proxy();
Expand Down Expand Up @@ -312,6 +319,7 @@ public static Dictionary<String,Proxy> ReadProxyList(String path)
list.Add(proxy.host + proxy.port, proxy);
}
}

}
}
catch (Exception e)
Expand Down
31 changes: 29 additions & 2 deletions SuperSQLInjection/tools/http/HTTP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,35 @@ public static ServerInfo sendRequestRetry(Boolean isSSL, int tryCount, String ho
if (!isSSL)
{
server = sendHTTPRequest(count, host, port, payload, request, timeout, encoding, foward_302,redirectDoGet);
if (server.code == 0)
{
continue;
}
if (!String.IsNullOrEmpty(main.config.sencondRequest) && main.config.sencondInject)
{
server = sendHTTPRequest(count, host, port, "请求二次注入页面", main.config.sencondRequest, timeout, encoding, foward_302, redirectDoGet);
if (server.code == 0)
{
continue;
}
}
return server;
}
else
{

server = sendHTTPSRequest(count, host, port, payload, request, timeout, encoding, foward_302, redirectDoGet);
if (server.code == 0)
{
continue;
}
if (!String.IsNullOrEmpty(main.config.sencondRequest)&& main.config.sencondInject)
{
server = sendHTTPSRequest(count, host, port, "请求二次注入页面", main.config.sencondRequest, timeout, encoding, foward_302, redirectDoGet);
if (server.code == 0)
{
continue;
}
}
return server;

Expand Down Expand Up @@ -134,12 +150,19 @@ public static ServerInfo sendRequestRetryNoToken(Boolean isSSL, int tryCount, St
if (!isSSL)
{
server = sendHTTPRequest(count, host, port, payload, request, timeout, encoding, foward_302, redirectDoGet);
if (server.code == 0) {
continue;
}
return server;
}
else
{

server = sendHTTPSRequest(count, host, port, payload, request, timeout, encoding, foward_302, redirectDoGet);
if (server.code == 0)
{
continue;
}
return server;

}
Expand Down Expand Up @@ -566,10 +589,13 @@ private static ServerInfo sendHTTPRequest(int count, String host, int port, Stri
if (isupdateEncoding)
{
String cEncoding = getHTMLEncoding("", server.body);


if (!String.IsNullOrEmpty(cEncoding))
{
Encoding cencoding = Encoding.GetEncoding(cEncoding);
server.encoding = cEncoding;//body找到编码
getBody(ref server, ref body_data, ref encod, ref index);
getBody(ref server, ref body_data, ref cencoding, ref index);
}

}
Expand Down Expand Up @@ -1003,8 +1029,9 @@ private static ServerInfo sendHTTPSRequest(int count, String host, int port, Str
String cEncoding = getHTMLEncoding("", server.body);
if (!String.IsNullOrEmpty(cEncoding))
{
Encoding cencoding = Encoding.GetEncoding(cEncoding);
server.encoding = cEncoding;//body找到编码
getBody(ref server, ref body_data, ref encod, ref index);
getBody(ref server, ref body_data, ref cencoding, ref index);
}

}
Expand Down

0 comments on commit cee66af

Please sign in to comment.