Database MYSQL ( untuk metasploit )
#21
kalo g salah versi 4 keatas make posgresql aja

#22
utk versi 4.3.0 ga bisa pake mysql lagi, hanya postgresql yang diinstall melalui gem ruby

sumber:
http://dev.metasploit.com/redmine/issues/5796

jadi kemungkinan postgresql BT om ga ada, coba cara ini:
Code:
update-alternatives --config ruby

trus
Code:
gem install postgres

coba lagi db_drivernya

#23
Code:
root@bt:~# update-alternatives --config ruby
There are 2 choices for the alternative ruby (providing /usr/bin/ruby).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/ruby1.8     500       auto mode
  1            /usr/bin/ruby1.8     500       manual mode
* 2            /usr/bin/ruby1.9.2   400       manual mode

Press enter to keep the current choice[*], or type selection number: 2
root@bt:~# gem install postgres
---------------------------------------------------------------------------

This is an old, deprecated version of the Ruby PostgreSQL driver that hasn't
been maintained or supported since early 2008.

You should install/require 'pg' instead.

If you need the 'postgres' gem for legacy code that can't be converted, you can
still install it using an explicit version, like so:

  gem install postgres -v '0.7.9.2008.01.28'
  gem uninstall postgres -v '>0.7.9.2008.01.28'

If you have any questions, the nice folks in the Google group can help:

  http://goo.gl/OjOPP / [email protected]

---------------------------------------------------------------------------
Successfully installed postgres-0.8.1
1 gem installed
Installing ri documentation for postgres-0.8.1...
Installing RDoc documentation for postgres-0.8.1...
root@bt:~# db_driver
db_driver: command not found
root@bt:~# db_driver postgresql
db_driver: command not found

apa saya salah masukin angka 2 itu ka ?:badpc:

#24
udah bener kok, msf itu cm support ruby 1.9.2

udah coba gem postgres blom?

#25
Code:
root@bt:~# gem install postgres
---------------------------------------------------------------------------

This is an old, deprecated version of the Ruby PostgreSQL driver that hasn't
been maintained or supported since early 2008.

You should install/require 'pg' instead.

If you need the 'postgres' gem for legacy code that can't be converted, you can
still install it using an explicit version, like so:

  gem install postgres -v '0.7.9.2008.01.28'
  gem uninstall postgres -v '>0.7.9.2008.01.28'

If you have any questions, the nice folks in the Google group can help:

  http://goo.gl/OjOPP / [email protected]

---------------------------------------------------------------------------
Successfully installed postgres-0.8.1
1 gem installed
Installing ri documentation for postgres-0.8.1...
Installing RDoc documentation for postgres-0.8.1...

kaya gitu ka hasilnya ..gmina ?

#26
msf > db_driver
[-] Unknown command: db_driver.

kenapa ini om ?

#27
(04-26-2012, 04:48 PM)apuse71 Wrote: msf > db_driver
[-] Unknown command: db_driver.

kenapa ini om ?

buat versi yang 4 ke atas,kalau g salah db_info om bukan db_driver
#kalaugsalah

#28
Code:
eka@mysuicidenotes{~}:msfconsole

     ,           ,
    /             \
   ((__---,,,---__))
      (_) O O (_)_________
         \ _ /            |\
          o_o \   M S F   | \
               \   _____  |  *
                |||   WW|||
                |||     |||


       =[ metasploit v4.3.0-release [core:4.3 api:1.0]
+ -- --=[ 837 exploits - 470 auxiliary - 141 post
+ -- --=[ 250 payloads - 27 encoders - 8 nops
       =[ svn r15184 updated yesterday (2012.04.24)

msf > help

Core Commands
=============

    Command       Description
    -------       -----------
    ?             Help menu
    back          Move back from the current context
    banner        Display an awesome metasploit banner
    cd            Change the current working directory
    color         Toggle color
    connect       Communicate with a host
    exit          Exit the console
    help          Help menu
    info          Displays information about one or more module
    irb           Drop into irb scripting mode
    jobs          Displays and manages jobs
    kill          Kill a job
    load          Load a framework plugin
    loadpath      Searches for and loads modules from a path
    makerc        Save commands entered since start to a file
    popm          Pops the latest module off of the module stack and makes it active
    previous      Sets the previously loaded module as the current module
    pushm         Pushes the active or list of modules onto the module stack
    quit          Exit the console
    reload_all    Reloads all modules from all defined module paths
    resource      Run the commands stored in a file
    route         Route traffic through a session
    save          Saves the active datastores
    search        Searches module names and descriptions
    sessions      Dump session listings and display information about sessions
    set           Sets a variable to a value
    setg          Sets a global variable to a value
    show          Displays modules of a given type, or all modules
    sleep         Do nothing for the specified number of seconds
    spool         Write console output into a file as well the screen
    threads       View and manipulate background threads
    unload        Unload a framework plugin
    unset         Unsets one or more variables
    unsetg        Unsets one or more global variables
    use           Selects a module by name
    version       Show the framework and console library version numbers


Database Backend Commands
=========================

    Command        Description
    -------        -----------
    creds          List all credentials in the database
    db_connect     Connect to an existing database
    db_disconnect  Disconnect from the current database instance
    db_export      Export a file containing the contents of the database
    db_import      Import a scan result file (filetype will be auto-detected)
    db_nmap        Executes nmap and records the output automatically
    db_status      Show the current database status
    hosts          List all hosts in the database
    loot           List all loot in the database
    notes          List all notes in the database
    services       List all services in the database
    vulns          List all vulnerabilities in the database
    workspace      Switch between database workspaces

msf > db_status
[*] postgresql connected to msf3dev
msf >

pake db_status dan coba membaca Help!!! biar tau perintah apa aja yang ada di metasploit Tongue Confused
Every Second, Every Minutes, Every Hours, Every Days Its Never End

#29
msf > db_status
postgresql connected to msf3dev


tapi ga ada satu pun ada yang muncul tanda petir.

pilih menu > attacks > Hailmary ( tidak ada by port )

gimana om ?

#30
scan dulu targetnya om paling portnya udah ketutup atau ada firewallnya kalo db_status itu untuk mengetahui database kita connect atau tidak Tongue Cmiww
Every Second, Every Minutes, Every Hours, Every Days Its Never End






Users browsing this thread: 1 Guest(s)