본문 바로가기
조회 수 4150 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

How To Install Metasploit Framework In MacOSX (homebrew, postgres)


###############

# Preparation

###############


1. install xcode


2. install command line tool

: 3가지 방법이 있음


- Xcode GUI에서 download

- Mavericks 10.9에서 CLI 명령 'xcode-select --install'으로 설치

- Apple developer 사이트에서 직접 다운로드: https://developer.apple.com


3. gcc/g++ 설치 확인

gcc -v

g++ -v


4. Install Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"


5. Install Git and wget

brew install git

brew install wget 

brew install nmap


6. check installed ruby versions and install ruby 1.9.3

rbenv versions

rbenv install 1.9.3-p484

rbenv versions


7. Install PostgreSQL

brew install postgresql --without-ossp-uuid


8. Configure PostgreSQL

initdb /usr/local/var/postgres -E utf8

mkdir -p ~/Library/LaunchAgents

cp /usr/local/Cellar/postgresql/9.3.4/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

createuser msf -P -h localhost

createdb -O msf msf -h localhost



##############

# Metasploit

##############


1. install Metaploit

cd /opt

sudo git clone https://github.com/rapid7/metasploit-framework.git msf

cd msf

sudo rbenv local 1.9.3-p484

ruby -v


2. Configure The MSF Database

sudo vi /opt/msf/database.yml

------------------8<--------------------

production:

   adapter: postgresql

   database: msf

   username: msf

   password: password

   host: 127.0.0.1

   port: 5432

   pool: 75

   timeout: 5

------------------8<--------------------


3. Install Required MSF Bundles

cd /opt/msf

gem install pg sqlite3 msgpack hpricot bundle

bundle install 


4. update ~/.bashrc

vi ~/.bashrc

------------------8<--------------------

# For Metasploit

export MSF_DATABASE_CONFIG=/opt/msf/database.yml

export PATH=$PATH:/opt/msf

------------------8<--------------------

source ~/.bashrc


5. Launch Metasploit!

sudo msfconsole


Note: AV에서 의해 몇몇 Metasploit 파일이 삭제되어 제대로 동작하지 않을 수 있음. 이 경우 AV를 disable 후 시도해 볼 것


############

# Armitage

############


1. Download & Install

http://www.fastandeasyhacking.com/download


2. Launching Armitage

sudo -E java -jar "armitage.jar"




Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
46 How to install Xplico on Kali Hojung 2014.09.29 6943
45 MITM: Ettercap (automated arp spoof) + Xplico (pcap analyzer) file Hojung 2014.09.29 6779
44 DVWA - Upload and use C99.php Backdoor shell (upload C99.php and activate) file Hojung 2014.10.04 6432
43 DoS (Denial of Service) 공격에 대해 (Ping of Death, Syn Flooding 공격/탐지/대응, Tear Drop, Smurf/Fraggle, LAND Attack) file Hojung 2014.11.02 6029
42 DVWA - Stored XSS (Cross Site Scripting) file Hojung 2014.10.04 5807
41 DVWA - Burp Suite, Man-in-the-middle-attack (burp 사용해 cookie를 확보 후 firefox에서 cookie 조작) file Hojung 2014.10.04 5534
40 Cracking password protected zip files with John on OSX Hojung 2014.08.23 5533
39 DVWA - Automated SQL Injection with SqlMap (SQLi에 사용되는 URL 및 Cookie를 가지고 자동으로 injectin) file Hojung 2014.10.04 5510
38 Session Cookie 세부항목에 대해 (secure, Http Only flag) Hojung 2015.01.06 5490
37 DVWA - Using the nikto.pl web vulnerability scanner file Hojung 2014.10.04 5243
36 DNS Spoofing from CLI (ip forwarding + arp spoofing + dns spoofing with ettercap) file Hojung 2014.10.06 5166
35 쉘코드(shell code)란 payload로 사용되는 작은 코드조각 Hojung 2014.12.23 4912
34 DHCP starvation attack by Yersinia file Hojung 2014.09.27 4636
33 brute-force HTTP/S basic access authentication with hydra file Hojung 2015.01.07 4380
32 Install WebGoat 5.3 in Kali file Hojung 2015.02.02 4365
31 Slowloris attack Hojung 2014.08.20 4203
30 DVWA - Upload PHP Backdoor Payload (PHP파일 업로드 후 web을 통해 액세스. 즉, 서버에서 php 실행됨) file Hojung 2014.10.04 4167
» How To Install Metasploit Framework In MacOSX (homebrew, postgres) Hojung 2014.08.28 4150
28 DVWA - Manual SQL Injection and John the Ripper with sql result file Hojung 2014.10.04 4142
27 DVWA - Using Metasploit with Command Execution (backdoor using nc and access from Metasploit) file Hojung 2014.10.04 3945
Board Pagination ‹ Prev 1 2 ... 3 Next ›
/ 3

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5