View Full Version : perl login script for authentication....
mia_tech
07-24-2008, 06:40 AM
guys I'm looking for a perl login script to authenticate users to the protected area of the website... I've found a couple but the password resides inside the actual login.pl file, I would like some sort of script that would talk to a backend database like mssql or mysql...
any help appreciated
thanks
you could search perl cgi forum for 'login'. that should give you a script.
bazz
mia_tech
07-24-2008, 08:14 PM
I've seen tons of ppl asking my same question.... but I didn't see many solutions.. although I'm still searching, I would ask: can php run in IIS or does it needs apache?...I'm asking b/c some of the referrals that I found for login are on php...my scenario: IIS, perl, and either MSSQL or mysql...I just need the file and put it together to talk to the DB for authentication and creation of users... if possible I wouldn't want to learn the language just to get this working
thanks in advance
www.pctechtips.org
oesxyl
07-24-2008, 08:36 PM
I've found a couple but the password resides inside the actual login.pl file, I would like some sort of script that would talk to a backend database like mssql or mysql...
you could replace the code where the password is hardcoded with a connection and query to a database. But this answer is as general as the question, :)
about php and IIS, I don't really know, I think it run, but I prefere perl, :).
regards
KevinADC
07-24-2008, 10:35 PM
search script archives, like www.hotscripts.com, look for "login" or "membership" scripts
chaosprime
07-25-2008, 03:01 PM
You can use Perl under IIS. You may find this article useful: http://community.activestate.com/forum-topic/configuring-perl-on-iis-7
I've seen tons of ppl asking my same question.... but I didn't see many solutions.. although I'm still searching, I would ask: can php run in IIS or does it needs apache?...I'm asking b/c some of the referrals that I found for login are on php...my scenario:
this is only 12th on the list having searched for 'login' in the perl forum ;)
http://www.codingforums.com/showthread.php?t=121397&highlight=login
bazz
mia_tech
07-25-2008, 07:15 PM
ok...let me explain first, yes I had looked at that script, but it was not what I needed, I'm still searching for a script, and it is for a project at school in which I have to build a web app that is vulnerable in the way the app handles the session id... so I'm looking for something like the application set a weak session based in something like your name during registration or the email address...sorry if I wasn't more up front
any ways hope you guys can help me
thanks
www.pctechtips.org
chaosprime
07-25-2008, 07:26 PM
Hell, it's much easier than all that. Just set up a PHP install with sessions enabled and session.use_trans_sid turned on in php.ini. Ta-da, insecure sessions.
mia_tech
07-25-2008, 10:31 PM
ok...I opted to go the php way, since I couldn't find the pl script, besides it seems easy to configure with php...I've been following this tutorial suggested by somene here http://www.phpeasystep.com/workshopview.php?id=6, everything seems to work fine, only when I click on the "login" button in the main_login.php page it is giving me an error "PHP Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\checklogin.php on line 10" I don't know much about php, but this I know the mysql_connect() function is trying to open the connection to the mysql server, I checked my credentials for opening the connection and they are the ones used when I installed mysql, yet it's not establishing the connection could someone help me with this?
ohh, and after scanning the host...port 3306 is open so it's listening for connections...
thanks
www.pctechtips.org
chaosprime
07-25-2008, 10:56 PM
Your PHP install was compiled without the mysql package.
mia_tech
07-25-2008, 11:19 PM
ok...I removed php and reinstalled, and still not working so I would ask for a .php file to display in the browser needs the <html> tags at the begining and end of the files or a php file is capable of displaying in the browser with the tags b/c in my case it needs the tags otherwise is just displaying the code in the browser, not sure.
about php establishing connection to the db I've created this simple file that I've found which it only test for connection and display some text but it's not working either...
<?php
$conn = mysql_connect("localhost", "root", "password");
echo "$conn";
?>
by the way I'm able to connect to the mysql from the command... so I know it's working.
thanks
www.pctechtips.org
KevinADC
07-26-2008, 01:04 AM
Move the PHP discussions to the PHP forum.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.