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
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post Share your Phobia's and...
11-02-2009 07:56 PM
Last post by Jaydin
Today 09:30 PM
50 Replies, 385 Views
Go to first new post Journaling
11-17-2009 06:53 PM
by Cody!
Last post by Axed
Today 08:38 PM
4 Replies, 45 Views
Go to first new post How Long Do You Shower...
10-19-2009 08:25 PM
by dsi
Last post by vegeta23
Today 08:36 PM
60 Replies, 509 Views
Go to first new post SO GOOD
Today 08:27 PM
by nomhak
Last post by Axed
Today 08:33 PM
7 Replies, 29 Views
Go to first new post why is everyone here so...
11-17-2009 12:31 AM
Last post by vegeta23
Today 08:30 PM
16 Replies, 283 Views
Reply
 
LinkBack Thread Tools Display Modes

 [PERL] gaia login using www::mechanize::shell to
Old 11-05-2009, 09:18 AM   #1 (permalink)
Junior Member

Undisclosed MoveItJosh is offline
 
Join Date: Nov 2009
Posts: 3
GPoints: 246
iTrader: 0 / 0%
MoveItJosh Is a New Face in Town
Rep Power: 0
[PERL] gaia login using www::mechanize::shell to

this is my first post so give me some time, but here is the mechshell i plan on using for a mule tender
PHP Code:
#!/usr/bin/perl -w
use strict;
use 
WWW::Mechanize;
use 
WWW::Mechanize::FormFiller;
use 
URI::URL;
use 
HTML::Parser;
use 
Data::Dumper;

my $agent WWW::Mechanize->newautocheck => );
my $formfiller WWW::Mechanize::FormFiller->new();
$agent->env_proxy();

  
$agent->get('http://www.gaiaonline.com/gaia/login.php');
   
$agent->form_number(1) if $agent->forms and scalar @{$agent->forms};
  { 
local $^W$agent->current_form->value('username''type_your_username'); };
  { 
local $^W$agent->current_form->value('password''type_your_password'); };
  
$agent->submit();
  
  { 
my $filename q{dump.html};
    
local *F;
    
open F"> $filename" or die "$filename: $!";
    
binmode F;
    print 
F $agent->content,"\n";
    
close F
  
};
# gold is on the line with this string "<span class="accessAid">Gold:"
# for example
#                                    <span class="accessAid">Gold: </span>924                                </a> 
  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.1.0

All times are GMT -7. The time now is 09:34 PM.


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.11538506 seconds (100.00% PHP - 0% MySQL) with 21 queries