Go Back   Gaming Gutter > Non-Gaming > Programming


Programming - All general programming discussion in here.

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

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post learning noob vs. Kyo:...
Yesterday 05:26 PM
Last post by Howl
Today 03:03 PM
129 Replies, 681 Views
Go to first new post Help needed.
Today 02:19 PM
Last post by learning noob
Today 03:02 PM
3 Replies, 9 Views
Go to first new post Jtdusk
10-09-2008 01:32 PM
by Cyrus
Last post by learning noob
Today 03:01 PM
59 Replies, 387 Views
Go to first new post Religion.
07-30-2008 02:36 PM
Last post by casualkiss
Today 02:58 PM
55 Replies, 566 Views
Go to first new post Is there any way to get...
Yesterday 03:51 PM
Last post by goodhomeboy
Today 02:55 PM
10 Replies, 62 Views
Reply
 
LinkBack Thread Tools Display Modes

 Perl Subeta Login? HUGE + REP =]
Old 03-30-2008, 12:58 PM   #1 (permalink)
Banned

Male Wilfukguys is offline
 
Join Date: Sep 2006
Location: MWHAHAHHAHA
Age: 18
Posts: 5,289
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
Perl Subeta Login? HUGE + REP =]

Anyone know or have a perl subeta login source?
+rep. Gonan attempt to make a subeta auto-vender =]
  Reply With Quote

 
Old 04-18-2008, 07:29 AM   #2 (permalink)
Underground

Dixie is offline
 
Dixie's Avatar
 
Join Date: Apr 2008
Posts: 323
iTrader: 1 / 100%
Dixie Is Recognizable
Rep Power: 2
Quote:
Originally Posted by Matt:// View Post
Anyone know or have a perl subeta login source?
+rep. Gonan attempt to make a subeta auto-vender =]
What do you mean? a piece of code that logs into subeta? easy enough, i started to write a bot for the game once but don't know enough about the game, is this what you want, or something else?
  Reply With Quote

 
Old 04-19-2008, 06:56 AM   #3 (permalink)
Banned

Male Wilfukguys is offline
 
Join Date: Sep 2006
Location: MWHAHAHHAHA
Age: 18
Posts: 5,289
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
Yes Dixie thats what i want =3
So it can login and hold the cookies <3
  Reply With Quote

 
Old 04-19-2008, 07:28 AM   #4 (permalink)
Underground

Dixie is offline
 
Dixie's Avatar
 
Join Date: Apr 2008
Posts: 323
iTrader: 1 / 100%
Dixie Is Recognizable
Rep Power: 2
That's simple, do you mind if i use CPAN modules that you will have to install? i could give you instructions on installing them if you wish.
  Reply With Quote

 
Old 04-19-2008, 07:42 AM   #5 (permalink)
Spelar lite DotA...

Male Cataclysmic is offline
 
Cataclysmic's Avatar
 
Join Date: Jan 2008
Location: Maryville, TN
Posts: 1,273
iTrader: 3 / 100%
Cataclysmic Is Popular
Rep Power: 4
Quote:
Originally Posted by Dixie View Post
That's simple, do you mind if i use CPAN modules that you will have to install? i could give you instructions on installing them if you wish.
I dunno' Perl, but I'd drop it right there, Matt.
__________________
We should seriously just automatically deny anyone with something along the lines of "Current Goal: UG" in their signature.

Quote:
Kyo: Cataclysmic, I love you now
-------------------------------------
second2none: unfortunately if you have a gf, you are already paying for sex.
-------------------------------------
ANON - Dark has left the conversation.
Nomhak says: what a faggot
-------------------------------------

Sejiru: You look like a person who'd win an award of greatness in the field of excellency!
  Reply With Quote

 
Old 04-19-2008, 07:45 AM   #6 (permalink)
Underground

Dixie is offline
 
Dixie's Avatar
 
Join Date: Apr 2008
Posts: 323
iTrader: 1 / 100%
Dixie Is Recognizable
Rep Power: 2
Out of curriosity, what would you do with a perl script to login to the site if you don't know perl to add anything to it?

And here's something i made earlier!

Code:
#subeta raep
#!/usr/bin/perl
#################################################
#A simple script to start other subeta scripts with, logs in, checks gold, etc.  #
#Created by Dixie`Flatline                                                                               #
#################################################
use strict;
use warnings;
use WWW::Mechanize; #May have to download this.


my $mech = WWW::Mechanize->new;
my $site = 'http://www.subeta.org';
my $name = 'USER';  #Enter Username here
my $pass = 'PASS';   #Enter Password here
$mech->get("$site/login.php");

$mech->submit_form(
        fields => {                #Login Form
                Name => "$name",
                Password => "$pass",
                act => 'login',
                Login => 'Login',
        }
);



$mech->follow_link( text => 'Vault');
my $pagetitle = $mech->title();
my $bank = $mech->content; #dumps the page into a veriable
my ($jewgolds) = ($bank =~  m!You have .*">([0-9,]*)</a>sP!); #searches for gold with $page
my ($golds) =    ($bank =~  m!You have<b>([0-9,]) sP</b> in your vault.!); #searches for the regex in $page
print "You have $jewgolds/n"
print "BAI!";
die();
}
Can't test this, my only shell does not have Vim and i'm not at home, so meh.

Try it out, if you PM me or something i could maybe even write a few tools for you.

Dixie.

Errr, don't think the bit that checks for gold in the bank works yet BTW.......

Regex isn“t my strong point.... i really can't remember where i was at on this project, we will see when i get home.

Last edited by Tyler; 04-19-2008 at 11:07 AM.
  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 03:04 PM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.15550208 seconds (100.00% PHP - 0% MySQL) with 19 queries