Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Perl Bot] IRC bot help needed.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Fuzz
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2006
Posts: 531

PostPosted: Mon Aug 25, 2008 7:11 pm    Post subject: [Perl Bot] IRC bot help needed. Reply with quote

Hey. I have my irc bot, and when I connect to a server, It connects, then will say: found hostname:
checking ident
blah blah
then it will say:

server: 451 PRIVMSG YOU HAVE NOT REGISTERED
Error: "closing link [myiphere] (ping timeout)

It only times out after the timeout timer is up, so i dont think that is the cause?

help?

my perl code for the identify:

Code:

print $con "PRIVMSG NICK $nick\r\n";
print $con "PRIVMSG JOIN $chan\r\n";
print $con "PRIVMSG nickserv REGISTER xxxxx [email protected]\r\n";
print $con "PRIVMSG nickserv identify xxxxx\r\n";




Last edited by Fuzz on Mon Aug 25, 2008 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 7:20 pm    Post subject: Reply with quote

Do it right like I did, in C++. Razz

Anyways, you need to send the USER command upon connecting to the server. Go read the RFC specifications.

Code:
print $con "USER $nick 0 $servname :$realname\r\n";


That should do the trick. If you want you can replace the 0 with a host name but I find it to be utterly useless.
Back to top
View user's profile Send private message
Fuzz
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2006
Posts: 531

PostPosted: Mon Aug 25, 2008 7:27 pm    Post subject: Reply with quote

I had USER command, i'll try adding it back in, and see what it does. Also, I have a skelton in C but i couldnt quite get the hang of C, and couldnt find a c++ source. So yeah. Testing.

EDIT: Flyte, that gave: not enough params.
Back to top
View user's profile Send private message AIM Address
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 7:31 pm    Post subject: Reply with quote

Fuzz wrote:
I had USER command, i'll try adding it back in, and see what it does. Also, I have a skelton in C but i couldnt quite get the hang of C, and couldnt find a c++ source. So yeah. Testing.

EDIT: Flyte, that gave: not enough params.


You need to replace $nick and such with appropriate values. Trust me it works.

Edit: Also, to anyone else out there who is interested he did is NICK and JOIN commands wrong along with the messages he sent to NICKSERV. Not a single line in that source code is right. Confused

I suggest reading the IRC RFC: http://www.irchelp.org/irchelp/rfc/rfc.html
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Aug 25, 2008 7:49 pm    Post subject: Reply with quote

I've made a botnet before and from what I remmeber u gotta do NICK command without PrivMsg

print $con "PRIVMSG NICK $nick\r\n";
should be like

print $con "NICK $nick\r\n";

upon connection

then when it asks for ident do the USER commmand like

http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands#USER

user command would like this

USER pkedpker "cheatengine.org" "irc.freenode.net" :PkedPker

and yes u have to send the " 's too.. so figure out how to use em cuz they might be string closers but they have to be sent to server.

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol


Last edited by pkedpker on Mon Aug 25, 2008 7:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 7:53 pm    Post subject: Reply with quote

pkedpker wrote:
then when it asks for ident do the USER commmand like

http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands#USER


No, USER should be the very first command you send to an IRC server. After that you can send whatever you want, though sending JOIN might be handy.
Back to top
View user's profile Send private message
Fuzz
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2006
Posts: 531

PostPosted: Mon Aug 25, 2008 8:00 pm    Post subject: Reply with quote

print $con "USER $user 0 $server :Zack\r\n";
print $con "NICK $nick\r\n";
print $con "JOIN $chan\r\n";

#print $con " nickserv REGISTER xxxxx [email protected]\r\n";

print $con " PRIVMSG nickserv identify xxxx\r\n";


if people were wondering.
Back to top
View user's profile Send private message AIM Address
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Aug 25, 2008 8:02 pm    Post subject: Reply with quote

not really.. I send NICK first.. just made a irc client in VB.. in 15 mins.. and it worked..

here is the outputs

Code:

Text1NOTICE AUTH :*** Looking up your hostname...

NOTICE AUTH :*** Checking ident
NOTICE AUTH :*** No identd (auth) response
NOTICE AUTH :*** Found your hostname

:clarke.freenode.net 001 PKEDPKER :Welcome to the freenode IRC Network PKEDPKER
:clarke.freenode.net 002 PKEDPKER :Your host is clarke.freenode.net[clarke.freenode.net/6667], running version hyperion-1.0.2b
NOTICE PKEDPKER :*** Your host is clarke.freenode.net[clarke.freenode.net/6667], running version hyperion-1.0.2b
:clarke.freenode.net 003 PKEDPKER :This server was created Mon May 21 17:06:18 UTC 2007
:clarke.freenode.net 004 PKEDPKER clarke.freenode.net hyperion-1.0.2b aAbBcCdDeEfFGhHiIjkKlLmMnNopPQrRsStTuUvVwWxXyYzZ01234569*@ bcdefFhiIklmnoPqstv
:clarke.freenode.net 005 PKEDPKER IRCD=dancer CAPAB CHANTYPES=# EXCEPTS INVEX CHANMODES=bdeIq,k,lfJD,cgijLmnPQrRstz CHANLIMIT=#:20 PREFIX=(ov)@+ MAXLIST=bdeI:50 MODES=4 STATUSMSG=@ KNOCK NICKLEN=16 :are supported by this server
:clarke.freenode.net 005 PKEDPKER SAFELIST CASEMAPPING=ascii CHANNELLEN=30 TOPICLEN=450 KICKLEN=450 KEYLEN=23 USERLEN=10 HOSTLEN=63 SILENCE=50 :are supported by this server
:clarke.freenode.net 251 PKEDPKER :There are 21247 listed a
nd 19182 unlisted users on 29 servers
:clarke.freenode.net 252 PKEDPKER 38 :flagged staff members
:clarke.freenode.net 254 PKEDPKER 20761 :channels formed
:clarke.freenode.net 255 PKEDPKER :I have 1958 clients and 0 servers
:clarke.freenode.net 265 PKEDPKER :Current local  users: 1958  Max: 3759
:clarke.freenode.net 266 PKEDPKER :Current global users: 40429  Max: 49086
:clarke.freenode.net 250 PKEDPKER :Highest connection count: 3760 (3759 clients) (1246317 since server was (re)started)
:clarke.freenode.net 375 PKEDPKER :- clarke.freenode.net Message of the Day -
:clarke.freenode.net 372 PKEDPKER :- Welcome to clarke.freenode.net in Fremont, California, US.
:clarke.freenode.net 372 PKEDPKER :- Thanks to VR Hosting 'http://www.vr.org' for sponsoring this server!
:clarke.freenode.net 372 PKEDPKER :-
:clarke.freenode.net 372 PKEDPKER :- CLARKE, SIR ARTHUR C. [1917-2008]. Born in Minehead, Somerset,
:clarke.freenode.net 372 PKEDPKER :- England he served as radar specialist during WWII. The ideas
:clarke.freenode.net 372 PKEDPKER :- of geostationary communications satellites and space elevators
:clarke.freenode.net 372 PKEDPKER :- are credited to him. In 1956, he moved to Colombo, Sri Lanka,
:clarke.freenode.net 372 PKEDPKER :- receiving his knighthood there in 1998 by proxy from the UK
:clarke.freenode.net 372 PKEDPKER :- High Commissioner due to his post-polio-syndrome which has had
:clarke.freenode.net 372 PKEDPKER :- since 1988. Among his several dozens novels and collections
:clarke.freenode.net 372 PKEDPKER :- are 2001: A Space Odyssey, 2010, 2061, 3001 and The
:clarke.freenode.net 372 PKEDPKER :- Songs of Distant Earth. He is currently the Honorary Board
:clarke.freenode.net 372 PKEDPKER :- Chair of the Institute for Cooperation in Space.
:clarke.freenode.net 372 PKEDPKER :-
:clarke.freenode.net 372 PKEDPKER :- You're using freenode, a service of Peer-Directed Projects
:clarke.freenode.net 372 PKEDPKER :- Center (http://freenode.net/pdpc.shtml).
:clarke.freenode.net 372 PKEDPKER :-
:clarke.freenode.net 372 PKEDPKER :- By connecting to freenode you indicate that you have read
:clarke.freenode.net 372 PKEDPKER :- and agree to adhere to our policies and procedures as per
:clarke.freenode.net 372 PKEDPKER :- the website (http://freenode.net). We would like to remind
:clarke.freenode.net 372 PKEDPKER :- you that unauthorized public logging of channels on the
:clarke.freenode.net 372 PKEDPKER :- network is prohibited. Public channel logging should only
:clarke.freenode.net 372 PKEDPKER :- take place where the channel owner(s) has requested this
:clarke.freenode.net 372 PKEDPKER :- and users of the channel are all made aware (if you are
:clarke.freenode.net 372 PKEDPKER :- publically logging your channel, you may wish to keep a
:clarke.freenode.net 372 PKEDPKER :- notice in topic and perhaps as a on-join message).
:clarke.freenode.net 372 PKEDPKER :-
:clarke.freenode.net 372 PKEDPKER :- By registering your nickname with Nickserv you agree that you
:clarke.freenode.net 372 PKEDPKER :- are 13 years of age, or older. For more information about the
:clarke.freenode.net 372 PKEDPKER :- Children's Online Privacy Protection Act please see their
:clarke.freenode.net 372 PKEDPKER :- website at (http://www.coppa.org).
:clarke.freenode.net 372 PKEDPKER :-
:clarke.freenode.net 372 PKEDPKER :- freenode runs an open proxy scanner. Your use of the network
:clarke.freenode.net 372 PKEDPKER :- indicates your acceptance of this policy. For details on
:clarke.freenode.net 372 PKEDPKER :- freenode network policy, please take a look at our policy
:clarke.freenode.net 372 PKEDPKER :- page (http://freenode.net/policy.shtml). Thank you for using
:clarke.freenode.net 372 PKEDPKER :- the network!
:clarke.freenode.net 372 PKEDPKER :-
:clarke.freenode.net 372 PKEDPKER :- freenode is a service of Peer-Directed Projects Center, an
:clarke.freenode.net 372 PKEDPKER :- IRS 501(c)(3) not-for-profit organization.  Our yearly
:clarke.freenode.net 372 PKEDPKER :- fundraiser will begin soon; if you'd like to donate early,
:clarke.freenode.net 372 PKEDPKER :- please see http://freenode.net/pdpc_donations.shtml for more
:clarke.freenode.net 372 PKEDPKER :- information.  Thank you for using freenode!
:clarke.freenode.net 376 PKEDPKER :End of /MOTD command.

:freenode-connect!freenode@freenode/bot/connect PRIVMSG pkedpker :VERSION

:PKEDPKER!n=PKEDPKER@MYIP JOIN :#CE
:clarke.freenode.net 332 PKEDPKER #CE :TF2 Monday Night?
:clarke.freenode.net 333 PKEDPKER #CE neotek 1218995737
:clarke.freenode.net 353 PKEDPKER @ #CE :PKEDPKER AU` RotJ IonBlue AU neotek RotJ_ ukyoce
:clarke.freenode.net 366 PKEDPKER #CE :End of /NAMES list.

:clarke.freenode.net 477 pkedpker #CE :[freenode-info] if you need to send private messages, please register: http://freenode.net/faq.shtml#privmsg


Code:

Private Sub Form_Load()
' irc server, port
Winsock1.Connect "irc.freenode.net", 6667
End Sub

Private Sub Winsock1_Close()
' reconnects automatically if lost of connection
Winsock1.Connect "irc.freenode.net", 6667
End Sub

Private Sub Winsock1_Connect()
' sets nickname
Winsock1.SendData "NICK " & "PKEDPKER" & vbCrLf
End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
' incoming datazz
Dim dat As String
Winsock1.GetData dat

'outputz
 Text1.Text = Text1.Text & dat & vbNewLine

If InStr(1, dat, "No identd") Then
Winsock1.SendData "USER PKEDPKER ""cheatengine.org"" ""irc.freenode.net"" :PkedPker" & vbCrLf
End If
If InStr(1, dat, "PRIVMSG") Then Winsock1.SendData "JOIN #CE" & vbCrLf ' joins #CE channel

End Sub

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 8:15 pm    Post subject: Reply with quote

pkedpker wrote:
not really.. I send NICK first.. just made a irc client in VB.. in 15 mins.. and it worked..


Code:
4.1.3 User message
Command:    USER
Parameters:    <username> <hostname> <servername> <realname>

The USER message is used at the beginning of connection to specify the username, hostname, servername and realname of s new user.


It's proper coding to send USER first.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Aug 25, 2008 8:17 pm    Post subject: Reply with quote

guess order doesn't matter as long as both received u get registered eh?

but if proper way to same user first then do it w\e.. as some servers like freenode don't care really.. maybe others will care.

Fuzz wrote:
print $con "USER $user 0 $server :Zack\r\n";
print $con "NICK $nick\r\n";
print $con "JOIN $chan\r\n";

#print $con " nickserv REGISTER xxxxx [email protected]\r\n";

print $con " PRIVMSG nickserv identify xxxx\r\n";


if people were wondering.


P.S. yah ur user command doesn't have " " 's quotes thats why it wont work..


the packet that gets sent has to look like this in ASCII

USER pkedpker "cheatengine.org" "irc.freenode.net" :PkedPker

it has to be sent with quotes.. not just for strings in source code..

maybe it doesn't? but it worked for me.. i dont know.. does urs stil not work?

maybe u need PASS for passwords command. cuz it works for me as unregistered name

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
Fuzz
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2006
Posts: 531

PostPosted: Tue Aug 26, 2008 10:58 am    Post subject: Reply with quote

WTF -.- It wont work now Mad
wierd.



Code:
print $con "USER $user 0 p2p-network.net :Zack\r\n";
print $con "NICK $nick\r\n";
print $con "PRIVMSG nickserv register fuzzy [email protected]";
print $con "JOIN $chan\r\n";



What happened, worked last night?

EDIT: works on other server, but not p2p-network...wierd
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites