• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 23 رای - 2.87 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: [Python]Simple IRC Bot
حالت موضوعی
#1
این هم یه سورس بوت برای سرویس ای ار سی
کد:
#!/usr/bin/python
import socket, sys, string, time
port = 6667
nick = "iSploit_bot"
host = 'irc.darkscience.ws'
name =  "pwnz0r"
channel = '#iexploit'  
ident = 'chronicz'
woot = socket.socket()

woot.connect ( (host, port) )
woot.send ( 'NICK ' + nick + '\r\n' )
woot.send ( 'USER ' + ident + ' ' +  ident + ' ' + ident + ' :chroniczbot\r\n' )

while 1:

    data = woot.recv ( 1024 )
    print(data)

    if data.find ( '376' ) != -1:

        woot.send( 'JOIN ' + channel + '\r\n' )

    if data.find ( 'PING' ) != -1:

        woot.send( 'PONG ' + data.split() [1] + '\r\n')

    if data.find ( '!test' ) != -1:

        woot.send ("PRIVMSG #chroniccommand :Test message! \r\n")
    if data.fiind ( '!quit' ) != -1:

        woot.send ("QUIT\r\n")
        sys.exit()
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  Hacking Secret Ciphers with Python Anarchy 2 2,881 12-02-2014، 05:07 PM
آخرین ارسال: Anarchy
  Invent Your Own Games With Python Anarchy 0 1,860 09-29-2014، 06:39 PM
آخرین ارسال: Anarchy
  md5 hash in python Anarchy 0 2,024 09-28-2014، 01:50 PM
آخرین ارسال: Anarchy
  running cmd commands in python Anarchy 0 1,814 09-28-2014، 12:05 AM
آخرین ارسال: Anarchy
  sending packets in python Anarchy 0 2,208 09-27-2014، 11:56 PM
آخرین ارسال: Anarchy
  پایتون(Python) چیست ؟ Amin_Mansouri 1 6,999 04-15-2011، 03:06 PM
آخرین ارسال: Amin_Mansouri

پرش به انجمن:


Browsing: 1 مهمان