ETTERLOG(8)

πŸ’– ETTERLOG(8) β€” the log analyzer bestie πŸ’–

okay so real talk: this is the manual page for etterlog, and it lives in the System Manager's Manual section 8. It's the lil sister tool to ettercap, and she's iconic. Let's get into it. πŸ¦‹


✨ NAME ✨

etterlog β€” log analyzer for ettercap log files πŸ’…


🌸 SYNOPSIS 🌸

etterlog [OPTIONS] FILE

πŸŽ€ DESCRIPTION πŸŽ€

So etterlog is the log analyzer for logfiles created by ettercap. She can handle both compressed logfiles (the ones created with -Lc) or uncompressed ones β€” she's not picky, she loves all her children equally. 🫢

With this tool you can manipulate binary files however you like and print data in different ways every single time you want, which is the whole glow-up compared to the previous logging system, which used to dump everything in one single static manner. the way that's a downgrade, honestly. 😭

You'll be able to dump traffic from just one connection of your choice, from just one or more hosts, and print data in hex, ascii, binary, etc... ✨

TIP: All non-useful messages are printed to stderr, so you can save the output from etterlog with the following command:
etterlog [options] logfile > outfile

Thus you can dump, for example, a binary file from an ftp connection if you print the data in binary mode, without headers, and selecting only the ftp server as the source of the communication. periodt. πŸ’…


πŸ‘‘ GENERAL OPTIONS πŸ‘‘

  • -a, --analyze β€” Analyze a log file and display some interesting statistics. it's giving data girlie πŸ“Š
  • -c, --connections β€” Parse the log file and print a table of unique connections (port to port). This option can be used only on LOG_PACKET logfiles. On LOG_INFO logfiles it is useless. πŸ’€
TIP: you can search for a particular host by using the following command:
etterlog -c logfile.ecp | grep 10.0.0.1
  • -f, --filter <TARGET> β€” Print only packets coming from or going to TARGET. The TARGET specification is the same as in ettercap. TARGET is in the form MAC/IPs/PORTs. With IPv6 support enabled, TARGET is in the form MAC/IPs/IPv6/PORTs. Omitting one or more of its parts will be equivalent to setting them to ANY. IPs and IPv6 will be treated as one part, so that it's only set to ANY if both IPs and IPv6 is omitted. This concludes in a result most users would expect. 🫢

If the log type is LOG_INFO the target is used to display hosts matching the mac, ip and having the specified port(s) open. For example the target //80 will display only information about hosts with a running web server. 🌐

  • -r, --reverse β€” Reverse the matching in the TARGET selection. It means not(TARGET). All but the selected TARGET. πŸ”„
  • -t, --proto <PROTO> β€” Sniff only PROTO packets (default is TCP + UDP). This option is only useful in "simple" mode. If you start ettercap in interactive mode both TCP and UDP are sniffed. PROTO can be "tcp", "udp" or "all" for both. 🌈
  • -F, --filcon <CONNECTION> β€” Print packets belonging only to this CONNECTION. CONNECTION is in the form PROTO:SOURCE:DEST. SOURCE and DEST are in the form IP:PORT.

example:

etterlog -F TCP:10.0.0.23:3318:198.182.196.56:80
  • -s, --only-source β€” Display only packets that are sent by the source of the selected CONNECTION. This option makes sense only in conjunction with the -F option. πŸ‘‘
TIP: if you want to save a file transferred in an HTTP or FTP connection, you can use the following command:
etterlog -B -s -n -F TCP:10.0.0.1:20:10.0.0.2:35426 logfile.ecp > example.tar.gz
  • -d, --only-dest β€” Same as --only-source but it filters on the destination host. 🎯
  • -n, --no-headers β€” Do not print the header of each packet. This option is useful if you want to save a file in binary format (the -B option). Without the headers you can redirect the output to a file and you will get the original stream. 🧚
NOTE: the time stamp in the header is in the form: Thu Mar 27 23:03:31 2003 [169396], the value in the square brackets is expressed in microseconds.
  • -m, --show-mac β€” In the headers, show also the mac addresses corresponding to the ip addresses. πŸ“
  • -k, --color β€” If used in conjunction with -F it displays the source and dest of the connection using different colors. If used with a LOG_INFO file it prints LAN hosts in green, REMOTE hosts in blue and GATEWAYS in red. 🌈
  • -l, --only-local β€” Used displaying an INFO file, it displays information only about local hosts. 🏠
  • -L, --only-remote β€” Used displaying an INFO file, it displays information only about remote hosts. 🌍

πŸ” SEARCH OPTIONS πŸ”

  • -e, --regex <REGEX> β€” Display only packets matching the regex <REGEX>. If this option is used against a LOG_PACKET logfile, the regex is executed on the payload of the packet. If the type is LOG_INFO, the regex is executed on all the fields of the host profile (OS, banners, service and ethernet adapter).
NOTE: the regex is compiled with the REG_ICASE flag (case insensitive). πŸ™ˆ
  • -u, --user <USER> β€” Display information about this user. The search is performed over all the user/pass couples collected across all hosts. πŸ”Ž
  • -p, --passwords β€” Print only the collected account information for each host. This prevents the huge profile output. It can be used in conjunction with the -u option to filter the users. An asterisk '*' used in front of an account represents a failed login attempt. πŸ’€
  • -i, --show-client β€” Show the client ip address when displaying the collected users and passwords. It may be useful when ACLs are in place. 🫢
  • -I, --client <IP> β€” Show passwords only coming from a specific <IP>. This is useful to view all the usernames and passwords of a client. πŸ‘€

πŸ–ŠοΈ EDITING OPTIONS πŸ–ŠοΈ

  • -C, --concat β€” Use this option to concatenate two (or more) files into one single file. This is useful if you have collected ettercap log files from multiple sources and want to have an unified report. The output file must be specified with the -o option and the input files are listed as normal arguments. 🧩

example:

etterlog -C -o outfile input1 input2 input3
  • -o, --outfile <FILE> β€” specifies the output file for a concatenation. πŸ“

🎨 VISUALIZATION METHOD 🎨

  • -B, --binary β€” Print data as they are, in binary form. Useful to dump binary data to a file (as described above). 🧊
  • -X, --hex β€” Print the packets in hex format.

example:

the string "HTTP/1.1 304 Not Modified" becomes:

0000: 4854 5450 2f31 2e31 2033 3034 204e 6f74  HTTP/1.1 304 Not
0010: 204d 6f64 6966 6965 64                    Modified
  • -A, --ascii β€” Print only "printable" characters, the others are displayed as dots '.' ✨
  • -T, --text β€” Print only the "printable" characters and skip the others. 🚫
  • -E, --ebcdic β€” Convert an EBCDIC text to ASCII. πŸ”
  • -H, --html β€” Strip all html tags from the text. A tag is every string between '<' and '>'. 🧼

example:

<title>This is the title</title>, but the following <string> will not be displayed.

This is the title, but the following will not be displayed.

  • -U, --utf8 <encoding> β€” Print the packets in UTF-8 format. The <encoding> parameter specifies the encoding to be used while performing the conversion. Use the iconv --list command to obtain a list of all supported encodings. 🌐
  • -Z, --zero β€” Print always the void string. i.e. print only header information and no packet content will be printed. πŸ«₯
  • -x, --xml β€” Print the host information in xml form, so you can parse it with your favourite program. πŸ–₯️

The DTD associated with the xml output is in share/etterlog.dtd


⭐ STANDARD OPTIONS ⭐

  • -v, --version β€” Print the version and exit. πŸ‘‹
  • -h, --help β€” Print the help screen with a short summary of the available options. πŸ†˜

πŸ’« EXAMPLES πŸ’«

Here are some examples of using etterlog. no cap, these are useful. 🫢

etterlog -k -l dump.eci

Displays information about local hosts in different colors. 🌈

etterlog -X dump.ecp

Prints packets in HEX mode with full headers. πŸ”₯

etterlog -c dump.ecp

Displays the list of connections logged in the file. πŸ”—

etterlog -Akn -F TCP:10.0.0.1:13423:213.203.143.52:6666 dump.ecp

Displays the IRC traffic made by 10.0.0.1 in ASCII mode, without headers information and in colored mode. πŸ’¬

etterlog -H -t tcp -f //80 dump.ecp

Dumps all HTTP traffic and strips html tags. 🌐

etterlog -Z -r -f /10.0.0.2/22 dump.ecp

Displays only the headers of all connections except ssh on host 10.0.0.2 🚫

etterlog -A -e 'user' -f //110 dump.ecp

Displays only POP packets containing the 'user' regexp (case insensitive). πŸ“¬

etterlog -u root dump.eci

Displays information about all the accounts of the user 'root'. πŸ‘‘

etterlog -e Apache dump.eci

Displays information about all the hosts running 'Apache'. πŸͺΆ

etterlog -e Linux dump.eci

Displays information about all the hosts with the 'Linux' operating system. 🐧

etterlog -t tcp -f //110 dump.eci

Displays information about all the hosts with the tcp port 110 open. πŸšͺ

etterlog -t udp dump.eci

Displays information about all the hosts with at least one UDP port open. πŸ“‘

etterlog -B -s -n -F TCP:10.0.0.1:20:10.0.0.2:35426 logfile.ecp > example.tar.gz

Dumps in binary form the data sent by 10.0.0.1 over the data port of FTP. Since the headers are omitted, you will get the file as it was. 🧊


πŸ’œ ORIGINAL AUTHORS πŸ’œ

the founding mothers and fathers of this whole situation, we stan:

  • Alberto Ornaghi (ALoR) <alor@users.sf.net>
  • Marco Valleri (NaGA) <naga@antifork.org>

🌟 PROJECT STEWARDS 🌟

  • Emilio Escobar (exfil) <eescobar@gmail.com>
  • Eric Milam (Brav0Hax) <jbrav.hax@gmail.com>

πŸ”₯ OFFICIAL DEVELOPERS πŸ”₯

  • Mike Ryan (justfalter) <falter@gmail.com>
  • Gianfranco Costamagna (LocutusOfBorg) <costamagnagianfranco@yahoo.it>
  • Antonio Collarino (sniper) <anto.collarino@gmail.com>
  • Ryan Linn <sussuro@happypacket.net>
  • Jacob Baines <baines.jacob@gmail.com>

πŸ¦‹ CONTRIBUTORS πŸ¦‹

  • Dhiru Kholia (kholia) <dhiru@openwall.com>
  • Alexander Koeppe (koeppea) <format_c@online.de>
  • Martin Bos (PureHate) <purehate@backtrack.com>
  • Enrique Sanchez
  • Gisle Vanem <giva@bgnett.no>
  • Johannes Bauer <JohannesBauer@gmx.de>
  • Daten (Bryan Schneiders) <daten@dnetc.org>

🌈 SEE ALSO 🌈

ettercap(8) etterfilter(8) etter.conf(5) ettercap_curses(8) ettercap_plugins(8) ettercap-pkexec(8)

iykyk, go read those too, bestie. 🫢


and that's the whole page, bestie!! πŸ’– this one shipped as part of ettercap 0.8.4.1 β€” love that for us. stay safe out there, hydrate, and don't forget to pipe your stderr. βœ¨πŸŽ€πŸ¦‹