Auto Internet


SUBMITTED BY: Guest

DATE: May 2, 2013, 10:51 a.m.

FORMAT: Text only

SIZE: 2.2 kB

HITS: 1105

  1. Function Ping(strHost)
  2. Dim oPing, oRetStatus, bReturn
  3. Set oPing = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery("select * from Win32_PingStatus where address='" & strHost & "'")
  4. For Each oRetStatus In oPing
  5. If IsNull(oRetStatus.StatusCode) Or oRetStatus.StatusCode <> 0 Then
  6. bReturn = False
  7. ' WScript.Echo "Status code is " & oRetStatus.StatusCode
  8. Else
  9. bReturn = True
  10. ' Wscript.Echo "Bytes = " & vbTab & oRetStatus.BufferSize
  11. ' Wscript.Echo "Time (ms) = " & vbTab & oRetStatus.ResponseTime
  12. ' Wscript.Echo "TTL (s) = " & vbTab & oRetStatus.ResponseTimeToLive
  13. End If
  14. Set oRetStatus = Nothing
  15. Next
  16. Set oPing = Nothing
  17. Ping = bReturn
  18. End Function
  19. Set obj = CreateObject("WScript.Shell")
  20. do
  21. hostring = "google.com"
  22. If Ping(hostring) Then
  23. Else
  24. obj.Run("netsh wlan connect name=Eq>E.txt")
  25. If Ping(hostring) Then
  26. Else
  27. obj.Run("netsh wlan connect name=wireless@bs")
  28. If Ping(hostring) Then
  29. Else
  30. Wscript.Sleep 2000
  31. obj.run("chrome")
  32. Wscript.sleep 2000
  33. obj.run("chrome")
  34. wscript.sleep 2000
  35. obj.SendKeys "http://10.166.250.5/termsAuth/index.htm?www.google.com/"
  36. obj.SendKeys "{ENTER}"
  37. WScript.sleep 3000
  38. obj.SendKeys "{TAB}"
  39. obj.SendKeys " "
  40. obj.SendKeys "{TAB}"
  41. obj.SendKeys " "
  42. WScript.sleep 3000
  43. obj.SendKeys "^a"
  44. obj.SendKeys "2012LiHX"
  45. obj.sendKeys "{TAB}"
  46. obj.SendKeys "^a"
  47. obj.SendKeys "xuan1624"
  48. obj.SendKeys "{ENTER}"
  49. WScript.sleep 2000
  50. obj.SendKeys "%{F4}"
  51. WScript.Sleep 2000
  52. obj.SendKeys "%{F4}"
  53. obj.sendkeys "{ESC}"
  54. End If
  55. End If
  56. End If
  57. WScript.sleep 6000000
  58. loop

comments powered by Disqus