Advertisement
Guest User

Mikron Coin Generator

a guest
Jan 14th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '-------------------------------------------------------------------------------------------
  2. '___  ____ _                      _                   _                   _
  3. '|  \/  (_) |                    (_)                 (_)                 (_)
  4. '| .  . |_| | ___ __ ___  _ __    _  ___     ___ ___  _ _ __    _ __ ___  _ _ __   ___ _ __
  5. '| |\/| | | |/ / '__/ _ \| '_ \  | |/ _ \   / __/ _ \| | '_ \  | '_ ` _ \| | '_ \ / _ \ '__|
  6. '| |  | | |   <| | | (_) | | | |_| | (_) | | (_| (_) | | | | | | | | | | | | | | |  __/ |
  7. '\_|  |_/_|_|\_\_|  \___/|_| |_(_)_|\___/   \___\___/|_|_| |_| |_| |_| |_|_|_| |_|\___|_|
  8. '-------------------------------------------------------------------------------------------
  9. ' This is an example program how to use the internet explorer from vbscript
  10. ' Never use it, only read and learn
  11. ' Without gui
  12. '-------------------------------------------------------------------------------------------
  13. 'Fill with your mikron address
  14. Address = ""
  15. '-------------------------------------------------------------------------------------------
  16.  
  17. Accounts = Array("Username1", "Username2", "Username3")
  18. Password = "" ' Use this password for all accounts
  19.  
  20. Username = ""
  21. ArticlesToRate = 100 'How many articles to rate in one session?
  22. DelayBetweenArticles = 1000 'Seconds to delay between two articles
  23. ShowBrowser = True 'You can hide it, if not needed...
  24. '------------------------------------------------------------------
  25. ' Change if needed
  26. RateArticles = True
  27. LikeButtonClass = "lbg-style3"
  28. LogoutUrl="https://kriptoakademia.com/kilepes"
  29. LoginURL = "https://kriptoakademia.com/belepes"
  30.  
  31. SiteMapUrl = "Sitemap.xml"
  32.  
  33.  
  34. 'if Address = "" Then Address = InputBox( "Enter Your mikron address:" )
  35. 'if Address = "" Then WScript.Quit
  36.  
  37. Set fso = CreateObject("Scripting.FileSystemObject")
  38. If (fso.FileExists("Sitemap.xml")) Then
  39.     SiteMapUrl = "Sitemap.xml"
  40. Else
  41.   dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")
  42.   dim bStrm: Set bStrm = createobject("Adodb.Stream")
  43.   xHttp.Open "GET", "https://kriptoakademia.com/sitemap.xml", False
  44.   xHttp.Send
  45.   with bStrm
  46.       .type = 1
  47.       .open
  48.       .write xHttp.responseBody
  49.       .savetofile "Sitemap.xml", 2
  50.   end with
  51.   SiteMapUrl = "Sitemap.xml"
  52. End If
  53.  
  54.  
  55. UserNameField = "username-247"
  56. PasswordField = "user_password-247"
  57. SubmitButton = "um-submit-btn"
  58.  
  59. articles=0
  60. ok = False
  61.  
  62.  
  63. Set WshShell = CreateObject("WScript.Shell")
  64. WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8"
  65. WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2"
  66. WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1"
  67.  
  68. Set xmlDoc = createobject("Microsoft.XMLDOM")
  69. Set IE = CreateObject("InternetExplorer.Application")
  70. IE.Visible = ShowBrowser
  71. IE.navigate LogoutURL
  72.  
  73. myKey = "HKCU\Software\Mikron\progress"
  74.  
  75. progress = ReadFromRegistry( myKey, 1)
  76. xmltag = "loc"
  77. xmlDoc.async = "false"
  78. xmlDoc.load (SiteMapUrl)
  79.  
  80. While IE.Busy
  81.   WScript.Sleep 50
  82. Wend
  83.  
  84. While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  85.  
  86. For Each account In accounts
  87.  
  88.   IE.navigate LogoutURL
  89.  
  90.   While IE.Busy
  91.     WScript.Sleep 50
  92.   Wend
  93.  
  94.   While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  95.  
  96.   IE.navigate LoginURL
  97.   While IE.Busy
  98.     WScript.Sleep 50
  99.   Wend
  100.  
  101.   While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  102.  
  103.   Set ipf = IE.document.GetElementById(UserNameField)
  104.   ipf.Value = account
  105.   Set ipf = IE.document.GetElementById(PasswordField)
  106.   ipf.Value = Password
  107.   Set ipf = IE.document.GetElementById(SubmitButton)
  108.   WScript.Sleep 1000
  109.   ipf.Click
  110.  
  111.   While IE.Busy
  112.     WScript.Sleep 50
  113.   Wend
  114.  
  115.   While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  116.  
  117.   IE.navigate "https://kriptoakademia.com/mikron"
  118.   While IE.Busy
  119.     WScript.Sleep 50
  120.   Wend
  121.   While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  122.  
  123.  
  124.   Set xmlCol = xmldoc.getElementsByTagName(xmltag)
  125.   ok = True
  126.  
  127.   For Each Elem In xmlCol
  128.     If ok Then
  129.       While IE.Busy
  130.         WScript.Sleep 50
  131.       Wend
  132.       max = xmlCol.length-1
  133.       min = 1
  134.       o = 0
  135.       while o=0:
  136.         progress = progress + 1
  137.         ind = progress
  138.         if InStr(xmlCol(ind).firstChild.nodeValue, "2018") Then
  139.             o=1
  140.             IE.navigate(xmlCol(ind).firstChild.nodeValue)
  141.         Else
  142.             if InStr(xmlCol(ind).firstChild.nodeValue, "2017") Then
  143.                 o=1
  144.                 IE.navigate(xmlCol(ind).firstChild.nodeValue)
  145.             End if
  146.         End if
  147.       Wend
  148.       While IE.Busy
  149.         WScript.Sleep 50
  150.       Wend
  151.       While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  152.       If RateArticles Then
  153.           On Error Resume Next
  154.           Set links = IE.Document.QuerySelector("a." & LikeButtonClass)
  155.           if Err.number=0 Then
  156.             links.Click
  157.             WScript.Sleep 1000
  158.             While IE.Busy
  159.               WScript.Sleep 50
  160.             Wend
  161.             While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  162.             articles = articles + 1
  163.             WScript.Sleep DelayBetweenArticles
  164.           else
  165.           Err.clear
  166.         end if
  167.         On Error Goto 0
  168.       End If
  169.       WshShell.RegWrite myKey, progress, "REG_DWORD"
  170.       If articles > ArticlesToRate Then
  171.         Exit For
  172.       End If
  173.     End If
  174.   Next
  175.   if Address<>"" Then
  176.     IE.navigate "https://kriptoakademia.com/mikron"
  177.     While IE.Busy
  178.       WScript.Sleep 50
  179.     Wend
  180.     While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  181.  
  182.     Set elems = IE.document.QuerySelector( "div.mikron-details-value" )
  183.     mkr = elems.innerText
  184.     Set ipf = IE.document.GetElementById("address")
  185.     ipf.Value = Address
  186.     Set ipf = IE.document.GetElementById("amount")
  187.     ipf.Value = mkr
  188.     Set elems = IE.document.QuerySelector( "button[type='submit'].btn-primary" )
  189.     elems.Click
  190.     While IE.Busy
  191.       WScript.Sleep 50
  192.     Wend
  193.     While IE.ReadyState <> 4 : WScript.Sleep 100 : Wend
  194.     WScript.Sleep 5000
  195.   End If
  196.   IE.Quit
  197.   Set IE = Nothing
  198.   WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8"
  199.   WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2"
  200.   WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1"
  201.   Set IE = CreateObject("InternetExplorer.Application")
  202.   IE.Visible = ShowBrowser
  203.   articles = 0
  204.  
  205. Next
  206.  
  207. IE.Quit
  208. Set WshShell = Nothing
  209. Set IE = Nothing
  210. Set xmlCol = Nothing
  211. Set xmlDoc = Nothing
  212.  
  213. Function RandomString( ByVal strLen )
  214.     Dim str, min, max
  215.  
  216.     Const LETTERS = "abcdefghijklmnopqrstuvwxyz0123456789"
  217.     min = 1
  218.     max = Len(LETTERS)
  219.  
  220.     Randomize
  221.     For i = 1 to strLen
  222.         str = str & Mid( LETTERS, Int((max-min+1)*Rnd+min), 1 )
  223.     Next
  224.     RandomString = str
  225. End Function
  226.  
  227. Function ReadFromRegistry (strRegistryKey, strDefault )
  228.     Dim WSHShell, value
  229.     On Error Resume Next
  230.     Set WSHShell = CreateObject("WScript.Shell")
  231.     value = WSHShell.RegRead( strRegistryKey )
  232.     if err.number <> 0 then
  233.         readFromRegistry= strDefault
  234.     else
  235.         readFromRegistry=value
  236.     end if
  237.     Set WSHShell = nothing
  238. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement