|
| Author |
Message |
Cheater Senior Member

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Thu Jul 07, 2005 9:22 pm Post subject: Forum Bot |
|
|
| What if someone were to make a bot that would let you view, and post on a forum? You would give the URL of the main forum page, and tell it if it was Invision or phpBB and it would let you do stuff there. I know someone made a bot-depot tray for the old forum, so I think this should be possible. What do you think? |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Jul 08, 2005 12:32 am Post subject: Re: Forum Bot |
|
|
| Cheater wrote: | | What if someone were to make a bot that would let you view, and post on a forum? You would give the URL of the main forum page, and tell it if it was Invision or phpBB and it would let you do stuff there. I know someone made a bot-depot tray for the old forum, so I think this should be possible. What do you think? |
The Bot-Depot tray used an RSS feed. phpBB doesn't have RSS feeds. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Cheater Senior Member

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Fri Jul 08, 2005 1:44 am Post subject: |
|
|
| So you couldn't use something like lwp:simple? |
|
| Back to top |
|
 |
ERijkee Newbie

Joined: 05 Jul 2004 Posts: 31 Location: Almere, The Netherlands
    
|
Posted: Fri Jul 08, 2005 8:27 am Post subject: |
|
|
I think LWP::Simple only does GET requests(only GET data), so you wont be able to use POST requests with that(these are used to post form data like the forum messages).
I think its a better idea to use the forum database, to use this you will need a password for the db. |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Fri Jul 08, 2005 11:52 am Post subject: |
|
|
I have created a script which allows you to POST on forums, you will need to edit it so that your bot can use it, by giving it your username and password etc, and then making it into a command. You can use LWP::Simple for viewing the topics and posts though, as the guy above me said. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Jul 08, 2005 4:39 pm Post subject: |
|
|
HTTP::Request can be used to POST data.
Here's some code I had for using Google's translator...
| Code: | my $http_agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.5))';
use HTTP::Request;
use LWP::UserAgent;
# Create a new user agent.
my $ua = LWP::UserAgent->new;
# Define the browser emulation.
$ua->agent ($http_agent);
# Request Google's translator.
my $req = HTTP::Request->new (POST => 'http://translate.google.com/translate_t');
$req->content_type ('application/x-www-form-urlencoded');
$req->content ("text=$what&langpair=$from|$to");
# Pass request to the user agent.
my $res = $ua->request ($req);
# Check the outcome.
if ($res->is_success) {
# Filter the source.
my $src = $res->content;
# $src is the page's source now
}
else {
return $res->status_line;
} |
_________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Fri Jul 08, 2005 5:14 pm Post subject: |
|
|
You can also use LWP UserAgent to do POST and GET. _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Fri Jul 08, 2005 7:18 pm Post subject: |
|
|
I just use UserAgent, and I set cookies etc.
Source
Description ("Invision Post")
Please note it works for Invision only. I'll make one for phpBB soon . _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Jul 08, 2005 10:45 pm Post subject: |
|
|
Oh, awesome, I didn't know LWP::UserAgent could do cookies (I saw there was an LWP::Simple::Cookies but didn't figure that one out).
That's cool, there's some sites that require you be logged in to access certain things, we could make bot commands for those now. Or something.
Probably just something I would do.  _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Sat Jul 09, 2005 12:37 am Post subject: |
|
|
I already use LWP UserAgent quite a bit, so you wouldn't be alone there  _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sat Jul 09, 2005 12:45 pm Post subject: |
|
|
Guess who told me how to do that...*cough matt cough* _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sat Jul 09, 2005 9:48 pm Post subject: |
|
|
| darkmonkey wrote: | | Guess who told me how to do that...*cough matt cough* |
Yeah, figures it'd be Matt, he knows these kinds of things (like I still don't know how he found out how to use Win32::API to open your CD tray ). _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sun Jul 10, 2005 12:28 pm Post subject: |
|
|
Hm, that shouldn't be too hard. VB has a function for it, which suggests Windows has a simple command. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Sun Jul 10, 2005 4:16 pm Post subject: |
|
|
Um, the Windows API is capable of many things like that. It is simply a connection to Windows functions and methods. Opening/closing the cd tray is one of them. Understanding how the Windows API works would go a long way in understanding how Matt did it. _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com |
|
| Back to top |
|
 |
|