Monday, January 16, 2017

How To Install netcat In Ubuntu or debian


hi guys to day i'm gonna show you how to install netcat


Netcat is a simple Unix utility which reads and writes data
across network connections, using TCP or UDP protocol.
It is designed to be a reliable "back-end" tool that can
be used directly or easily driven by other programs and
scripts

you can download netcat from this source ,this is a final netcat

$ wget https://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.bz2/download

now untar this file

$ tar xvjf netcat-0.7.1.tar.bz2

open netcat folder

$ cd netcat-0.7.1/

now let's install it

# ./configure
$ make
# make install

first run

$ nc -h

Wednesday, January 11, 2017

how to install reaver wps on debian or ubuntu

update your system

$ apt-get update


nstall all dependencies, Here the list

sudo apt-get -y install build-essential libpcap-dev sqlite3 libsqlite3-dev


Setup

Download

wget https://github.com/t6x/reaver-wps-fork-t6x/archive/master.zip && unzip master.zip


Build

cd reaver-wps-fork-t6x*/
cd src/
./configure
make

Install

sudo make install

how to install aircrack from Source on debian or ubuntu


update your system

$ apt-get update

nstall all dependencies, Here the list

$ sudo apt-get install build-essential libssl-dev subversion checkinstall libnl-3-dev libnl-genl-3-dev


when this install is done you can start the aircrack install, like this

$ sudo -s
# wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz
# tar -zxvf aircrack-ng-1.2-rc4.tar.gz
# cd aircrack-ng-1.2-rc4
# make
# make install



First Run
$ aircrack-ng --help

Thursday, January 5, 2017

Installing armitage on debian or ubuntu

What is Armitage?

Armitage is a scriptable red team collaboration tool for Metasploit that visualizes targets, recommends exploits, and exposes the advanced post-exploitation features in the framework.

Installing armitage
$ curl -# -o /tmp/armitage.tgz http://www.fastandeasyhacking.com/download/armitage150813.tgz
$ sudo tar -xvzf /tmp/armitage.tgz -C /opt
$ sudo ln -s /opt/armitage/armitage /usr/local/bin/armitage
$ sudo ln -s /opt/armitage/teamserver /usr/local/bin/teamserver
$ sudo sh -c "echo java -jar /opt/armitage/armitage.jar \$\* > /opt/armitage/armitage"
$ sudo perl -pi -e 's/armitage.jar/\/opt\/armitage\/armitage.jar/g' /opt/armitage/teamserver



First Run

$ armitage

Wednesday, January 4, 2017

linux Compilation and Installation of nmap 7.4 from Source Code "final"



First install some needed packages:

$ cd
$ sudo apt-get install build-essential libssl-dev libpathfinder-openssl-1 liblinear-dev libpcap0.8-dev libpcre3-dev




$ wget http://nmap.org/dist/nmap-7.40.tar.bz2
$ tar xvf nmap-7.40.tar.bz2
$ cd nmap-7.40/
$ ./configure
$ make
$ sudo make install
$ make clean

now you can run it

$ nmap -h

installing metasploit framework on debian 8 or ubuntu 14+


installing the metasploit on debian isn't Difficult

this guide is very simple

first setup you need to update your system with apt-get:

$ sudo apt-get update
$ sudo apt-get upgrade


now you should install the dependent packages for matasploit

$ sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev curl zlib1g-dev


now you gonna Installing Ruby using RVM

RVM stands for Ruby Version Manager. Which provides efficient way to install and manage ruby version independently. Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.

$ cd
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
$ curl -L https://get.rvm.io | bash -s stable
$ source ~/.rvm/scripts/rvm
$ echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
$ source ~/.bashrc
$ RUBYVERSION=$(wget https://raw.githubusercontent.com/rapid7/metasploit-framework/master/.ruby-version -q -O - )
$ rvm install $RUBYVERSION
$ rvm use $RUBYVERSION --default
$ ruby -v
$ gem install rails
$ rails -v



install nmap


you should have nmap for scanning network to install it go here

Configuring Postgres SQL Server

We start by switching to the postgres user so we can create the user and database that we will use for Metasploit

$ sudo -s
# su postgres



Now we create the user and Database, do record the database that you gave to the user since it will be used in the database.yml file that Metasploit and Armitage use to connect to the database

# createuser msf -P -S -R -D
# createdb -O msf msf
# exit
# exit



Installing Metasploit Framework

$ cd /opt $ sudo git clone https://github.com/rapid7/metasploit-framework.git
$ sudo chown -R `whoami` /opt/metasploit-framework
$ cd



Install using bundler the required gems and versions:

$ cd metasploit-framework
$ rvm --default use ruby-${RUByVERSION}@metasploit-framework
$ gem install bundler
$ bundle install



Lets create the links to the commands so we can use them under any user and not being under the framework folder:

$ cd metasploit-framework
$ sudo bash -c 'for MSF in $(ls msf*); do ln -s /opt/metasploit-framework/$MSF /usr/local/bin/$MSF;done'



Lets create the database.yml file that will contain the configuration parameters that will be use by framework:

$ sudo nano /opt/metasploit-framework/config/database.yml


Copy the YAML entries and make sure you provide the password you entered in the user creating step in the password field for the database

production:
adapter: postgresql
database: msf
username: msf
password: yourmsfpassword
host: 127.0.0.1
port: 5432
pool: 75
timeout: 5



Create and environment variable so it is loaded by Armitage and by msfconsole when running and load the variable in to your current shell:


$ sudo sh -c "echo export MSF_DATABASE_CONFIG=/opt/metasploit-framework/config/database.yml >> /etc/profile"

$ source /etc/profile



First Run

$ msfconsole