Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----->>> SETTINGAN pg_hba.conf postgresql
- # TYPE DATABASE USER ADDRESS METHOD
- # "local" is for Unix domain socket connections only
- local all all peer
- # IPv4 local connections:
- host "msf_database" "msf_user" 127.0.0.1/32 md5
- host all all 127.0.0.1/32 ident
- # IPv6 local connections:
- host all all ::1/128 ident
- # Allow replication connections from localhost, by a user with the
- # replication privilege.
- #local replication postgres peer
- #host replication postgres 127.0.0.1/32 ident
- #host replication postgres ::1/128 ident
- --->>> settingan untuk startup
- [root@localhost /]# cat > /opt/metasploit3/config/database.yml << EOF
- > production:
- > adapter: postgresql
- > database: msf_database
- > username: msf_user
- > password: pikisuhi
- > host: 127.0.0.1
- > port: 5432
- > pool: 75
- > timeout: 5
- > EOF
- [root@localhost /]# cat > ~/.msf4/msfconsole.rc << EOF
- > db_connect -y /opt/metasploit3/config/database.yml
- > workspace -a YourProject
- > EOF
- ---->>> metasploit
- msf > db_status
- [*] postgresql selected, no connection
- msf > db_connect msf_user:******@127.0.0.1:5432/msf_database
- msf > db_status
- [*] postgresql connected to msf_database
- msf >
Add Comment
Please, Sign In to add comment