Jump to content

Problems Getting Sslstrip Installed


Recommended Posts

Just received the Pineapple Mark IV, I have been trying to install SSLStrip via the console, every time I try to do it, it says "installing" but when it finishes, it continues to say not installed.

From the command prompt after doing an:

opkg update

opkg --dest usb install sslstrip

I get:

root@Pineapple:~# opkg --dest usb install sslstrip

Installing sslstrip (0.7-1) to usb...

Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/sslstrip_0.7-1_ar71xx.ipk.

Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.

Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.

Installing python (2.7.3-1) to usb...

Collected errors:

* verify_pkg_installable: Only have 624kb available on filesystem /usb/, pkg python needs 1888

* opkg_install_cmd: Cannot install package sslstrip.

** I have an 8gb thumb drive i'm using for the pineapple, and I followed the instructions on formating EXT4

Here's a play by play when trying to install through the pineapple bar:

http://imgur.com/a/BZvu6

Notice I install, it only initially gives me the option to install to internal storage. After initial install, it then gives me the option to install to USB, once I select "install to USB" it returns to the initial option screen

Link to comment
Share on other sites

After messing around with the pineapple, I am not sure its seeing my USB actually (sorry, I am new to this device), here's the info:

Fstab:

config global automount

option from_fstab 1

option anon_mount 1

config global autoswap

option from_fstab 1

option anon_swap 1

config mount

option target /usb

option device /dev/sda1

option fstype ext4

option options rw,sync

option enabled 1

option enabled_fsck 0

config swap

option device /dev/sda2

option enabled 1

My entire resources:

03:00:50 up 5 min, load average: 0.26, 0.25, 0.12

Free Memory

total used free shared buffers

Mem: 29524 24708 4816 0 3336

-/+ buffers: 21372 8152

Swap: 0 0 0

echo 3 > /proc/sys/vm/drop_caches Experimental

Disk Usage

Filesystem Size Used Available Use% Mounted on

rootfs 896.0K 284.0K 612.0K 32% /

/dev/root 5.3M 5.3M 0 100% /rom

tmpfs 14.4M 116.0K 14.3M 1% /tmp

tmpfs 512.0K 0 512.0K 0% /dev

/dev/mtdblock3 896.0K 284.0K 612.0K 32% /overlay

overlayfs:/overlay 896.0K 284.0K 612.0K 32% /

lsusb Output

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 002: ID 1221:3234

Processes

PID USER VSZ STAT COMMAND

1 root 1500 S init

2 root 0 SW [kthreadd]

3 root 0 SW [ksoftirqd/0]

4 root 0 SW [kworker/0:0]

5 root 0 SW [kworker/u:0]

6 root 0 SW< [khelper]

7 root 0 SW [kworker/u:1]

48 root 0 SW [sync_supers]

50 root 0 SW [bdi-default]

52 root 0 SW< [kblockd]

79 root 0 SW [kswapd0]

128 root 0 SW [fsnotify_mark]

141 root 0 SW< [ath79-spi]

152 root 0 SW [mtdblock0]

157 root 0 SW [mtdblock1]

162 root 0 SW [mtdblock2]

167 root 0 SW [mtdblock3]

172 root 0 SW [mtdblock4]

177 root 0 SW [mtdblock5]

182 root 0 SW [mtdblock6]

187 root 0 SW [mtdblock7]

228 root 0 SW [kworker/0:1]

374 root 0 SW [kworker/0:2]

427 root 0 SWN [jffs2_gcd_mtd3]

429 root 0 SW [flush-mtd-unmap]

452 root 0 SW [khubd]

463 root 0 SW [scsi_eh_0]

464 root 0 SW [usb-storage]

465 root 0 SW [kworker/u:2]

484 root 1536 S {rcS} /bin/sh /etc/init.d/rcS S boot

485 root 1500 S init

487 root 1492 S logger -s -p 6 -t sysinit

519 root 0 SW< [cfg80211]

550 root 0 SW< [rpciod]

557 root 0 SW< [nfsiod]

625 root 1504 S /sbin/syslogd -C16

627 root 1484 S /sbin/klogd

629 root 860 S /sbin/hotplug2 --override --persistent --set-rules-f

635 root 860 S /sbin/ubusd

1296 nobody 788 S /usr/sbin/atd

1313 root 1508 S /usr/sbin/crond -c /etc/crontabs -l 5

1346 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22

1382 root 1068 S /usr/sbin/uhttpd -f -h /www -r Pineapple -c /etc/con

1452 root 1496 S /sbin/watchdog -t 5 /dev/watchdog

1586 root 1496 S /sbin/udhcpc -t 0 -i eth1 -b -p /var/run/dhcp-eth1.p

1635 root 0 SW [kworker/0:3]

1693 nobody 936 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf

1798 root 1452 S hostapd -dd /var/run/hostapd-phy0.conf

2049 root 1496 S /usr/sbin/ntpd -n -p 3.openwrt.pool.ntp.org

2141 root 1492 S {exe} ash /www/pineapple/ssh/ssh-connect.sh

2144 root 788 S autossh -M 20000 -N -R 4255:localhost:22 root@exampl

2146 root 1148 S /usr/bin/ssh -L 20000:127.0.0.1:20000 -R 20000:127.0

2153 root 4100 S /usr/bin/php /www/pineapple/index.php

2162 root 1496 S sh -c ps

2163 root 1492 R ps

Link to comment
Share on other sites

the problem is that the usb is not being seen.

Have you tried when the pineapple is plugged in using the wall wart? (there may not be enough juice in your battery pack to power both the usb and the pineapple)

Have you tried another USB drive? I know the SanDisk Fit 4gb and 16gb work (16gb on sale this week at BestBuy)

Link to comment
Share on other sites

Notice I install, it only initially gives me the option to install to internal storage. After initial install, it then gives me the option to install to USB, once I select "install to USB" it returns to the initial option screen

this is because the usb folder probable exists, but since it isn't mounted to a drive it fails. Solving the reason the device is not showing in

lsusb

needs to be first then you can format and mount the file system and swap space.

Link to comment
Share on other sites

I am at work, but I brought the required equipment and I will be trying your ideas at lunch. I also brought a blank 8gb SanDisk to try as well, I had an idea that could be the issue.

Question for jdogherman, and I apologize if this is a total n00b statement:

How do I mount the USB folder to the drive on the pineapple? I have been using Putty to connect to it and not all the linux commands I know work.

Link to comment
Share on other sites

I know of 2 ways to mount a file system (there may be more).

1. add the entries into your fstab config page. (you did this) Next tell the OS to do what the fstab tells it to do with the command

mount -a

OR

2. Mount the filesystem without using fstab using the

mount

command.

The Fstab file is instructions for the os on how to mount the storage it needs. It is read each timt the os starts and when you run

mount -a

More information can be found by running (in shell)

mount -h

Also visiting this page

Link to comment
Share on other sites

I am at work, but I brought the required equipment and I will be trying your ideas at lunch. I also brought a blank 8gb SanDisk to try as well, I had an idea that could be the issue.

Question for jdogherman, and I apologize if this is a total n00b statement:

How do I mount the USB folder to the drive on the pineapple? I have been using Putty to connect to it and not all the linux commands I know work.

If you have nothing else connected to the usb port other than the flash drive then issue the command : mount /dev/sda1 /mnt/sda1

or

mkdir /usb

mount /dev/sda1 /usb

and check the space by : df -h

if you having problems formatting then under backtrack or ubuntu get gparted by :

apt-get update

apt-get install gparted

gparted

and then choose the usb drive and partition it with a big chunk as EXT4 and the rest as SWAP and apply changes and then connected it to the MK4 and mount again and check spacce.

Link to comment
Share on other sites

So just formated the SanDisk to the EXT4 specs as per Derricks guide (just like I did my other USB drive). Popped it in and restarted the basic process of installing SSLStrip through the Pineapple Console before I tried the other methods. Worked like a charm. Didn't think the type of usb drive matter, guess it does. Thank you guys for your help though!

Link to comment
Share on other sites

HA, its an old thumb drive I found, no writing on it. Should have realized from the start it wouldnt work. I attached a picture; and yes that is a plastic jewel that doesnt even light up glued to the top, it has no significance.

a8K9e.jpg

Edited by petiepablo
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...