Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Yesterday at 7:43 PM
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Thursday at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Wednesday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Tips & Tricks
Tips & Tricks Collection of DC
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="||~DxxCxxxx~||" data-source="post: 3454044" data-attributes="member: 137393"><p><strong>Fake Virus</strong></p><p></p><p><img src="http://pigboom.com/wp-content/uploads/2008/05/computer-virus-480.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Ok in this tutorial i'll show you how to creat a .bat file to save in the directory of where the program is to make it look like it just infected u with a virus but all it is is some text. All you need in your window is one command button called Enter.</p><p></p><p>So go ahead and create that.</p><p></p><p>Now for the code...</p><p></p><p></p><p></p><p>[code]Private Sub Command1_Click()</p><p> </p><p> WriteAFile "virus.bat", "@echo off" & vbCrLf & _</p><p> "echo. Deleting All Information..." & vbCrLf & _</p><p> "echo. Cleaning up C:\ Drive..." & vbCrLf & _</p><p> "echo. Virus Complete" & vbCrLf & _</p><p> "Pause" ' Writes the Fake text</p><p></p><p> Shell "virus.bat", vbNormalNoFocus 'Executes the Fake Virus</p><p>End Sub[/code] </p><p>[code]Private Function WriteAFile(Filename1 As String, WhatToWrite As String) ' The function, do not modify it....</p><p> On Error GoTo ErrorControl</p><p> Dim FileType As Integer</p><p> FileType = FreeFile</p><p> Open Filename1 For Output As #FileType</p><p> Print #FileType, WhatToWrite</p><p> Close #FileType</p><p>ErrorControl:</p><p> If Err <> 0 Then</p><p> MsgBox "Wrong File Name or File Path!", vbCritical, "Error"</p><p> End If</p><p>End Function[/code]</p></blockquote><p></p>
[QUOTE="||~DxxCxxxx~||, post: 3454044, member: 137393"] [b]Fake Virus[/b] [IMG]http://pigboom.com/wp-content/uploads/2008/05/computer-virus-480.jpg[/IMG] Ok in this tutorial i'll show you how to creat a .bat file to save in the directory of where the program is to make it look like it just infected u with a virus but all it is is some text. All you need in your window is one command button called Enter. So go ahead and create that. Now for the code... [code]Private Sub Command1_Click() WriteAFile "virus.bat", "@echo off" & vbCrLf & _ "echo. Deleting All Information..." & vbCrLf & _ "echo. Cleaning up C:\ Drive..." & vbCrLf & _ "echo. Virus Complete" & vbCrLf & _ "Pause" ' Writes the Fake text Shell "virus.bat", vbNormalNoFocus 'Executes the Fake Virus End Sub[/code] [code]Private Function WriteAFile(Filename1 As String, WhatToWrite As String) ' The function, do not modify it.... On Error GoTo ErrorControl Dim FileType As Integer FileType = FreeFile Open Filename1 For Output As #FileType Print #FileType, WhatToWrite Close #FileType ErrorControl: If Err <> 0 Then MsgBox "Wrong File Name or File Path!", vbCritical, "Error" End If End Function[/code] [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom