Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: tuple indices must be integers or slices, not str (legion crashes) #32

Open
sagisar1 opened this issue Dec 4, 2024 · 1 comment

Comments

@sagisar1
Copy link

sagisar1 commented Dec 4, 2024

Hello, I got the following error described in the description. legion opens, but when enetering a host to scan, after a while it crashes. I ma using the native binary of kali linux, not from the repository.
OS: kali linux 2024.4
python version - 3.12.7
Legion version (indicated by the help utility in legion ) - 0.4.3-1700529501

full Error is below:

[13:14:51] INFO     Creating temporary project at application start...               legion.py:145
[13:14:52] INFO     Established SQLite connection on file                    SqliteDbAdapter.py:58
                    '/root/.local/share/legion/tmp/legion-kxbq58b9.legion'                        
           INFO     Wordlist was created/opened:                                  auxiliary.py:186
                    /root/.local/share/legion/tmp/legion-of4y99l7-tool-output/leg                 
                    ion-usernames.txt                                                             
           INFO     Wordlist was created/opened:                                  auxiliary.py:186
                    /root/.local/share/legion/tmp/legion-of4y99l7-tool-output/leg                 
                    ion-passwords.txt                                                             
[13:14:53] INFO     Loading settings file..                                         settings.py:37
           INFO     Legion started successfully.                                     legion.py:165
[13:19:04] INFO     runStagedNmap called for stage 1                             controller.py:773
           INFO     Adding process: <db.entities.process.process object at ProcessRepository.py:69
                    0x7f168fe78f20>                                                               
           INFO     Queuing: nmap -T4 -sV -sSU -O -p                             controller.py:704
                    T:80,81,443,4443,8080,8081,8082 -vvvv 10.129.132.79 -oA                       
                    /root/.local/share/legion/tmp/legion-24b0cuoz-running/nmap/2                  
                    0241204131904920302-nmapstage1                                                
           INFO     Running: nmap -T4 -sV -sSU -O -p                             controller.py:624
                    T:80,81,443,4443,8080,8081,8082 -vvvv 10.129.132.79 -oA                       
                    /root/.local/share/legion/tmp/legion-24b0cuoz-running/nmap/2                  
                    0241204131904920302-nmapstage1                                                
[13:19:05] INFO     runCommand called for stage 1                                controller.py:724
           INFO     runCommand connected for stage 1                             controller.py:727
[13:19:35] INFO     Process 1 is done!                                           controller.py:882
           INFO     Storing process output into db:                        ProcessRepository.py:86
                    <db.entities.processOutput.process_output object at                           
                    0x7f168f543fb0>                                                               
           INFO     Halting process panel update timer as all processes are      controller.py:639
                    finished.                                                                     
           INFO     runStagedNmap called for stage 2                             controller.py:773
           INFO     Adding process: <db.entities.process.process object at ProcessRepository.py:69
                    0x7f168f5a5a00>                                                               
           INFO     Queuing: nmap -T4 -sV -sSU -O -p                             controller.py:704
                    T:25,135,137,139,445,1433,3306,5432,U:137,161,162,1434 -vvvv                  
                    10.129.132.79 -oA                                                             
                    /root/.local/share/legion/tmp/legion-24b0cuoz-running/nmap/2                  
                    0241204131935926471-nmapstage2                                                
           INFO     Running: nmap -T4 -sV -sSU -O -p                             controller.py:624
                    T:25,135,137,139,445,1433,3306,5432,U:137,161,162,1434 -vvvv                  
                    10.129.132.79 -oA                                                             
                    /root/.local/share/legion/tmp/legion-24b0cuoz-running/nmap/2                  
                    0241204131935926471-nmapstage2                                                
[13:19:36] INFO     runCommand called for stage 2                                controller.py:724
           INFO     runCommand connected for stage 2                             controller.py:727
Traceback (most recent call last):
  File "/usr/share/legion/ui/view.py", line 1442, in updateInterface
    self.updateHostsTableView()
  File "/usr/share/legion/ui/view.py", line 1053, in updateHostsTableView
    self.HostsTableModel.sort(3, Qt.SortOrder.DescendingOrder)
  File "/usr/share/legion/ui/models/hostmodels.py", line 140, in sort
    array.append(IP2Int(self.__hosts[i]['ip']))
                        ~~~~~~~~~~~~~~~^^^^^^
  File "lib/sqlalchemy/cyextension/resultproxy.pyx", line 54, in sqlalchemy.cyextension.resultproxy.BaseRow.__getitem__
TypeError: tuple indices must be integers or slices, not str
zsh: IOT instruction  sudo legion

@sagisar1 sagisar1 changed the title TypeError: tuple indices must be integers or slices, not str (LEgion crashes) TypeError: tuple indices must be integers or slices, not str (legion crashes) Dec 5, 2024
@sagisar1
Copy link
Author

sagisar1 commented Jan 8, 2025

@Hackman238 Dude, is there any update? it's been a month and you havn't say anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant