Results 1 to 3 of 3

Thread: Problems upgrading a Python tty shell in Kali 2022.2

  1. #1
    Join Date
    2022-May
    Posts
    2

    Question Problems upgrading a Python tty shell in Kali 2022.2

    Hi,

    I got my base Kali Linux VMWare image from (https://help.offensive-security.com/...irtual-Machine) which is 2021.3 and I performed apt update and apt upgrade to install the latest packages.

    I encountered this problem while interacting with reverse shells using Kali Linux. I think this is a usage problem, probably more related to bash or the terminal I am using.

    My Kali Linux VM information is as follows:
    Code:
    No LSB modules are available.
    Distributor ID: Kali
    Description:    Kali GNU/Linux Rolling
    Release:        2022.2
    Codename:       kali-rolling
    The typical way to upgrade a Python tty shell usually includes the following steps:
    • python -c "import pty;pty.spawn('/bin/bash');"
    • Ctrl + Z
    • stty raw -echo; fg (my Kali Linux image is using zsh, so I read that I had to put "fg" on the same line)
    • Enter
    • Enter
    • export TERM=xterm
    • export SHELL=bash
    • stty rows 32 cols 128


    However, even with the steps, tab auto-complete and arrow keys still do not work. Pressing the arrow keys will display the escape characters (^[[A, etc). When I revert the Kali VMWare image to 2021.3, the steps work and I can use tab auto-complete and the arrow keys.

    What has changed in Kali 2022.2 that now causes this change? How can I resolve this?

  2. #2
    Join Date
    2022-May
    Posts
    2
    Hi,

    I was wondering if any of the folks who maintain Kali Linux will be able to chime in on this? Which packages should I revert in order to solve this problem?

  3. #3
    Join Date
    2018-Jun
    Posts
    26
    This would do better as a bugs.kali.org report. Will look into this and see, and will report it if I can replicate the issue.

Similar Threads

  1. Does anyone have problems with Terminal on Nethunter 2022.1?
    By Mike9876 in forum NetHunter General Questions
    Replies: 2
    Last Post: 2 Weeks Ago, 00:15
  2. Python giving me problems in kali linux
    By Musa_Faila in forum General Archive
    Replies: 0
    Last Post: 2020-10-06, 23:08
  3. problems while upgrading kali
    By baudouin in forum Installing Archive
    Replies: 2
    Last Post: 2020-02-24, 09:41
  4. Replies: 1
    Last Post: 2016-02-26, 05:43
  5. Replies: 5
    Last Post: 2014-11-09, 19:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •