Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post [CQ] Ich Weiss
11-18-2008 02:36 PM
Last post by Bunneh
Yesterday 11:50 PM
3 Replies, 20 Views
Go to first new post A queen among them
Yesterday 11:46 PM
by Bex
Last post by Bex
Yesterday 11:46 PM
0 Replies, 1 Views
Go to first new post If you had one day to...
11-03-2008 05:09 AM
Last post by ASHTEHCOMMIE
Yesterday 11:44 PM
39 Replies, 643 Views
Go to first new post Neopets Auto Adopter
05-03-2008 09:10 AM
by Sid
Last post by fierce_deity.exe
Yesterday 11:38 PM
299 Replies, 23,901 Views
Go to first new post Anyone here play RO?
11-12-2008 07:56 PM
Last post by Zagoy
Yesterday 11:35 PM
11 Replies, 56 Views
Reply
 
LinkBack Thread Tools Display Modes

 sockopen's Neopets Login
Old 04-27-2007, 10:43 PM   #1 (permalink)
sockopen
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
sockopen's Neopets Login

Code:
print 'Username: '; 
$username = <STDIN>; chop $username; 
if ((length($username) < 3) || (length($username) > 20)) { 
  print 'ERROR: Invalid username'; exit; }
print 'Password: '; 
$password = <STDIN>; chop $password;
if (length($username) < 5) { 
  print 'ERROR: Invalid password'; exit; }

Request('GET', 'neopets.com/index.phtml', '', 'http://neopets.com/');
$res = Request('POST', 'neopets.com/hi.phtml', "destination=%2Fpetcentral.phtml&username=$username", 'http://neopets.com/index.phtml');
if ($res =~ 'Sorry, we did not find an account with that username.') { 
  print 'ERROR: Invalid username'; exit; }
$res = Request('POST', 'neopets.com/login.phtml', "username=$username&password=$password&destination=%2Fpetcentral.$phtml", 'http://neopets.com/hi.phtml');
if ($res =~ "Welcome, <a class=tl href=/randomfriend.phtml") {
  print 'Login was successful';
} elsif ($res =~ 'Sorry, you have tried too many times to guess this password') { 
  print 'ERROR: Too many invalid login attempts'; exit;
} elsif ($res =~ 'This account has been <span style="color:#FF0000;font-weight:bold;">FROZEN</span>') { 
  print "ERROR: Account $username has been frozen"; exit;
} elsif ($res =~ 'That <font color="#FF0000"><strong>username/password</strong></font> combination is invalid.') {
  print 'ERROR: Account password is invalid'; exit; }
else { print 'ERROR: Login was unsuccessful'; exit; }
  Reply With Quote

 
Old 04-27-2007, 10:44 PM   #2 (permalink)
Banned

Male Wilfukguys is offline
 
Join Date: Sep 2006
Location: MWHAHAHHAHA
Age: 18
Posts: 5,270
GPoints: 264
iTrader: 14 / 100%
Wilfukguys Is a Lord of AwesomenessWilfukguys Is a Lord of AwesomenessWilfukguys Is a Lord of AwesomenessWilfukguys Is a Lord of Awesomeness
Rep Power: 0
Nice! Wish i could program. Pretty sure Kane or someone will find this usefull :P
  Reply With Quote

 
Old 04-27-2007, 10:45 PM   #3 (permalink)
Banned

Male Rockage is offline
 
Join Date: Feb 2007
Posts: 87
GPoints: 24
iTrader: -1 / 0%
Rockage Is gaining popularity
Rep Power: 0
perl :P Havent seen much perl and neopets together lately. Thanks for posting though
  Reply With Quote

 
Old 03-02-2008, 09:25 PM   #4 (permalink)
Full Member

unlimitedorb is offline
 
Join Date: Feb 2008
Posts: 25
GPoints: 29
iTrader: 0 / 0%
unlimitedorb Is gaining popularity
Rep Power: 3
In my opinion, this would be much more powerful if you found patterns in the source and hooked them with Regular Expressions. Also, if you are going to post something in a language other than VB or PHP in this community you should probably include EVERYTHING i.e. use LWP;

I'll test it later on in Linux, but I'm on Windows at the moment and don't feel like installing ActivePerl...or whatever it's called.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 12:04 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.09557605 seconds (100.00% PHP - 0% MySQL) with 17 queries