Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
Module Module1 Sub Main() Dim MyDatabase As OleDb.OleDbConnection Dim ConnectToMyDatabase As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=\\SERVER\Database.mdb" MyDatabase = New OleDb.OleDbConnection(ConnectToMyDatabase) MyDatabase.Open() Dim stringx As String stringx = MyDatabase.Table Dim file As String file = "robocopy.exe" Dim args As String args = "C:\test C:\test2 *.* /copyall /mir" Dim username As String username = "Username" Dim pass As SecureString pass = Secure() Dim Dom As String Dom = "DOMAIN" Stop 'Process.Start(file, args, username, pass, Dom) End Sub Public Function Start(fileName As String, arguments As String, userName As String, password As SecureString, domain As String) As Process End Function Public Function Secure() As SecureString Dim pass As String pass = "password" Dim str As New SecureString For x As Integer = 0 To pass.Length - 1 str.AppendChar(pass.Substring(x, 1)) Next Return str End Function End Module
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.