First of all, we should understand that each control or object in VB are able to run numerous kinds of events. Among the events are loading a form, clicking on a command button, pressing a key on the keyboard or dragging an object and more. For each event, you need to write an event procedure so that it can perform an action or a series of actions. To start writing code for an event procedure, you need to double-click an object to enter the VB code window.
For example, if you want to write code for the event of clicking a command button, you double-click the command button and enter the codes in the event procedure that appears in the code window, as shown in Figure 4. Figure 4.
End Sub. The keyword Sub actually stands for a sub procedure that made up a part of all the procedures in a program or a module. The program code is made up of a number of VB statements that set certain properties or trigger some actions. For example, the statement Form1. Show means to show the form with the name Form1, Iabel1. This is a counter which start counting after the user click on a command button. Back in my own lab, I used Visual Studio — you can use your favorite IDE — to code a malicious keylogger tool in under 30 minutes.
If I were a real hacker, I would define targets i. I compiled my code, and then checked the exe against Virustotal. Click here to see the complete analysis page at Virustotal. Skip navigation. Inside Out Security. Oded Awaskar. Want to learn ransomware basics and earn a CPE credit?
Try our free course. ToString ; if line. Contains "Gmail" line. Match pass ;. Data Security August 31, By Oded Awaskar. How to: Write Text to Files Demonstrates how to write to text files. How to: Append to Text Files Demonstrates how to append text to a text file. How to: Write to Binary Files Demonstrates how to write to a binary file. StreamWriter object. FileSystem Describes the My. FileSystem object and its methods and properties. Reading from Files Explains how to perform tasks that involve reading from files.
Creating, Deleting, and Moving Files and Directories Explains how to perform tasks that involve creating, deleting, moving, and renaming files and directories.
0コメント