C
C#5mo ago
Komitet

✅ Access to the path 'C:\Users\Administarto\AppData\Local\Application Data' is denied

Hello I want to create fivem cheat scanner and I added to source file location but I have this serror
35 Replies
Komitet
KomitetOP5mo ago
I'm running with admin and etc but nothing lang: c#
List<string> stringsfileNameToFind = new List<string>()
{
"d3d10.dll",
"d3d10(1).dll"
};

string informacoesEncontradas = "";
string directoryPath = @"C:\\Users\\";
string rootPath = Path.GetPathRoot(directoryPath);

if (File.Exists("C:\\explorer.txt"))
{
string contents = File.ReadAllText("C:\\explorer.txt");

List<string> stringsEncontradas = new List<string>(); // This list is empty, so it won't have any effect on the subsequent logic

string nomesPersonalizadosConcatenados = "";
foreach (string stringEncontrada in stringsEncontradas) // Since stringsEncontradas is empty, this loop won't execute
{
string nomePersonalizado = nomesPersonalizados.ContainsKey(stringEncontrada) ? nomesPersonalizados[stringEncontrada] : stringEncontrada; // The 'nomesPersonalizados' dictionary is not defined in the provided code
nomesPersonalizadosConcatenados += nomePersonalizado + ", ";
}

foreach (string fileNameToFind in stringsfileNameToFind)
{
string[] directories = Directory.GetDirectories(directoryPath);
string[] foundFiles = Directory.GetFiles(directoryPath, "*.*", SearchOption.AllDirectories);
if (foundFiles.Length > 0)
{
informacoesEncontradas += $"File '{fileNameToFind}' found at:\n";
foreach (string filePath in foundFiles)
{
informacoesEncontradas += filePath + "\n";
}
}
List<string> stringsfileNameToFind = new List<string>()
{
"d3d10.dll",
"d3d10(1).dll"
};

string informacoesEncontradas = "";
string directoryPath = @"C:\\Users\\";
string rootPath = Path.GetPathRoot(directoryPath);

if (File.Exists("C:\\explorer.txt"))
{
string contents = File.ReadAllText("C:\\explorer.txt");

List<string> stringsEncontradas = new List<string>(); // This list is empty, so it won't have any effect on the subsequent logic

string nomesPersonalizadosConcatenados = "";
foreach (string stringEncontrada in stringsEncontradas) // Since stringsEncontradas is empty, this loop won't execute
{
string nomePersonalizado = nomesPersonalizados.ContainsKey(stringEncontrada) ? nomesPersonalizados[stringEncontrada] : stringEncontrada; // The 'nomesPersonalizados' dictionary is not defined in the provided code
nomesPersonalizadosConcatenados += nomePersonalizado + ", ";
}

foreach (string fileNameToFind in stringsfileNameToFind)
{
string[] directories = Directory.GetDirectories(directoryPath);
string[] foundFiles = Directory.GetFiles(directoryPath, "*.*", SearchOption.AllDirectories);
if (foundFiles.Length > 0)
{
informacoesEncontradas += $"File '{fileNameToFind}' found at:\n";
foreach (string filePath in foundFiles)
{
informacoesEncontradas += filePath + "\n";
}
}
Komitet
KomitetOP5mo ago
No description
Buddy
Buddy5mo ago
What is a cheat scanner?
Komitet
KomitetOP5mo ago
the scanner is for fivem searching for sus files, cheats strings etc
Buddy
Buddy5mo ago
So an anti-cheat of sorts?
Komitet
KomitetOP5mo ago
yea but scanning computer
Komitet
KomitetOP5mo ago
example
No description
tera
tera5mo ago
probably need admin permissions to read those files
Komitet
KomitetOP5mo ago
I have admin perms
tera
tera5mo ago
and program run as admin?
Komitet
KomitetOP5mo ago
yea
Komitet
KomitetOP5mo ago
fixed
No description
Komitet
KomitetOP5mo ago
😮 but lookin in one folder
Komitet
KomitetOP5mo ago
No description
Komitet
KomitetOP5mo ago
this not working only Is it possible not to scan this folder?
Buddy
Buddy5mo ago
Do you expect users to install that?
Komitet
KomitetOP5mo ago
yea
Buddy
Buddy5mo ago
admin is required modify app.manifest
Komitet
KomitetOP5mo ago
and what I must edit
Komitet
KomitetOP5mo ago
app config?
No description
Buddy
Buddy5mo ago
no.
Buddy
Buddy5mo ago
Application manifests - Win32 apps
An application manifest is an XML file that describes and identifies the shared and private side-by-side assemblies that an application should bind to at run time.
Komitet
KomitetOP5mo ago
I dont have app manifest
Komitet
KomitetOP5mo ago
No description
Komitet
KomitetOP5mo ago
ok I add not working :/
Buddy
Buddy5mo ago
into your csproj, add <ApplicationManifest>app.manifest</ApplicationManifest> if the app.manifest file exists
Komitet
KomitetOP5mo ago
No description
Komitet
KomitetOP5mo ago
No description
Komitet
KomitetOP5mo ago
wth
Buddy
Buddy5mo ago
Don't blindly copy paste you should also have a template for app.manifest
Komitet
KomitetOP5mo ago
I have wait
Komitet
KomitetOP5mo ago
No description
No description
Buddy
Buddy5mo ago
use requireAdministrator for level highestAvailable is only equivalent to requireAdministrator if the current user is an Administrator note $newproject
MODiX
MODiX5mo ago
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework. .NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended. https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Komitet
KomitetOP5mo ago
not work
Want results from more Discord servers?
Add your server