![]() |
|
[.NET] protect your application in[startup] - 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: [.NET] protect your application in[startup] (/showthread.php?tid=4647782) |
protect your application in[startup] - xVipX - Jan 21, 2015 hey many of y add his application or server in startup but the antivrus or user pc delte your app so this code wll help you tp protect your app your app will use the use the app in startup by FileStream !! just tested 'writed by xvipx Dim fs As IO.FileStream fs = New IO.FileStream(Environment.GetFolderPath(7) & "\" & "!name.exe", IO.FileMode.CreateNew) Dim b As Byte() = IO.File.ReadAllBytes(Reflection.Assembly.GetEntryAssembly.Location) fs.Write(b, 0, b.Length) fs.Flush() good luck * - xVipX - Jan 21, 2015 i have create this function :p it simple func * - nathan72389 - Jan 21, 2015 there is no real use for the whole file stream. if i was going to do this i would of just use io.file.copy but i guess that is just too easy. * - xVipX - Jan 21, 2015 but wil copy him self one time els if you use timer or somthing like that ... my code will stop delte of apps from startup very simple * - nathan72389 - Jan 21, 2015 (Jan 21, 2015 11:32 AM)xVipX Wrote: but wil copy him self one time els if you use timer or somthing like that ... what are you talking about, your code does nothing but copy a file in a really silly way. * - xVipX - Jan 21, 2015 by the way i will ask njq8 best coder in vb.net hé have compte in HF [xnjq8x] :) * - Only3 - Jan 21, 2015 yhe yhe we know him close account he is not "the best" he good |