Giter Site home page Giter Site logo

sergiosanccas / osrframework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from i3visio/osrframework

0.0 1.0 0.0 1.63 MB

OSRFramework, the Open Sources Research Framework is a GPLv3+ project by i3visio focused on providing API and tools to perform more accurate online researches.

Home Page: http://www.i3visio.com

License: GNU General Public License v3.0

Python 100.00%

osrframework's Introduction

================================================================
OSRFramework  Copyright (C) 2015  F. Brezo and Y. Rubio, i3visio
================================================================

Description:

OSRFramework is a GPLv3+ set of libraries developed by i3visio to perform Open Source Intelligence tasks. They include references to a bunch of different applications related to username checking, information leaks research, deep web search, regular expressions extraction and many others. At the same time, by means of ad-hoc Maltego Maltego transforms, OSRFramework provides a way of making these queries graphically.

License: GPLv3+

This is free software, and you are welcome to redistribute it under certain conditions.

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, or
(at your option) any later version.

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/>.

For more details on this issue, check the COPYING file.

Installation:

The instructions may vary in the different OS but we encourage to run this program under Linux as some utilities may behave unstably.

Under Linux (Debian based, including Ubuntu)

As of August 16th, 2015, a ppa repository has been added to let users keep track of updates using the packaging utilities provided by Debian/Ubuntu systems.

1.- Adding the i3visio repository and updating the package list

# Adding the repository
sudo add-apt-repository ppa:i3visio
# Updating the package list
sudo apt-get update

2.- Installing the application and the corresponding dependencies:

# Official package
sudo apt-get install python-osrframework
# Installing dependencies manually
sudo pip install mechanize Skype4Py argparse requests python-emailahoy BeautifulSoup pyexcel pyexcel_ods pyexcel_xls pyexcel_xlsx pyexcel_text pyexcel_io tweepy matplotlib networkx decorator flask

Whenever a new version is released, the following command will upgrade the package:

sudo apt-get upgrade

You should be able to launch usufy.py, entify.py and so on from a terminal by typing:

usufy.py -h
searchfy.py -h
entify.py -h
...

3.- You will be able to import the .mtz configuration for Maltego from the file under:

/usr/share/osrframework

Under Linux (for developers and other systems)

As Python is already installed, the rest of the installation under Python 2.7 is as follows:

1.- Download the repository. You have several options:

# Cloning the repository if you have git installed
git clone http://github.com/i3visio/osrframework osrframework-master
# Navigate to the destiny's folder
cd osrframework-master

or

# Download
wget http://github.com/i3visio/osrframework/archive/master.zip
# Unzip
unzip osrframework-master.zip
# Navigate to the destiny's folder
cd osrframework-master

2.- [Optional] Then, you might have to copy the sample files in the osrframework folder to add your own API Keys. You might edit them with your preferred text editor. The files are:

cp osrframework/utils/config_api_keys.py.sample osrframework/utils/config_api_keys.py

Then you can edit it with:

nano osrframework/utils/config_api_keys.py

If you skip this step, OSRFramework will create files without any credentials. This is not a major issue as you will be able to provide them as a parameter. Then you can resume the installation.

3.- [Optional] Then, you might have to copy the sample files in the osrframework folder to add your own credentials. You might edit them with your preferred text editor. The files are:

cp osrframework/utils/config_credentials.py.sample osrframework/utils/config_credentials.py

Then you can edit it with:

nano osrframework/utils/config_credentials.py

If you skip this step, OSRFramework will create files without any credentials. This is not a major issue as you will be able to provide them as a parameter. Then you can resume the installation.

4.- Then you can resume the installation.

# Superuser privileges are required so as to complete the installation.
sudo python setup.py build
sudo python setup.py install	
# Installing other packages from PyPI that osrframework needs using the requirements.txt file
sudo pip install -r requirements.txt

Afterwards, the module will be importable from any python code. You can check this by typing:

python -c "import osrframework"

If no error is displayed, the installation would have been performed correctly.

5.- To configure the Maltego Entities, launch the built-in configurator:

python configure_maltego.py

This will create a new .mtz file under:

<INSTALLATION_FOLDER>/osrframework/transforms/lib/

6.- However, to use our Maltego Transforms, you will have to download Maltego from Paterva's site:

http://www.paterva.com/web6/products/download2.php

Follow the instructions there. Afterwards, you may launch the application.

7.- You will have to import the recently created .mtz configuration file. Select all the groups and click next. You may use the new i3visio entities now.

Under Windows

First of all, you will have to download and install Python 2.7 from: https://www.python.org/downloads/

The installation should be performed normally. However, you will need to add c:\python27 to the system path variable. You have a tutorial here: http://earthwithsun.com/questions/441106/how-do-i-add-c-python27-to-systems-path

You can check how everything went by accessing the cmd. Type

python

If you have accessed the Python interpreter, those are good news.

The rest of the installation under Python 2.7 is as follows:

1.- Download the latest version of the osrframework found in:

http://github.com/i3visio/osrframework/archive/master.zip

2.- Unzip the master.zip file wherever you want.

3.- [Optional] Then, you might have to copy the sample files in the osrframework folder to add your own API Keys. You might edit them with your preferred text editor. The files are:

osrframework/utils/config_api_keys.py.sample 

which should be COPIED to

osrframework/utils/config_api_keys.py

If you skip this step, OSRFramework will create files without any credentials. This is not a major issue as you will be able to provide them as a parameter. Then you can resume the installation.

4.- [Optional] Then, you might have to copy the sample files in the osrframework folder to add your own credentials. You might edit them with your preferred text editor. The files are:

osrframework/utils/config_credentials.py.sample 

which should be COPIED to

osrframework/utils/config_credentials.py

If you skip this step, OSRFramework will create files without any credentials. This is not a major issue as you will be able to provide them as a parameter. Then you can resume the installation.

5.- Open the terminal (cmd) and navigate to the recently created folder. You know something like:

cd Downloads
cd osrframework-master
...

6.- In the osrframework-master folder, build and install the modules in your system:

python setup.py build
python setup.py install
# Installing other packages from PyPI that osrframework needs using the requirements.txt file
pip install -r requirements.txt

Afterwards, the module will be importable from any python code. You can check this by typing:

python -c "import osrframework"

If no error is displayed, the installation would have been performed correctly.

7.- To configure the Maltego Entities, launch the built-in configurator:

python configure_maltego.py

This will create a .mtz file under:

<INSTALLATION_FOLDER>/osrframework/transforms/lib/

8.- However, to use our Maltego Transforms, you will have to download Maltego from Paterva's site:

http://www.paterva.com/web6/products/download2.php

Follow the instructions there. Afterwards, you may launch the application.

9.- Finally, you will have to import the recently created .mtz configuration file. Select all the groups and click next. You may use the new i3visio entities now.

EXTRA: creating the binary packages

# First updating the .mtz file
python configure_maltego.py -i /usr/bin -o linux
python setup.py --command-packages=stdeb.command bdist_deb
# The deb file is under ./deb_dist
python setup.py bdist --format=zip
# The zip file is under ./dist

osrframework's People

Contributors

i3visio avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.