Jump to content

Welcome to NulledBlog
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

[Q]Python IRC Bot[/Q]


  • Please log in to reply
8 replies to this topic

#1
Heksur

  • Offline
  • Addicted

  • Posts:
    177
    Reputation:
    8
    Joined:
    26 Oct, 2015

Hello there,

 

I'm pretty interested in creating a Python IRC bot and was curious if anyone had any experience is creating said bots.

Connection handling is currently new to me as is Python, but I'm learning more each day.

 

Should you have any experience in creating Python IRC Bots, feel free to leave a reply of send a PM.

 

~Heksur~


  • 0

Here are some motivational quotes:

c74036a43ba045aaa531c6868d1de521.png

 

7qOTtSa.png

 

b37366840c5f442c978c9b8340882d5b.png


#2
Donaldx

  • Offline
  • Python dev

  • Posts:
    26
    Reputation:
    3
    Joined:
    18 Mar, 2016

Well, I have written an IRC bot with some basic commands last time for someone. What do u need? There are plenty of frameworks out there. Python 2 or 3? Also you could work with raw sockets, instead of the frameworks. There are plenty of templates out there that you can use.


Edited by Donaldx, 22 March 2016 - 09:28 PM.

  • 0

#3
Heksur

  • Offline
  • Addicted

  • Posts:
    177
    Reputation:
    8
    Joined:
    26 Oct, 2015


Well, I have written an IRC bot with some basic commands last time for someone. What do u need? There are plenty of frameworks out there. Python 2 or 3? Also you could work with raw sockets, instead of the frameworks. There are plenty of templates out there that you can use.

First of all: Thank you for your reply.

 

I'm currently learning Python 2 so Python 2 would be my preferable choice. I just set-up a Supybot but coding one from scratch seems pretty cool.

Anything you'd recommend me?

 

~Heksur~


Edited by Heksur, 22 March 2016 - 09:48 PM.

  • 0

Here are some motivational quotes:

c74036a43ba045aaa531c6868d1de521.png

 

7qOTtSa.png

 

b37366840c5f442c978c9b8340882d5b.png


#4
Donaldx

  • Offline
  • Python dev

  • Posts:
    26
    Reputation:
    3
    Joined:
    18 Mar, 2016

I would really recommend you go for Python 3, if you don't have any software that requires python 2.

 

Here are two templates with socket: 

 

https://gist.github....Szkutak/1326452    3+

https://gist.github....c0decat/4416645    2.6+

 

If you want to work with some kind of wrapper 2.6+:

 

https://github.com/jaraco/irc

 

 

I like sockets, cause I am more familiar with it. I guess you have to rewrite the ""pong function" in each bot, cause every irc server handles it mostly different. (So your bot does not time out)

 

If you have any problems, just hit me with code and the error output. It is not an easy task to write a IRC bot.

 

 

edit: There is http://asyncio.org/ too, that has a IRC module. (Works only for 2.6 atm) But I gave up after I found out it is not working with 3+ cause some ssl functions are not compatible)


Edited by Donaldx, 22 March 2016 - 11:07 PM.

  • 1

#5
Heksur

  • Offline
  • Addicted

  • Posts:
    177
    Reputation:
    8
    Joined:
    26 Oct, 2015

Thanks a lot for your reply, I'll surely hit you up with snippets etc.

 

~Heksur~


  • 0

Here are some motivational quotes:

c74036a43ba045aaa531c6868d1de521.png

 

7qOTtSa.png

 

b37366840c5f442c978c9b8340882d5b.png


#6
Gr3p

  • Offline
  • Member

  • PipPipPip
  • Posts:
    65
    Reputation:
    0
    Joined:
    05 Mar, 2016

You should have a look here. 

 

http://null-byte.won...rce-v2-0137153/


  • 0

Exploits/Bots/Scripts/Source - “A wizard is never late, nor is he early, he arrives precisely when he means to.” 

bIzDwvX.png


#7
Heksur

  • Offline
  • Addicted

  • Posts:
    177
    Reputation:
    8
    Joined:
    26 Oct, 2015


You should have a look here. 

 

http://null-byte.won...rce-v2-0137153/

 

Thanks for the reply!

 

I'll definitely look into it right away!

 

~Heksur~


  • 0

Here are some motivational quotes:

c74036a43ba045aaa531c6868d1de521.png

 

7qOTtSa.png

 

b37366840c5f442c978c9b8340882d5b.png


#8
Gr3p

  • Offline
  • Member

  • PipPipPip
  • Posts:
    65
    Reputation:
    0
    Joined:
    05 Mar, 2016

Just out of curiosity why are you interested in IRC bots? would P2P botnet be a better project?

 

Keep me posted on your progress I have some experience writing C+ and php/http bots.


  • 0

Exploits/Bots/Scripts/Source - “A wizard is never late, nor is he early, he arrives precisely when he means to.” 

bIzDwvX.png


#9
Heksur

  • Offline
  • Addicted

  • Posts:
    177
    Reputation:
    8
    Joined:
    26 Oct, 2015


Just out of curiosity why are you interested in IRC bots? would P2P botnet be a better project?

 

Keep me posted on your progress I have some experience writing C+ and php/http bots.

 

I just set-up IRC and felt like a bot would complement the channel and also be a good project to learn.

P2P Botnets are very new to me but it seems like a nice project.

 

My progress thusfar: I managed to set one up and then noticed there were Kali updates. Bricked my Kali installation and finally managed to reinstall and everything. Feel free to inform me about those botnets and what your goals and possibilities are with those.

 

Very interested, thank you for replying.

 

~Heksur~


  • 0

Here are some motivational quotes:

c74036a43ba045aaa531c6868d1de521.png

 

7qOTtSa.png

 

b37366840c5f442c978c9b8340882d5b.png



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users