php coders : need a little help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flashfreak
    Confirmed User
    • Jun 2002
    • 4396

    #1

    php coders : need a little help

    How can I retrieve the username : password from a paysite members area in PHP?
    I want to make a protection script, pls help.

    Thanks!
    SEO Mogul | ICQ: 163671223
  • Libertine
    sex dwarf
    • May 2002
    • 17860

    #2
    Ehm... what exactly do you mean by retrieve?
    Retrieve it from the .htpasswd file, from a database or from the user?
    /(bb|[^b]{2})/

    Comment

    • nuclei
      old school fart
      • May 2001
      • 1015

      #3
      in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrupted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
      The next generation of SEO

      Comment

      • nuclei
        old school fart
        • May 2001
        • 1015

        #4
        Originally posted by nuclei
        in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrypted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
        The next generation of SEO

        Comment

        • nuclei
          old school fart
          • May 2001
          • 1015

          #5
          well hell, that was sposed to be an Edit to change encrupted to encrypted....


          must be getting early or late
          The next generation of SEO

          Comment

          • flashfreak
            Confirmed User
            • Jun 2002
            • 4396

            #6
            Originally posted by punkworld
            Ehm... what exactly do you mean by retrieve?
            Retrieve it from the .htpasswd file, from a database or from the user?
            if that helps: the members area is ccbill protected.. I don't know how they store the username : password...
            SEO Mogul | ICQ: 163671223

            Comment

            • flashfreak
              Confirmed User
              • Jun 2002
              • 4396

              #7
              Originally posted by nuclei
              in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrupted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
              thanks, I'l try that.. after all I don't need the password, since usernames are unique. I'm trying to protect the members area from password listing sites, so the user doesn't log from 3 different IPs in 3 hours... stuff like this...
              Last edited by flashfreak; 04-01-2003, 07:15 AM.
              SEO Mogul | ICQ: 163671223

              Comment

              • sneaker
                So Fucking Banned
                • Dec 2002
                • 251

                #8
                Look for a htaccess auth class module for php, there are a few out there try www.phpclasses.org

                Comment

                • nuclei
                  old school fart
                  • May 2001
                  • 1015

                  #9
                  Originally posted by flashfreak

                  thanks, I'l try that.. after all I don't need the password, since usernames are unique. I'm trying to protect the members area from password listing sites, so the user doesn't log from 3 different IPs in 3 hours... stuff like this...

                  welcome.
                  The next generation of SEO

                  Comment

                  Working...