Advertisement
Guest User

Mikron.io coin generator without gui

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