Skip to content

Commit

Permalink
Initial v1.3.1 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Jun 17, 2016
1 parent 7497328 commit 2bc718f
Show file tree
Hide file tree
Showing 19 changed files with 96 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ python:
sudo: required
before_install:
- sudo apt-get update -qq
- sudo apt-get install libsqlite3-dev

sudo: required
install:
- sudo pip install -r requirements.txt
- sudo python setup.py install

script: exit 0
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Version 1.3.1
=============
- added setup.py
- added changelog
4 changes: 2 additions & 2 deletions lincese.txt → LINCESE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#The MIT License (MIT)
#Version 1.1
#Copyright (c) 2014 Marcos Nesster (mh4x0f)
#Version 1.3
#Copyright (c) 2014-2016 Marcos Nesster (mh4x0f)
#Permission is hereby granted, free of charge, to any person obtaining a copy of
#this software and associated documentation files (the "Software"), to deal in
#the Software without restriction, including without limitation the rights to
Expand Down
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,45 @@ The Botdr4g0n is a security tool for DDOS attack on SSH BOT management for distr
```bash
git clone https://github.com/mh4x0f/botdr4g0n.git
cd botdr4g0n
pip install -r requirements.txt
python setup.py install
```



```
root@local:~# botdr4g0n
_ _ _ _ _ ___
| |__ ___ | |_ __| |_ __| || | __ _ / _ \ _ __
| '_ \ / _ \| __/ _` | '__| || |_ / _` | | | | '_ |
| |_) | (_) | || (_| | | |__ _| (_| | |_| | | | |
|_.__/ \___/ \__\__,_|_| |_| \__, |\___/|_| |_|
|___/
Version: 0.1.3
Author: Marcos Nesster (@mh4x0f)
:: help
[*] Available Commands:
=======================
Commands Description
-------- -----------
check test all agents login ssh
clear clean up the line
del delete bot using <id>/all
execute execute command on agents
exit exit the program.
help show this help
interact interact with one/all agents
jobs list/kill jobs running on agents
list list/check/filter list agents on database
register add bot on database
sysinfo print information session on agents
update find newer versions
::
```

### Demo
Expand Down
8 changes: 0 additions & 8 deletions botdr4g0n.py

This file was deleted.

27 changes: 27 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from setuptools import setup, find_packages

setup(name='botdr4g0n',
version='1.3.1',
description='SSH BOT management for distributed attacks',
classifiers=[
'License :: MIT License',
'Programming Language :: Python :: 2.7',
],
keywords='ssh botssh botnet management',
url='http://github.com/mh4x0f/botdr4g0n',
author='Marcos Nesster @mh4x0f',
author_email='[email protected]',
license='MIT',
packages=find_packages(include=[
'shell', 'shell.*'
]),
install_requires=[
'tabulate',
'pexpect',
'pysqlite',
],
entry_points = {
'console_scripts': ['botdr4g0n=shell.botdr4g0n:main',],
},
include_package_data=True,
zip_safe=False)
File renamed without changes.
13 changes: 13 additions & 0 deletions shell/botdr4g0n.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python2.7
from os import path,mkdir
from shell.core.consoleUI import Console
from shell.core.utils.color import banner
version = '0.1.3.1'
author = 'Marcos Nesster (@mh4x0f)'
def main():
folderDB = path.expanduser('~/.botdr4g0n-db')
db_path = path.join(folderDB, 'cme.db')
if not path.exists(folderDB):
mkdir(folderDB)
shell = Console(db_path)
shell.cmdloop(banner(version,author))
File renamed without changes.
11 changes: 5 additions & 6 deletions core/consoleUI.py → shell/core/consoleUI.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#The MIT License (MIT)
#Version 1.1
#Copyright (c) 2014 Marcos Nesster (mh4x0f)
#Copyright (c) 2014-2016 Marcos Nesster (mh4x0f)
#Permission is hereby granted, free of charge, to any person obtaining a copy of
#this software and associated documentation files (the "Software"), to deal in
#the Software without restriction, including without limitation the rights to
Expand All @@ -23,13 +22,13 @@
from subprocess import check_output
from re import search
from tabulate import tabulate
import core.libs.secureSSH as SSHConnection
from core.utils import color,funcSQL
import shell.core.libs.secureSSH as SSHConnection
from shell.core.utils import color,funcSQL
class Console(cmd.Cmd):
def __init__(self):
def __init__(self,db_path):
cmd.Cmd.__init__(self)
self.prompt = color.setcolor(':: ', color='Blue')
self.con = sqlite3.connect('data/botdr4g0n.db')
self.con = sqlite3.connect(db_path)
self.db = self.con.cursor()
self.db.execute(funcSQL.sqlite.createTables)
self.settings = {'all' :{},'check' :[],'agents':{}}
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions core/libs/secureSSH.py → shell/core/libs/secureSSH.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#The MIT License (MIT)
#Version 1.1
#Copyright (c) 2014 Marcos Nesster (mh4x0f)
#Copyright (c) 2014-2016 Marcos Nesster (mh4x0f)
#Permission is hereby granted, free of charge, to any person obtaining a copy of
#this software and associated documentation files (the "Software"), to deal in
#the Software without restriction, including without limitation the rights to
Expand All @@ -20,8 +19,8 @@
import time
from datetime import datetime
from pexpect import pxssh
from core.utils.threads import Thread_Jobs
from core.utils.color import setcolor,display_messages
from shell.core.utils.threads import Thread_Jobs
from shell.core.utils.color import setcolor,display_messages
class ssh(object):
def __init__(self, host,port, user, password,checkconnect=True):
self.settings = {'Host': host,'User': user,'Port': port,'Password': password}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion core/utils/threads.py → shell/core/utils/threads.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import threading
from core.utils.color import display_messages
from shell.core.utils.color import display_messages
class Thread_Jobs(threading.Thread):
def __init__(self,cmd,session):
threading.Thread.__init__(self)
Expand Down
File renamed without changes.
Binary file added shell/docs/screenshot_Kali.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 2bc718f

Please sign in to comment.