mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-06 00:13:33 +00:00
Compare commits
3 Commits
ad035adae6
...
02a0b1671b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02a0b1671b | ||
|
|
90f730c3d4 | ||
|
|
e25464cfce |
@@ -390,7 +390,7 @@ function monitorinfo()
|
||||
}
|
||||
else
|
||||
{
|
||||
ch.stdin.write('ps -e | grep X\nexit\n');
|
||||
ch.stdin.write("ps -e -o comm,cgroup|egrep '^X.*(-|::/user.slice.*)$'\nexit\n");
|
||||
}
|
||||
ch.waitExit();
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ function windows_registry()
|
||||
var sid = user;
|
||||
if (typeof (user) == 'string')
|
||||
{
|
||||
// Try to find the Session ID for the specified domain user
|
||||
// Try to find the Session ID for the specified local user
|
||||
var r = this.QueryKey(this.HKEY.LocalMachine, 'SAM\\SAM\\Domains\\Account\\Users\\Names\\' + user);
|
||||
sid = r.default._type;
|
||||
}
|
||||
@@ -328,8 +328,11 @@ function windows_registry()
|
||||
{
|
||||
if(u.subkeys[i].endsWith('-' + sid))
|
||||
{
|
||||
// Try to find the Descriptor Key with the SID that we found
|
||||
return (u.subkeys[i]);
|
||||
if (this.QueryKey(this.HKEY.Users, u.subkeys[i] + '\\Volatile Environment', 'USERDOMAIN') == domain)
|
||||
{
|
||||
// Try to find the Descriptor Key with the SID that we found
|
||||
return (u.subkeys[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user