User Control Panel
Advertisements

HELP US, HELP YOU!

Forum Bot

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas
View unanswered posts
Author Message
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Thu Jul 07, 2005 9:22 pm    Post subject: Forum Bot Reply with quote

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
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Jul 08, 2005 12:32 am    Post subject: Re: Forum Bot Reply with quote

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
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Fri Jul 08, 2005 1:44 am    Post subject: Reply with quote

So you couldn't use something like lwp:simple?
Back to top
ERijkee
Newbie
Newbie


Joined: 05 Jul 2004
Posts: 31
Location: Almere, The Netherlands
Reputation: 35.4Reputation: 35.4Reputation: 35.4Reputation: 35.4

PostPosted: Fri Jul 08, 2005 8:27 am    Post subject: Reply with quote

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
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Fri Jul 08, 2005 11:52 am    Post subject: Reply with quote

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
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Jul 08, 2005 4:39 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Fri Jul 08, 2005 5:14 pm    Post subject: Reply with quote

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
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Fri Jul 08, 2005 7:18 pm    Post subject: Reply with quote

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 Smile.

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Jul 08, 2005 10:45 pm    Post subject: Reply with quote

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. Smile Or something.

Probably just something I would do. Rolling Eyes

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Sat Jul 09, 2005 12:37 am    Post subject: Reply with quote

I already use LWP UserAgent quite a bit, so you wouldn't be alone there Razz
_________________
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
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sat Jul 09, 2005 12:45 pm    Post subject: Reply with quote

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
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sat Jul 09, 2005 9:48 pm    Post subject: Reply with quote

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 Razz ).

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Jul 10, 2005 12:28 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Sun Jul 10, 2005 4:16 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group