Hack Forums
[.NET] [VB.NET] Self Delete - 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] [VB.NET] Self Delete (/showthread.php?tid=1884574)

Pages: Pages 1 2


[VB.NET] Self Delete - Rvaveo - Nov 3, 2011

Here is the code for self delete:
Code
Dim Info As ProcessStartInfo = New ProcessStartInfo()
Info.Arguments = "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del """ & Application.ExecutablePath.ToString & """"
Info.WindowStyle = ProcessWindowStyle.Hidden
Info.CreateNoWindow = True
Info.FileName = "cmd.exe"
Process.Start(Info)
End

Credits to a guy whom i forgot.


* - wertyl11 - Nov 3, 2011

Thank you for this bro! <3

Was looking for this!


* - Doctor07 - Nov 3, 2011

Thanks alot for this man, nice share indeed! ;D


* - Washi - Nov 3, 2011

Nice share Ultimate, will use it! 👍
I was wondering, who is the one you got the source from?


* - Doctor07 - Nov 3, 2011

(Nov 3, 2011 12:03 PM)TheUnknownProgrammer Wrote:  Nice share Ultimate, will use it! 👍
I was wondering, who is the one you got the source from?

Hmm, Either you're just plain dumb or you didn't read the thread.

(Nov 3, 2011 11:20 AM)Ultimate Coder Wrote:  Credits to a guy whom i forgot.




* - Washi - Nov 3, 2011

Ow sorry :P i feel pretty dumb now ... xD I didn't read the thread well.


* - Doctor07 - Nov 3, 2011

(Nov 3, 2011 12:13 PM)TheUnknownProgrammer Wrote:  Ow sorry :P i feel pretty dumb now ... xD I didn't read the thread well.

As you clearly stated... :L 👍


* - Banksу - Nov 3, 2011

This was posted in the C# section. That would be where you got it from. 😝


* - Fuffu - Nov 3, 2011

Thumbs up for this! Will be helpfull!


* - Stenography - Nov 3, 2011

This feature called 'melt' in most of the crypters..


* - marvinn - Nov 3, 2011

(Nov 3, 2011 12:50 PM)PolarX Wrote:  This feature called 'melt' in most of the crypters..

Thats true but actually it is self deleting :p byw, nice post :)


* - infomiho - Nov 3, 2011

Don't get me wrong but this has been posted in one form or another at least 5 times. :)


* - яιи - Nov 3, 2011

Nice snippet you got here buddy.

I saw this method before but not with this arguments, in this example you're using the ping command to do the job
"-n 1" means that it will ping just once.
"-w 3000" means that it will wait 3sec before performing the ping.
"> Nul" this will hide the output of the ping command

also for Application.ExecutablePath.ToString(), i prefer using reflection to get the path of your program in case you're not using forms

Code
System.Reflection.Assembly.GetExecutingAssembly.Location



* - Rvaveo - Nov 4, 2011

(Nov 3, 2011 12:24 PM)Вanksy Wrote:  This was posted in the C# section. That would be where you got it from. 😝

Nope.I got it from using google.😁

(Nov 3, 2011 03:11 PM)infomiho Wrote:  Don't get me wrong but this has been posted in one form or another at least 5 times. :)

Well it can not be posted in a form because there is no post button or textbox to write it in.🤣🤣🤣


* - infomiho - Nov 4, 2011

(Nov 4, 2011 03:18 AM)Ultimate Coder Wrote:  Nope.I got it from using google.😁


Well it can not be posted in a form because there is no post button or textbox to write it in.🤣🤣🤣
You're joking right ? :D

^^ well good one