Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

protect your application in[startup]

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
i have create this function :p it simple func
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.
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
(Jan 21, 2015 11:32 AM)xVipX Wrote:  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

what are you talking about, your code does nothing but copy a file in a really silly way.
by the way i will ask njq8 best coder in vb.net
hé have compte in HF [xnjq8x] :)
yhe yhe we know him close account he is not "the best" he good


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by premiumdigitalgoodsMar 19, 2020 09:10 PM 26 486 Mar 19, 2020 09:10 PM
Last Post: Nulla Misericordia
[Java] by TennoFeb 3, 2019 04:49 AM 4 307 Feb 3, 2019 04:49 AM
Last Post: Tenno
[C#] by WalkirioOct 14, 2018 07:31 PM 4 364 Oct 14, 2018 07:31 PM
Last Post: 0xDEAD10CC