Skip to content

Commit

Permalink
update20181114
Browse files Browse the repository at this point in the history
update20181114
  • Loading branch information
shack2 committed Nov 13, 2018
1 parent b8c3686 commit 1c2371d
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 173 deletions.
6 changes: 3 additions & 3 deletions SuperSQLInjection/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 28 additions & 9 deletions SuperSQLInjection/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Amib.Threading;
using System.Management;
using System.Runtime.InteropServices;
using Microsoft.Win32;

namespace SuperSQLInjection
{
Expand Down Expand Up @@ -169,25 +170,34 @@ public void HttpDownloadFile(string url, string path)

public static String getSid()
{
//获得系统唯一号,系统安装id和mac组合
String sid = Environment.OSVersion + "_";

String sid = "";
try
{
//获得系统名称
RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion");
sid = rk.GetValue("ProductName").ToString();
rk.Close();
//获得系统唯一号,系统安装id和mac组合
sid += "_";

var officeSoftware = new ManagementObjectSearcher("SELECT ID, ApplicationId, PartialProductKey, LicenseIsAddon, Description, Name, OfflineInstallationId FROM SoftwareLicensingProduct where PartialProductKey <> null");
var result = officeSoftware.Get();
foreach (var item in result)
{
String c = item.GetPropertyValue("name").ToString();

if (item.GetPropertyValue("name").ToString().StartsWith("Windows"))
{

sid+=item.GetPropertyValue("OfflineInstallationId").ToString()+"__";
sid+=item.GetPropertyValue("OfflineInstallationId").ToString()+"_";
break;
}
}

}
catch (Exception e) {
sid += "ex__";
sid += "ex_";
}
try
{
Expand All @@ -205,12 +215,12 @@ public static String getSid()
}
catch
{
sid += "ex__" + System.Guid.NewGuid();
sid += "ex_" + System.Guid.NewGuid();
}
return sid;
}

public static int version = 20180923;
public static int version = 20181114;
public static string versionURL = "http://www.shack2.org/soft/getNewVersion?ENNAME=SSuperSQLInjection&NO=" + URLEncode.UrlEncode(getSid()) + "&VERSION=" + version;
//检查更新
public void checkUpdate()
Expand Down Expand Up @@ -3422,10 +3432,19 @@ public void getDataValueByBoolByMySQL(Object opam)
{
String tmp_va_payload = MySQL5.ord_value.Replace("{data}", data_payload).Replace("{index}", i + "").Replace("{columns}", columnName);
String plen = MySQL5.ver_length.Replace("{data}", tmp_va_payload);

//MySQL多字节ord
int mu_payload_len = 0;
//MySQL多字节ord,先判断ord后的长度,在取每一个的值
if (config.keyType.Equals(KeyType.Time))
{
mu_payload_len = getValue(MySQL5.getBoolCountBySleep(MySQL5.char_len.Replace("{data}", tmp_va_payload), config.maxTime), 2, 8);
}
else
{
mu_payload_len = getValue(plen,2,8);
}

//判断ord转换后的字符长度
int mu_payload_len = getValue(plen, 2, 8);

int m_index = 1;
String[] ver_tmp = new String[mu_payload_len];
while (m_index <= mu_payload_len)
Expand Down
Loading

0 comments on commit 1c2371d

Please sign in to comment.