修改sqlite close

This commit is contained in:
xsean 2025-12-02 11:38:32 +08:00
parent a04260863e
commit 0d9c1b0408
21 changed files with 1208 additions and 1275 deletions

View File

@ -6,5 +6,5 @@ Author: XYZShell
Section: Utilities
Tag: role::developer
Architecture: iphoneos-arm
Version: 0.0.7-10-115+debug
Version: 0.0.7-10-117+debug
Installed-Size: 1700

View File

@ -1 +1 @@
./packages/com.xyzshell.ioscontrol_0.0.7-10-115+debug_iphoneos-arm.deb
./packages/com.xyzshell.ioscontrol_0.0.7-10-117+debug_iphoneos-arm.deb

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
115
117

View File

@ -161,7 +161,7 @@
self.ip = [[XSPhoneInfo sharedInstance] IPAddress] ?: @"";
self.remoteIp = [[XSPhoneInfo sharedInstance] remoteIp] ?: @"";
self.diskSize = [[XSPhoneInfo sharedInstance] IPhoneStatus] ?: @"";
self.message = @"251201-nt-01";
self.message = @"251202-nt-02";
NSDictionary *heartbeatData = [self constructHeartbeatData];
if (!heartbeatData) {

View File

@ -691,45 +691,31 @@ void XSCleanSafari(void) {
void XSCleanKeychain(void) {
NSFileManager* man = [NSFileManager defaultManager];
if ([man fileExistsAtPath:@"/var/Keychains/keychain-2.db"]) {
/*
char *cpCmd = "/usr/bin/cp";
if ([man fileExistsAtPath:@"/bin/cp"]) {
cpCmd = "/bin/cp";
}
char *cmds[] = {
cpCmd,
"/var/Keychains/keychain-2.db",
"/tmp/",
NULL
};
*/
// XSRuncmd(cmds);
XSSystem("cp /var/Keychains/keychain-2.db /tmp/");
sqlite3* ppDb;
sqlite3* ppDb = NULL;
char cmd[256];
if (0 == sqlite3_open("/tmp/keychain-2.db", &ppDb)) {
int rc = sqlite3_open("/tmp/keychain-2.db", &ppDb);
if (rc == SQLITE_OK && ppDb) {
strcpy(cmd, "DELETE FROM cert WHERE agrp<>'apple' and agrp not like '%apple%' and agrp <> 'ichat' and agrp <>'lockdown-identities'");
sqlite3_exec(ppDb, cmd, 0, 0, 0);
strcpy(cmd, "DELETE FROM keys WHERE agrp<>'apple' and agrp not like '%apple%' and agrp <> 'ichat' and agrp <>'lockdown-identities'");
sqlite3_exec(ppDb, cmd, 0, 0, 0);
strcpy(cmd, "DELETE FROM inet WHERE agrp<>'apple' and agrp not like '%apple%' and agrp <> 'ichat' and agrp <>'lockdown-identities'");
sqlite3_exec(ppDb, cmd, 0, 0, 0);
/*
char *cmds1[] = {
cpCmd,
"/tmp/keychain-2.*",
"/var/Keychains/",
NULL
};
*/
//XSRuncmd(cmds1);
// /private/var/tmp/keychain-2.db
sqlite3_close(ppDb);
ppDb = NULL;
XSSystem("cp /tmp/keychain-2.* /var/Keychains/");
} else {
//
if (ppDb) {
sqlite3_close(ppDb);
ppDb = NULL;
}
NSLog(@"XSCleanKeychain: sqlite3_open failed: %d", rc);
}
//free(cpCmd);
}
}

81
ips.txt
View File

@ -1,68 +1,15 @@
172.29.136.13
172.29.108.21
172.29.101.21
172.29.107.26
172.29.136.21
172.29.107.29
172.29.136.10
172.29.108.29
172.29.136.18
172.29.107.22
172.29.107.21
172.29.107.18
172.29.136.30
172.29.136.28
172.29.101.28
172.29.101.26
172.29.136.15
172.29.136.12
172.29.136.14
172.29.136.11
172.29.101.27
172.29.101.19
172.29.101.23
172.29.136.16
172.29.136.19
172.29.101.29
172.29.108.19
172.29.109.20
172.29.109.12
172.29.107.28
172.29.101.16
172.29.109.19
172.29.101.30
172.29.101.20
172.29.107.14
172.29.109.13
172.29.107.27
172.29.109.15
172.29.109.28
172.29.101.13
172.29.107.11
172.29.107.23
172.29.101.24
172.29.101.12
172.29.101.22
172.29.107.13
172.29.107.16
172.29.109.27
172.29.109.21
172.29.109.14
172.29.101.11
172.29.109.33
172.29.109.31
172.29.107.32
172.29.101.25
172.29.108.16
172.29.109.16
172.29.101.31
172.29.107.20
172.29.109.11
172.29.107.30
172.29.107.17
172.29.107.12
172.29.107.25
172.29.109.32
172.29.101.17
172.29.109.24
172.29.101.14
172.29.107.12
172.29.107.13
172.29.107.20
172.29.107.30
172.29.107.28
172.29.107.16
172.29.107.32
172.29.107.11
172.29.107.26
172.29.107.27
172.29.107.23
172.29.107.14
172.29.107.17
172.25.202.160

BIN
packages/251202-nt-01.deb Normal file

Binary file not shown.