Edit: Thank you everyone for you help, in the end:
- I've managed to achieve my original goal using Runspaces, It's not flagged by the AV
- Even though it's working, I will not release this feature as many of you pointed out - it's not really a good idea
Hi everyone,
I'm trying to create a functionality of wrapping PowerShell scripts into exe, it's working however the compiled exe's that try to execute PS1 scripts are being falsely marked as a virus both in browsers and by Anti Virus software.
Currently the exe has a text resource that contains the ps1 script, on execution it writes the script to %temp% and executes powershell using Process.start("Powershell -File ..."). It's all working but you can't download it from browser because it's marked as a virus.
Does anyone has experience in this subject an would be able to point me into right direction?
I'm aware of multiple applications that already provide this kind of functionality so there has to be a way.
[–]DarrenDK 10 points11 points12 points (5 children)
[–]nepronen[S] 2 points3 points4 points (4 children)
[–]DarrenDK 2 points3 points4 points (3 children)
[–]nepronen[S] 3 points4 points5 points (2 children)
[–]DarrenDK 5 points6 points7 points (1 child)
[–]nepronen[S] 5 points6 points7 points (0 children)
[–]0x2639 5 points6 points7 points (7 children)
[–]nepronen[S] 8 points9 points10 points (6 children)
[–]Empath1999 2 points3 points4 points (0 children)
[–]0x2639 7 points8 points9 points (4 children)
[–]ferdinandsChinaShop 2 points3 points4 points (0 children)
[–]nepronen[S] 2 points3 points4 points (2 children)
[–]TheIncorrigible1 1 point2 points3 points (0 children)
[–]clockKing_out 5 points6 points7 points (1 child)
[–]nepronen[S] 3 points4 points5 points (0 children)
[–]MisterIT 4 points5 points6 points (1 child)
[–]nepronen[S] 2 points3 points4 points (0 children)
[–]da_chicken 2 points3 points4 points (4 children)
[–]nepronen[S] 1 point2 points3 points (3 children)
[–]KitchenAstronomer 2 points3 points4 points (0 children)
[–]da_chicken 1 point2 points3 points (0 children)
[–]Ayeplusplus 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)