修改sqlite close
This commit is contained in:
parent
a04260863e
commit
0d9c1b0408
@ -6,5 +6,5 @@ Author: XYZShell
|
|||||||
Section: Utilities
|
Section: Utilities
|
||||||
Tag: role::developer
|
Tag: role::developer
|
||||||
Architecture: iphoneos-arm
|
Architecture: iphoneos-arm
|
||||||
Version: 0.0.7-10-115+debug
|
Version: 0.0.7-10-117+debug
|
||||||
Installed-Size: 1700
|
Installed-Size: 1700
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -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.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
115
|
117
|
||||||
@ -161,7 +161,7 @@
|
|||||||
self.ip = [[XSPhoneInfo sharedInstance] IPAddress] ?: @"";
|
self.ip = [[XSPhoneInfo sharedInstance] IPAddress] ?: @"";
|
||||||
self.remoteIp = [[XSPhoneInfo sharedInstance] remoteIp] ?: @"";
|
self.remoteIp = [[XSPhoneInfo sharedInstance] remoteIp] ?: @"";
|
||||||
self.diskSize = [[XSPhoneInfo sharedInstance] IPhoneStatus] ?: @"";
|
self.diskSize = [[XSPhoneInfo sharedInstance] IPhoneStatus] ?: @"";
|
||||||
self.message = @"251201-nt-01";
|
self.message = @"251202-nt-02";
|
||||||
|
|
||||||
NSDictionary *heartbeatData = [self constructHeartbeatData];
|
NSDictionary *heartbeatData = [self constructHeartbeatData];
|
||||||
if (!heartbeatData) {
|
if (!heartbeatData) {
|
||||||
|
|||||||
@ -691,45 +691,31 @@ void XSCleanSafari(void) {
|
|||||||
void XSCleanKeychain(void) {
|
void XSCleanKeychain(void) {
|
||||||
NSFileManager* man = [NSFileManager defaultManager];
|
NSFileManager* man = [NSFileManager defaultManager];
|
||||||
if ([man fileExistsAtPath:@"/var/Keychains/keychain-2.db"]) {
|
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/");
|
XSSystem("cp /var/Keychains/keychain-2.db /tmp/");
|
||||||
sqlite3* ppDb;
|
sqlite3* ppDb = NULL;
|
||||||
char cmd[256];
|
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'");
|
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);
|
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'");
|
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);
|
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'");
|
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);
|
sqlite3_exec(ppDb, cmd, 0, 0, 0);
|
||||||
/*
|
|
||||||
char *cmds1[] = {
|
// 关键:关闭数据库,释放 /private/var/tmp/keychain-2.db 句柄
|
||||||
cpCmd,
|
sqlite3_close(ppDb);
|
||||||
"/tmp/keychain-2.*",
|
ppDb = NULL;
|
||||||
"/var/Keychains/",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
//XSRuncmd(cmds1);
|
|
||||||
|
|
||||||
XSSystem("cp /tmp/keychain-2.* /var/Keychains/");
|
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
81
ips.txt
@ -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.107.25
|
||||||
172.29.109.32
|
172.29.107.12
|
||||||
172.29.101.17
|
172.29.107.13
|
||||||
172.29.109.24
|
172.29.107.20
|
||||||
172.29.101.14
|
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
BIN
packages/251202-nt-01.deb
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user