On Apr 24, 4:58 pm, Peter J. [email protected] wrote:
Have you written any test code to show it working vs. not working?
–
Peter J. [pjones at domain below]
pmade inc. -http://pmade.com
i have the aol im on my machine connected as one of the buddies
i cut and paste the code from the aimbot.rb file and execute them line
by line and when i hit
friend.send_im(" hi how going")
i get the IM on my aol client.
when i execute the aimbot.rb the message does not popup on my aim
client. i get no errors. nothing. beats the hell out of me.
require ‘net/toc’
client = Net::TOC.new(“userid”,“password”)
client.connect
friend = client.buddy_list.buddy_named(“mybuddy”)
friend.send_im(" hi how going")
client.disconnect()
the irb is the same code as above. no typeing. just cut and paste
E:\Documents and Settings\User1>irb
irb(main):001:0> require ‘net/toc’
=> true
irb(main):002:0> client = Net::TOC.new(“userid”,“password”)
=> #<Net::TOC::Client:0x2eadb64 @buddy_list=#<Net::TOC::BuddyList:
0x2eada88 @buddies={}, @group_order=[],
onn=#<Net::TOC::Connection:0x2eadb3c @msgseq=65919,
@user=“trad2win”>>, @screen_name=“trad2win”, @callbac
<Proc:0x02ebb930@e:/ruby/lib/ruby/gems/1.8/gems/net-toc-0.2/./net/
toc.rb:436>, :config=>#<Proc:0x02ebb930
by/gems/1.8/gems/net-toc-0.2/./net/toc.rb:436>, :update_buddy=>#<Proc:
0x02ebb584@e:/ruby/lib/ruby/gems/1.
0.2/./net/toc.rb:437>, :error=>#<Proc:0x02eb6ea8@e:/ruby/lib/ruby/gems/
1.8/gems/net-toc-0.2/./net/toc.rb:
uddy2=>#<Proc:0x02ebb584@e:/ruby/lib/ruby/gems/1.8/gems/net-toc-0.2/./
net/toc.rb:437>}, @password="password::TOC::Connection:0x2eadb3c
@msgseq=65919, @user=“userid”>>
irb(main):003:0> client.connect
=> #<Thread:0x2eab6d4 sleep>
irb(main):004:0> friend = client.buddy_list.buddy_named(“mybuddy”)
=> #<Net::TOC::Buddy:0x2ea8754 @screen_name=“mybuddy”,
@last_signon=Thu Apr 24 15:43:28 -0400 2008,
ble, @on_status={}, @conn=#<Net::TOC::Connection:0x2eadb3c
@msgseq=65923, @user=“userid”, @sock=#<TCPSo
, @idle_time=0, @warning_level=0>
irb(main):005:0> friend.send_im(" hi how going")
=> 47
irb(main):006:0> client.disconnect
=> nil
irb(main):007:0>