Skip to content

Commit

Permalink
更新b1.6
Browse files Browse the repository at this point in the history
LYXOfficial committed May 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 987887a commit 95a9d63
Showing 17 changed files with 615 additions and 198 deletions.
154 changes: 71 additions & 83 deletions NTD.ui
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>413</width>
<height>446</height>
<width>340</width>
<height>376</height>
</rect>
</property>
<property name="font">
@@ -58,6 +58,58 @@
<property name="bottomMargin">
<number>5</number>
</property>
<item row="0" column="3">
<widget class="QLabel" name="label_5">
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="StudentRunning">
<property name="text">
<string>极域:&lt;span style=&quot;color:grey&quot;&gt;检测中&lt;/span&gt;</string>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="GBing">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>广播:&lt;span style=&quot;color:grey&quot;&gt;检测中&lt;/span&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_6">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="2" column="0" colspan="4">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
@@ -151,58 +203,6 @@
</layout>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="GBing">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>广播:&lt;span style=&quot;color:grey&quot;&gt;检测中&lt;/span&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="StudentRunning">
<property name="text">
<string>极域:&lt;span style=&quot;color:grey&quot;&gt;检测中&lt;/span&gt;</string>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLabel" name="label_5">
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_6">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0" colspan="4">
<widget class="QGroupBox" name="groupBox">
<property name="title">
@@ -256,27 +256,8 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="EnableTDBar">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>解禁工具栏</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="KillTD">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>100</width>
@@ -291,7 +272,7 @@
<item row="0" column="2">
<widget class="QPushButton" name="KillCurrent">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>杀掉进程↓</string>
@@ -326,17 +307,17 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="CopyLink">
<property name="text">
<string>复制极域链接</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="UninstallTopDomain">
<property name="text">
<string>卸载极域</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLineEdit" name="TDPasswd">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
@@ -352,6 +333,13 @@
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QPushButton" name="UninstallTopDomain">
<property name="text">
<string>卸载极域</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_3">
@@ -474,8 +462,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>413</width>
<height>26</height>
<width>340</width>
<height>22</height>
</rect>
</property>
</widget>
35 changes: 35 additions & 0 deletions NTDTools.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <windows.h>
#include <cstdio>
HOOKPROC HookProc(int nCode,WPARAM wParam,LPARAM lParam){
return 0;
}
@@ -28,6 +29,40 @@ void SetWindowNoPref(HWND hwnd){
SetWindowPos(hwnd,HWND_NOTOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
Sleep(20);
}
BOOL GetMythwarePasswordFromRegedit(char *str) {
HKEY retKey;
BYTE retKeyVal[MAX_PATH * 10] = { 0 };
DWORD nSize = MAX_PATH * 10;
LONG ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\TopDomain\\e-Learning Class\\Student", 0, KEY_QUERY_VALUE | KEY_WOW64_32KEY, &retKey);
if (ret != ERROR_SUCCESS) {
return FALSE;
}
ret = RegQueryValueExA(retKey, "knock1", NULL, NULL, (LPBYTE)retKeyVal, &nSize);
RegCloseKey(retKey);
if (ret != ERROR_SUCCESS) {
return FALSE;
}
for (int i = 0; i < int(nSize); i += 4) {
retKeyVal[i + 0] = (retKeyVal[i + 0] ^ 0x50 ^ 0x45);
retKeyVal[i + 1] = (retKeyVal[i + 1] ^ 0x43 ^ 0x4c);
retKeyVal[i + 2] = (retKeyVal[i + 2] ^ 0x4c ^ 0x43);
retKeyVal[i + 3] = (retKeyVal[i + 3] ^ 0x45 ^ 0x50);
}
for (int i = 0; i < int(nSize); i += 1) {
printf("%x ", retKeyVal[i]);
if (i % 8 == 0) puts("");
}
int sum = 0;
for (int i = 0; i < int(nSize); i += 1) {
if (retKeyVal[i + 1] == 0) {
*(str + sum) = retKeyVal[i];
sum++;
if (retKeyVal[i] == 0) break;
}
}
return TRUE;
}

int main(){
return 0;
}
Loading

0 comments on commit 95a9d63

Please sign in to comment.