Checking for updates and updating Tranalyzer to a new version

updating

Checking for an update

In order to check whether a new version of Tranalyzer2 is available, you can simply use the t2update alias or the setup.sh -C option:

t2update

Tranalyzer2 0.9.1lmw1 is already the latest version available!

Alternatively, if t2_aliases are not available, you can replace the previous command with:

cd /home/user/tranalyzer2-0.9.1lmw1

./setup.sh -C

Tranalyzer2 0.9.1lmw1 is already the latest version available!

That was easy! We have the latest version and no update is available.

Updating to the latest version

Now what if there was a new version available? Let’s assume we are currently using an older version…

t2update

Tranalyzer2 version 0.9.1lmw1 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.1lmw1'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do?

We now have several options. Let’s try them all, starting by the end!

t2update - do nothing

Do nothing (exit) simply aborts the update process. This is the default option if the answer is not recognized, e.g., if the Enter key was typed.

t2update - see the changeLog

See the ChangeLog can be used to review the content of the update. Important changes, such as new features and bug fixes, are listed.

t2update

Tranalyzer2 version 0.9.1lmw1 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.1lmw1'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 4

ChangeLog for Tranalyzer2 version 0.9.1lmw1 (Jan 2024)

    * bgpDecode:
        * Improved scripts and plugin report

    * dhcpDecode:
        * Fixed reporting of DHCP messages with types > 8

    * ftpDecode, ircDecode, payloadDumper:
        * Fixed handling of retransmissions and out-of-order packets

    * payloadDumper:
        * Added capability to dump SCTP payload
        * Improved handling of TCP Keep-Alive packets
        * Added packet mode

    * sshDecode:
        * Added packet mode

    * sslDecode:
        * Updated SSL blacklist

    * tcpFlags:
        * Flag TCP Keep-Alive packets in tcpFStat
        * Improved detection of TCP sequence number anomalies

    * torDetector:
        * Improved detection for Tor version <= 0.4.5.10

    * t2docker:
        * Minor improvements

    * t2fm:
        * Added -y/--yes option

    * t2locate:
        * Refactoring for compatibility with macOS and older systems

    * t2py:
        * Added support for tawk: T2Utils.TAWK and T2Utils.tawk()
        * Added support for following streams: T2.follow_stream() and T2Utils.follow_stream()
        * Added support for streaming flows: T2.streaming and T2.stream()
        * Improved error reporting for functions using the subprocess module
        * Improved API documentation
        * Minor improvements

    * tawk:
        * New base64() function
        * New follow_stream() function
        * New t2rsort() function to sort in reverse order
        * Added variables descriptions (-V option) for BGP and SSL/TLS

    * t2_aliases:
        * Added alias for t2locate
        * Improved Bash and ZSH completions

Tranalyzer2 version 0.9.1lmw1 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.1lmw1'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do?

t2update - download

Download can be used to fetch the latest version of Tranalyzer2. The output folder default to one level above the location of the setup.sh script, but can be changed before the download is started.

t2update

Tranalyzer2 version 0.9.1lmw1 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.1lmw1'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 3
Choose output folder (type enter to use '/home/user'):
--2024-01-10 11:07:53--  https://tranalyzer.com/download/tranalyzer/tranalyzer2-0.9.1lmw1.tar.gz
Connecting to https://tranalyzer.com... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘/home/user/tranalyzer2-0.9.1lmw1.tar.gz’

/home/user/tranalyzer2-0.     [ <=>                ]       0  --.-KB/s    in 0s

2024-01-10 11:07:53 (0.00 B/s) - ‘/home/user/tranalyzer2-0.9.1lmw1.tar.gz’ saved [0/0]

Successfully downloaded 'tranalyzer2-0.9.1lmw1.tar.gz'
ls /home/user/tranalyzer2-0.9.1lmw1.tar.gz

tranalyzer2-0.9.1lmw1.tar.gz

t2update - download and extract

Download and extract can be used to fetch the latest version of Tranalyzer2 and extract it under the appropriate name including the version, i.e, tranalyzer2-0.9.1lmw1. The output folder default to one level above the location of the setup.sh script, but can be changed before the download is started. If the destination folder already exists, you will be prompted for confirmation.

t2update

Tranalyzer2 version 0.9.1lmw1 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.1lmw1'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 2
Choose output folder (type enter to use '/home/user'):
--2024-10-09 11:07:53--  https://tranalyzer.com/download/tranalyzer/tranalyzer2-0.9.1lmw1.tar.gz
Connecting to https://tranalyzer.com... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘/home/user/tranalyzer2-0.9.1lmw1.tar.gz’

/home/user/tranalyzer2-0.9.1  [ <=>                ]       0  --.-KB/s    in 0s

2024-01-09 11:07:53 (0.00 B/s) - ‘/home/user/tranalyzer2-0.9.1lmw1.tar.gz’ saved [0/0]

Successfully downloaded 'tranalyzer2-0.9.1lmw1.tar.gz'

'/home/user/tranalyzer2-0.9.1lmw1.tar.gz' successfully extracted under '/home/user/tranalyzer2-0.9.1'
ls /home/user/tranalyzer2-0.9.1lmw1

ChangeLog   autogen.sh  plugins     setup.sh    tranalyzer2
README.md   doc         scripts     tests       utils

t2update - download and overwrite

Download and overwrite can be used to fetch the latest version of Tranalyzer2 and extract it under the name used by the current version thus overwriting it. The output folder default to one level above the location of the setup.sh script, but can be changed before the download is started. If the destination folder already exists, you will be prompted for confirmation and given the opportunity to specify a different name.

t2update

Tranalyzer2 version 0.9.1lmw1 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.1lmw1'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 1
Choose output folder (type enter to use '/home/user'):
--2024-01-09 13:09:04--  https://tranalyzer.com/download/tranalyzer/tranalyzer2-0.9.1lmw1.tar.gz
Connecting to https://tranalyzer.com... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘/home/user/tranalyzer2-0.9.1lmw1.tar.gz’

/home/user/tranalyzer2-0.9.1     [ <=>                ]       0  --.-KB/s    in 0s

2024-01-09 13:09:13 (0.00 B/s) - ‘/home/user/tranalyzer2-0.9.1lmw1.tar.gz’ saved [0/0]

Successfully downloaded 'tranalyzer2-0.9.1lmw1.tar.gz'

'/home/user/tranalyzer2-0.9.1lmw1.tar.gz' successfully extracted under '/home/user/tranalyzer2-0.9.1'
ls /home/user/tranalyzer2-0.9.1lmw1

ChangeLog   autogen.sh  plugins     setup.sh    tranalyzer2
README.md   doc         scripts     tests       utils