Skip to content

Commit

Permalink
[ADD] Tests assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav WEB committed Aug 16, 2016
1 parent 388f12d commit a16a713
Show file tree
Hide file tree
Showing 23 changed files with 150 additions and 114 deletions.
19 changes: 7 additions & 12 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
# .coveragerc to control coverage.py
[run]
branch = True
parallel = true
debug = data
data_file= Tests/coverage
source = /Exceptions/*
/Libraries/*
concurrency = multiprocessing
source = opendoor.py
/Exceptions/*
/Libraries/*
data_file= Tests/reports/.coverage
debug = data

[paths]
source = opendoor.py
/Exceptions/*
/Libraries/*
source = /Exceptions/*
/Libraries/*

[report]
ignore_errors = True
show_missing = True
include =
opendoor.py
/Exceptions/*
/Libraries/*

[html]
directory = Tests/reports/html

[xml]
output = Tests/reports/xml/coverage.xml
output = Tests/reports/coverage.xml
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
*~
*.swp
Logs/
.eggs/
Tests/
opendoor.egg-info/
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: python
python: '2.7'
sudo: false
python:
- 2.7
- 3.3

before_install:
- python --version
Expand Down
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Changelog
------------
* *v1.0.0* - all the basic functionality is available
* *v1.0.1* - added debug level as param --debug
* *v1.2.1* - added filesystem logger (param --log)
* *v1.2.2* - added example of usage (param --examples)
* *v1.3.2* - added posibility to use random proxy from proxylist (param --proxy)
* *v1.3.3* - simplify dependency installation
* *v1.3.4* - added code quality watcher
* *v1.3.5* - added ReadTimeoutError ProxyError handlers
* *v1.3.51* - fixed code style, resolve file read errors
* *v1.3.52* - code docstyle added
* *v2.3.52* - subdomains scan available! (param --check subdomains). Added databases
1 change: 0 additions & 1 deletion Data/subdomains.dat
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

0
000999888
001
Expand Down
Binary file modified Exceptions/ArgumentParserError.pyc
Binary file not shown.
Binary file modified Exceptions/__init__.pyc
Binary file not shown.
1 change: 0 additions & 1 deletion Libraries/Command.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from Logger import Logger as log
from Exceptions import ArgumentParserError, ThrowingArgumentParser


class Command:
"""Console helper class"""

Expand Down
Binary file modified Libraries/Command.pyc
Binary file not shown.
Binary file modified Libraries/FileReader.pyc
Binary file not shown.
Binary file modified Libraries/Filter.pyc
Binary file not shown.
Binary file modified Libraries/Http.pyc
Binary file not shown.
Binary file modified Libraries/Logger.pyc
Binary file not shown.
Binary file modified Libraries/Progress.pyc
Binary file not shown.
Binary file modified Libraries/__init__.pyc
Binary file not shown.
74 changes: 0 additions & 74 deletions README.md

This file was deleted.

77 changes: 77 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
OWASP Directory Access scanner
====================
.. image:: http://dl2.joxi.net/drive/2016/08/04/0001/0378/90490/90/4b4470c268.jpg
:target: http://dl2.joxi.net/drive/2016/08/04/0001/0378/90490/90/4b4470c268.jpg

.. image:: https://www.quantifiedcode.com/api/v1/project/19d4e9523661432c8fcdc640c1000f94/badge.svg
:target: https://www.quantifiedcode.com/app/project/19d4e9523661432c8fcdc640c1000f94

This application scans the site directories and find all possible ways to login, empty directories and entry points.
Scans conducted in the dictionary that is included in this application.
This software is written for informational purposes and is an open source product under the GPL license.

**Testing of the software on the commercial systems and organizations is prohibited!**

.. image:: http://dl2.joxi.net/drive/2016/08/12/0001/0378/90490/90/25658c11fe.jpg
:target: http://dl2.joxi.net/drive/2016/08/12/0001/0378/90490/90/25658c11fe.jpg

Requirements
------------
* Python 2.7.x

Install Dependencies
------------
sudo pip install -r requirements.txt

Implements
------------
* multithreading
* filesystem log
* detect redirects
* random user agent
* random proxy from proxy list
* verbose mode
* subdomains scanner

Changelog
------------
* *v1.0.0* - all the basic functionality is available
* *v1.0.1* - added debug level as param --debug
* *v1.2.1* - added filesystem logger (param --log)
* *v1.2.2* - added example of usage (param --examples)
* *v1.3.2* - added posibility to use random proxy from proxylist (param --proxy)
* *v1.3.3* - simplify dependency installation
* *v1.3.4* - added code quality watcher
* *v1.3.5* - added ReadTimeoutError ProxyError handlers
* *v1.3.51* - fixed code style, resolve file read errors
* *v1.3.52* - code docstyle added
* *v2.3.52* - subdomains scan available! (param --check subdomains). Added databases

Basic usage
------------
python ./opendoor.py --url "http://joomla-ua.org"

Help
------------
usage: opendoor.py [-h] [-u URL] [--update] [--examples] [-v] [-c CHECK]
[-t THREADS] [-d DELAY] [-r REST] [--debug DEBUG] [-p] [-l]

optional arguments:
-h, --help show this help message and exit
--update Update from version control
--examples Examples of usage
-v, --version Get current version
-c CHECK, --check CHECK
Directory scan eg --check=directories or subdomains
(directories by default)
-t THREADS, --threads THREADS
Allowed threads
-d DELAY, --delay DELAY
Delay between requests
-r REST, --rest REST Request timeout
--debug DEBUG Debug level (0 by default)
-p, --proxy Use proxy list
-l, --log Use filesystem log

required named arguments:
-u URL, --url URL URL or page to scan; -u http://example.com
24 changes: 24 additions & 0 deletions Tests/ControllerTest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import unittest
from Libraries import Controller;

class ControllerTest(unittest.TestCase):

@unittest.skip("update_action")
def test_update_action(self):
Controller.update_action();
pass

@unittest.skip("update_action")
def test_version_action(self):
Controller.version_action()
pass

@unittest.skip("url_action")
def test_url_action(self):
Controller.url_action(None)
pass

@unittest.skip("examples_action")
def test_examples_action(self):
Controller.examples_action()
pass
Empty file added Tests/__init__.py
Empty file.
6 changes: 2 additions & 4 deletions opendoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Development Team:
#
# Stanislav Menshov (Stanislav WEB) since version 1.3.52
# Development Team: Stanislav Menshov (Stanislav WEB)

from Libraries import Command, Filter as FilterArgs, Controller, Version;

Expand All @@ -30,4 +28,4 @@

if command.get_arg_values():
args = filter_args.call(command)
Controller(args)
Controller(args)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = Opendoor scanner
repository = git@github.com:stanislav-web/OpenDoor.git
setup = https://raw.githubusercontent.com/stanislav-web/OpenDoor/master/setup.cfg
license = License: GNU General Public License
version = 2.3.52
version = 2.3.53

[opendoor]
directories = Data/directories.dat
Expand Down
27 changes: 22 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
#! /usr/bin/env python

# OpenDoor Web Directory Scanner
# Copyright (C) 2016 Stanislav Menshov
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Development Team: Stanislav Menshov (Stanislav WEB)

from setuptools import setup, find_packages
from Libraries import Version


setup(
name='opendoor',
version=Version.get_local_version(),
packages=find_packages(),
url='https://github.com/stanislav-web/OpenDoor',
license='GPL',
test_suite='tests',
test_suite='Tests',
author='Stanislav Menshov',
author_email='stanisov@gmail.com',
description='OWASP Directory Access scanner',
long_description=open('README.md').read(),
long_description=open('README.rst').read(),
entry_points={
'console_scripts': [
'coveralls = coveralls.cli:main',
],
},
scripts = ['opendoor.py'],
install_requires=[line.rstrip('\n') for line in open('requirements.txt')],

classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GPL',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)

0 comments on commit a16a713

Please sign in to comment.