ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.99k stars 895 forks source link

Ettercap not installing on iSH #1541

Open isums opened 3 years ago

isums commented 3 years ago

Hello,

I tried to install ettercap from this repository: http://dl-cdn.alpinelinux.org/alpine/edge/testing, but ended up with this error:

ERROR: unable to select packages:
  so:libGeoIP.so.1 (no such package):
    required by: libettercap-0.8.3.1-r0[so:libGeoIP.so.1]
  so:libnet.so.9 (no such package):
    required by: libettercap-0.8.3.1-r0[so:libnet.so.9]

Could someone please help?

62f commented 3 years ago

image


ettercap 0.8.3.1 copyright 2001-2020 Ettercap Development Team
Usage: ettercap [OPTIONS] [TARGET1] [TARGET2]
TARGET is in the format MAC/IP/PORTs (see the man for further detail)
Sniffing and Attack options:
  -M, --mitm <METHOD:ARGS>    perform a mitm attack
  -o, --only-mitm             don't sniff, only perform the mitm attack
  -b, --broadcast             sniff packets destined to broadcast
  -B, --bridge <IFACE>        use bridged sniff (needs 2 ifaces)
  -p, --nopromisc             do not put the iface in promisc mode
  -S, --nosslmitm             do not forge SSL certificates
  -u, --unoffensive           do not forward packets
  -r, --read <file>           read data from pcapfile <file>
  -f, --pcapfilter <string>   set the pcap filter <string>
  -R, --reversed              use reversed TARGET matching
  -t, --proto <proto>         sniff only this proto (default is all)
      --certificate <file>    certificate file to use for SSL MiTM
      --private-key <file>    private key file to use for SSL MiTM
User Interface Type:
  -T, --text                  use text only GUI
       -q, --quiet                 do not display packet contents
       -s, --script <CMD>          issue these commands to the GUI
  -C, --curses                use curses GUI
  -D, --daemon                daemonize ettercap (no GUI)
  -G, --gtk                   use GTK+ GUI
Logging options:
  -w, --write <file>          write sniffed data to pcapfile <file>
  -L, --log <logfile>         log all the traffic to this <logfile>
  -l, --log-info <logfile>    log only passive infos to this <logfile>
  -m, --log-msg <logfile>     log all the messages to this <logfile>
  -c, --compress              use gzip compression on log files
Visualization options:
  -d, --dns                   resolves ip addresses into hostnames
  -V, --visual <format>       set the visualization format
  -e, --regex <regex>         visualize only packets matching this regex
  -E, --ext-headers           print extended header for every pck
  -Q, --superquiet            do not display user and password
General options:
  -i, --iface <iface>         use this network interface
  -I, --liface                show all the network interfaces
  -Y, --secondary <ifaces>    list of secondary network interfaces
  -n, --netmask <netmask>     force this <netmask> on iface
  -A, --address <address>     force this local <address> on iface
  -P, --plugin <plugin>       launch this <plugin> - multiple occurance allowed
      --plugin-list <plugin1>,[<plugin2>,...]       comma-separated list of plugins
  -F, --filter <file>         load the filter <file> (content filter)
  -z, --silent                do not perform the initial ARP scan
  -j, --load-hosts <file>     load the hosts list from <file>
  -k, --save-hosts <file>     save the hosts list to <file>
  -W, --wifi-key <wkey>       use this key to decrypt wifi packets (wep or wpa)
  -a, --config <config>       use the alternative config file <config>
Standard options:
  -v, --version               prints the version and exit
  -h, --help                  this help screen```</details>
esgie commented 3 years ago

This is not iSH related in any way and it is even not an issue, but simple lack of dependendencies for a package. You are trying to install individual apk file downloaded from edge repositories manually, but the package has some dependencies. And the dependencies are currentlybavailable only through edge repositories only as well. System isn’t aware of edge reposit You must add „edge” entries to your /etc/apk/repositories (possibly you want them masked under alias - see iSH Wiki for a tutorial, it’s all explained there) and then simply apk update && apk add ettercap (or apk add ettercap@testing in case of masking entries) will install ettercap plus all additional dependencies without any issues.

As an alternative, use alpine’s package search engine: https://pkgs.alpinelinux.org/contents to find out the packages containing missing files (e.g. libGeoIP.so.1 and libnet.so.9) and download them from edge repository in a same way and install individually before installing ettercap, but be aware that they might have some further dependencies to fulfill. Adding entries to apk config and letting apk solve dependencies itself would be far less time-consuming.

Btw please note that on default filesystem /etc/apk/repositories is being overwritten on some occassions, most likely each app update, with iSH’s own repositories (this way it meets Apple Store TOC). As there are already two or three issues opened here with that „issue”, don’t be surprised by that fact. To avoid it, you can install fresh filesystem from Alpine’s website; OR delete /ish/version file from the default filesystem; OR simply edit /etc/apk/repositories and then install desired packages in a row, without closing the system.

62f commented 3 years ago

@esgie The post I made proves that even after ettercap is installed, it will then turn itself into an iSH problem. Yes I see that the OP missed installing some dependencies but there is insufficient data supplied as to the actual method of having lost them. Your guess was equally as good as my foreshadowing, yet somebody in their questionable judgment chose to mark my comment as SPAM; which is n'okay since it led to generating your followup comment of which the 2nd paragraph was useful elsewhere.