Hello.
I am running Kali 2024.4 using VirtualBox. I am trying to run Legion but it is crashing after typing the target. I already tried some solutions like reinstalling or editing config file on [StageNmapSetting].
This already happened in past versions of Kali like 2024.2 but it was ok in 2024.3 and now back in 2024.4.
When running in terminal I get this:
07:35:59 PM] INFO Creating temporary project at application start… legion.py:145
INFO Established SQLite connection on file ‘/root/.local/share/legion/tmp/legion-t8wt1hd7.legion’ SqliteDbAdapter.py:58
INFO Wordlist was created/opened: /root/.local/share/legion/tmp/legion-nthya465-tool-output/legion-usernames.txt auxiliary.py:186
INFO Wordlist was created/opened: /root/.local/share/legion/tmp/legion-nthya465-tool-output/legion-passwords.txt auxiliary.py:186
INFO Loading settings file… settings.py:37
INFO Legion started successfully. legion.py:165
[07:36:05 PM] INFO runStagedNmap called for stage 1 controller.py:773
INFO Adding process: <db.entities.process.process object at 0x7f3e3c05bd70> ProcessRepository.py:69
INFO Queuing: nmap -T4 -sV -sSU -O -p T:80,81,443,4443,8080,8081,8082 -vvvv target -oA /root/.local/share/legion/tmp/legion-n7lw0b0j-running/nmap/20250119193605869462-nmapstage1 controller.py:704
INFO Running: nmap -T4 -sV -sSU -O -p T:80,81,443,4443,8080,8081,8082 -vvvv target -oA /root/.local/share/legion/tmp/legion-n7lw0b0j-running/nmap/20250119193605869462-nmapstage1 controller.py:624
INFO runCommand called for stage 1 controller.py:724
INFO runCommand connected for stage 1 controller.py:727
[07:36:24 PM] INFO Process 1 is done! controller.py:882
INFO Storing process output into db: <db.entities.processOutput.process_output object at 0x7f3e3c0abc20> ProcessRepository.py:86
INFO Halting process panel update timer as all processes are finished. controller.py:639
[07:36:25 PM] INFO runStagedNmap called for stage 2 controller.py:773
INFO Adding process: <db.entities.process.process object at 0x7f3e3c10d190> ProcessRepository.py:69
INFO Queuing: nmap -T4 -sV -sSU -O -p T:25,135,137,139,445,1433,3306,5432,U:137,161,162,1434 -vvvv [target] -oA controller.py:704
/root/.local/share/legion/tmp/legion-n7lw0b0j-running/nmap/20250119193625005869-nmapstage2
INFO Running: nmap -T4 -sV -sSU -O -p T:25,135,137,139,445,1433,3306,5432,U:137,161,162,1434 -vvvv [target] -oA controller.py:624
/root/.local/share/legion/tmp/legion-n7lw0b0j-running/nmap/20250119193625005869-nmapstage2
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