Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 34 guests online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Malware
Botnet design and construction (legal, read inside)
EH-Net
May 19, 2013, 06:10:22 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Malware
(Moderator:
don
) >
Botnet design and construction (legal, read inside)
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Botnet design and construction (legal, read inside) (Read 7099 times)
0 Members and 1 Guest are viewing this topic.
Thaorius
Newbie
Offline
Posts: 3
Botnet design and construction (legal, read inside)
«
on:
August 05, 2009, 02:52:22 AM »
Hi, I'm new here, so let me tell you a couple things about me before hands. I am, plain and simply, a black hatter(as in Blackhat SEO), so my morals and ethics tend to "bend" when there is money in the middle, however, I'm also a programmer at hearth and I'm not into illegal things (I would not have registered with my usual nickname if I were to use any information on the site for illegal purposes to begin with).
So, the thing is, I'll be needing to control a relatively large amount of computers (corporate offices of mine with a total of about 100 computers) with mixed operative systems(mostly windows and linux).
I want to use this computers for a particular purpose, server testing (not to be confused with any kind of DDoS). For instance, right now I have an small project in hands and in order to take it to the next stage I need to know how much traffic my server can take per second(all those apache processes spawning as fast as I can say fork! running a Zend Framework based application can't be light weight) so I won't have any costly downtime. I figured if I have 100 computers doing the test, I should get fairly accurate stats.
Now, you might wonder, why does he need a botnet when a simple bash script calling a few curl instances should be enough, or a simple threaded socket app. The answer is, I don't, it's personal curiosity mostly. Botnets have always attracted my attention.
So, I figured I would kill 3 birds with one stone. I would design a world-class botnet(taking away the usual spam, ddos and related functionality as I'm mainly interested in the network communication and effective control and command authorization), I would get accurate stats on server capacity(or redundant servers arrays for that matter), and I would learn a new programming language(thinking of Python or Ruby).
I have been reading quite a lot about redundant networks and distributed protocols such as the edonkey protocol, xmmp, irc(somewhat), etc. I'm pretty sure however, that you guys could probably recommend me a few good books or articles online.
On the programming language, in a real world scenario, I would probably want to write it in C/C++(language in which I'm a "native", so to speak) simply because the final executable must be small; however, I have decided to allow for a bigger executable "baggage" in order to program it in a new language.
Speaking of the language, I'm leaning towards Python, however, I do not wish to learn an old version of Python(2.x) since it's just destined to slow, imminent death now that Py3k is out but Py3k is so new there are basically no libs or support for pretty much anything for it; so I would probably be better off waiting 6 months or so before learning Py3k. So this means Ruby, so I looked at the syntax, etc. It doesn't quite fit me, but that's probably because I'm mainly used to program in C++/PHP, and ruby introduces a myriad of new concepts.
So, I would appreciate any feedback you could have, recommendations, good reads, etc.
Thanks for your time,
T.
«
Last Edit: August 05, 2009, 03:00:09 AM by Thaorius
»
Logged
Thaorius
Newbie
Offline
Posts: 3
Re: Botnet design and construction (legal, read inside)
«
Reply #1 on:
August 07, 2009, 05:19:46 PM »
Common guys, someone, please, give me a hand.
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: Botnet design and construction (legal, read inside)
«
Reply #2 on:
August 08, 2009, 08:12:43 AM »
As far as I understand, a botnet is just an elaborate client-server application. Clients and server communicate, passing commands back and forth. Whenever I write client server apps, I usually do all my communication in XML format. It's very easy to parse and there are quite a few classes written in C/C++ that make this easy. So, to sort of answer you question, I would look into client-server programming books to get you started. Make sure you understand socket programming in C/C++.
You would basically have a small curl app that sends requests to your app. That small curl app would be multiplied and distributed to many many machines. Then you have a server app that controls all them and tells them what to do.
Logged
~~~~~~~~~~~~~~
Ketchup
UNIX
Hero Member
Offline
Posts: 1234
Re: Botnet design and construction (legal, read inside)
«
Reply #3 on:
August 08, 2009, 09:44:59 AM »
Hello and welcome to EH-Net, Thaorius.
The only book I am aware of which if focusing on botnets is
Botnets: The Killer Web App
(
Amazon-Link
). This should give you at least an overview of botnets.
You will hardly find any other books or public resources which offer specific details on botnets. Some other books I read cover botnets too (e.g. those about honeypots) but only as a side-chapter and not in detail.
Also, depending on the machines and network infrastructure, you maybe won't get reasonable results, as usually botnets are much bigger than 100 pcs. Especially if the network was equipped with appropriate hardware and designed well-thought you shouldn't be able to harm it with 100 computers.
I assume that the project you mentioned is for your work where I would further assume that your employee won't be happy if he knows what you are going to do (respectively the way you want to achieve this).
When you have good programming skills it shouldn't be hard to build a botnet not only because the concept is very easy to understand. As recommended already by Ketchup, you have to study network programming and networking generally in detail.
In terms of the programming language - it really doesn't matter. Use whatever you like. Depending on your seriousness about it you may have to use more than one languages anyway, e.g. C++ for the framework, Assembler for some protection stuff and obfuscation (which would maybe not be needed in your scenario), php and css for a web-interface, sql for communication with database etc.
Both Python and Ruby have their advantages and disadvantages, however, both are definitely capable for a PoC botnet.
Logged
Thaorius
Newbie
Offline
Posts: 3
Re: Botnet design and construction (legal, read inside)
«
Reply #4 on:
August 09, 2009, 03:41:58 PM »
I have a considerable amount of experience in general, embed and web programming and networks. My main concern is how to design a network that can re-shape itself, and at the same time not be shutdownable (meaning,it doesn't know of any other sibling) without using "master" servers for obvious reasons.
I'll read that book as soon as I can.
For now, I'm looking into the freenet project, which is the closest thing so far. I could just "connect" the peers, and have them perform hourly searchs on the network for encoded resources, which would be normal things like images, chunks of text, etc with embed messages, which would be RSA(or similar) encrypted. Looks like a good model to me, but I'm not convinced just yet.
About the 100 computer thing, yes, it is true that they are unlikely to take down a server, however, if I can get 2 hits per second per computer, that means, a sustained 200 hits per second, which means the server can take 17.280.000 hits per day. Honestly, I doubt my apache will be able to fork() 200 times without degrading the quality of service by a big factor.
So yes, I see it as a very practical way to test load
.
And no, employees can't be angry, I'll be including in their contracts that their workstations will be monitored and the unused resources in them will be put to good use.
Any other advise appreciated
.
See you.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
General Certification
: CPT Practical Submission
(0) by
z28power4u
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(5) by
MrTuxracer
Career Central
: Starter cert?
(0) by
Alert
Web Applications
: Nessus and Nikto
(4) by
Seen
Tutorials
: Need guidance
(7) by
impelse
Malware
: EICAR?
(2) by
SephStorm
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.