GoVanguard / legion

Legion is an open source, easy-to-use, super-extensible and semi-automated network penetration testing tool that aids in discovery, reconnaissance and exploitation of information systems.
GNU General Public License v3.0
1k stars 168 forks source link

"Process (x) exited with code 11" #230

Closed gray-area closed 1 year ago

gray-area commented 1 year ago

I am having an issue where Legion keeps crashing the processes. When I run it from terminal, the error produced is: "Process 1 exited with code 11". , and it continues to do this on every subsequent spawned process.

I have tried to uninstall, re-install and the issue still persists. I did notice on the re-install, it threw a few errors for /usr/share/legion/ui/models/*.py containing this: "SyntaxWarning: "is not" with a literal. Did you mean "!="?". The warning seems to be coming from the Python update, but I am not sure if it is related.

gray-area commented 1 year ago

I am running Kali Linux (Linux 5.18.0-kali7-amd64 x86_64) with all current updates, as of today.

gray-area commented 1 year ago

I have confirmed that Legion is broken in the Kali upgrade. I am not sure what has broken it, but I recreated the same behavior in 2 other Kali dev machines after the upgrade.

xeen3d commented 1 year ago

Hi have same issue here. using legion in my Daily Workflow for Audit our Servers it was not nice that such a Tool is untested on Operating system Updates !

Looks a bit like "Hey there is a Russian Plain maybe is a Bomber" Oh no problem we wait until he flight above us is a 50 % chance that all is ok

do not misunderstood me I like your Tool very well otherwise I would not use it in my daily work I also know you can not check every Operating system update but kali is in my eyes the main Linux with most installed Legion instances so it would be a good Idea to check Updates on the Main installation basis.

For me the result of that is make a VM with kali and snapshot every update than check if my workflow tools are still working and if not go back and wait until the issue was fixed. More Work than I will do, ;-) and that only for one untested app testing and warning was in my Eyes the better way, you have a little bit more work todo but also having less Issues on kali Updates. And less Issues = less work for Support and finding Bugs after many users can not use the Tool.

A win win situation and better than waiting if the plain was a bomber or not. ;-)

Best

Andre

Dabinchy commented 1 year ago

Hi have same issue here.

gray-area commented 1 year ago

There have been updates, but no fix has been released yet. There is also no workaround that I am aware of.

sscottgvit commented 1 year ago

I'll check this out today. I'm not seeing the same issue, so let me do a fresh kali install.

gray-area commented 1 year ago

Thanks @sscottgvit

sscottgvit commented 1 year ago

Interesting. So I'm not having this problem on a fresh install, but there are more than a few now reporting this same issue on systems that have been upgraded. Makes me suspect PyQt. Anyone mind opening term, running legion to reproduce and posting the entire output on the console?

gray-area commented 1 year ago

Here is the output after launching Legion. The last line is where it crashes, then it repeats itself over and over, crashing each time.

"time": "2022-10-04 13:46:39,748", "name": "Creating temporary project at application start...", "level": "INFO", "data": {"logger_name": "legion-startup"}, "context": {"module": "legion", "filename": "legion.py", "line": 118}}
{"time": "2022-10-04 13:46:39,795", "name": "Wordlist was created/opened: /home/REDACTED/.local/share/legion/tmp/legion-iaox05yt-tool-output/legion-usernames.txt", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "auxiliary", "filename": "auxiliary.py", "line": 115}}
{"time": "2022-10-04 13:46:39,796", "name": "Wordlist was created/opened: /home/REDACTED/.local/share/legion/tmp/legion-iaox05yt-tool-output/legion-passwords.txt", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "auxiliary", "filename": "auxiliary.py", "line": 115}}
{"time": "2022-10-04 13:46:39,992", "name": "Loading settings file..", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "settings", "filename": "settings.py", "line": 37}}
{"time": "2022-10-04 13:46:40,228", "name": "Legion started successfully.", "level": "INFO", "data": {"logger_name": "legion-startup"}, "context": {"module": "legion", "filename": "legion.py", "line": 137}}
{"time": "2022-10-04 13:47:34,982", "name": "runStagedNmap called for stage 1", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "controller", "filename": "controller.py", "line": 739}}
{"time": "2022-10-04 13:47:35,241", "name": "Queuing: nmap -T4 -sV -sT -p T:80,81,443,4443,8080,8081,8082 REDACTED -oA /home/REDACTED/.local/share/legion/tmp/legion-se96jerm-running/nmap/20221004134734988490-nmapstage1", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "controller", "filename": "controller.py", "line": 673}}
{"time": "2022-10-04 13:47:35,425", "name": "runCommand called for stage 1", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "controller", "filename": "controller.py", "line": 690}}
{"time": "2022-10-04 13:47:35,425", "name": "runCommand connected for stage 1", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "controller", "filename": "controller.py", "line": 693}}
{"time": "2022-10-04 13:47:38,421", "name": "Process 1 Crashed!", "level": "INFO", "data": {"logger_name": "legion"}, "context": {"module": "controller", "filename": "controller.py", "line": 798}}
Close Tab: 0
sscottgvit commented 1 year ago

Can you run the following and return the hash? md5sum /home/REDACTED/.local/share/legion/legion.conf md5sum /usr/share/legion/legion.py md5sum /usr/share/legion/controller/controller.py md5sum /usr/share/legion/parsers/Parser.py

gray-area commented 1 year ago

Here are the hash values:

ecb33a888ba6d573b033906473e2b044  /home/REDACTED/.local/share/legion/legion.conf
538fd2ddf545d2ecd2204c9b82d638a5  /usr/share/legion/legion.py
96ef167af8a58d88fe55a225b7ad84fe  /usr/share/legion/controller/controller.py
b93f41380396b36e4b06e9a1f91b378c  /usr/share/legion/parsers/Parser.py
sscottgvit commented 1 year ago

@gray-area Have you made any changes to legion.conf? It seems to be different than mind here on a fresh install.

gray-area commented 1 year ago

I have not. At least not that I am aware of. My workflow consists only of placing the IP addresses in the field, then running. I dont have any saved projects either.

sscottgvit commented 1 year ago

Can you mv /home/REDACTED/.local/share/legion/legion.conf /tmp/legion.conf.orig sudo apt reinstall legion -y md5sum /home/REDACTED/.local/share/legion/legion.conf

gray-area commented 1 year ago

The legion.conf file was not reinstalled. Errors from output are listed below:

Preparing to unpack .../legion_0.3.8-0kali5_all.deb ...
Unpacking legion (0.3.8-0kali5) over (0.3.8-0kali5) ...
Setting up legion (0.3.8-0kali5) ...
/usr/share/legion/ui/models/cvemodels.py:55: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not len(self.__cves) is 0:
/usr/share/legion/ui/models/hostmodels.py:43: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not len(self.__hosts) is 0:
/usr/share/legion/ui/models/processmodels.py:43: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not len(self.__processes) is 0:
/usr/share/legion/ui/models/scriptmodels.py:44: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not len(self.__scripts) is 0:
/usr/share/legion/ui/models/servicemodels.py:40: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not len(self.__services) is 0:
/usr/share/legion/ui/models/servicemodels.py:184: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not len(self.__serviceNames) is 0:
sscottgvit commented 1 year ago

@gray-area Can you start legion then check again please? Also, can you check dmesg for any segfaults relating to libpthread or libQt5Widgets?

gray-area commented 1 year ago

Here is the md5:

ecb33a888ba6d573b033906473e2b044  /home/REDACTED/.local/share/legion/legion.conf

There were no errors for libpthread, but the libQt5Widgets did have an entry.

[ 2955.135702] python3[6193]: segfault at 55f51ad2f626 ip 00007fbeae37944a sp 00007ffe0dc4cac0 error 4 in libQt5Widgets.so.5.15.4[7fbeae34e000+3c3000]
sscottgvit commented 1 year ago

Interesting. I suspect that's part of the issue. Any other segfaults or obvious problems around that same time it crashed?

sscottgvit commented 1 year ago

@gray-area Can you return the results for: pip -freeze apt-search pyqt | grep installed python3 --version

gray-area commented 1 year ago

pip freeze:

aadict==0.2.3
adblockparser==0.7
adns===1.4-py1
AdvancedHTTPServer==2.2.0
aiocmd==0.1.2
aioconsole==0.3.1
aiodns==3.0.0
aiofiles==0.8.0
aiohttp==3.8.1
aiohttp-apispec==2.2.1
aiohttp-jinja2==1.2.0
aiohttp-security==0.4.0
aiohttp-session==2.9.0
aiomultiprocess==0.9.0
aioredis==1.3.1
aiosignal==1.2.0
aiosmb==0.2.50
aiosqlite==0.17.0
aiowinreg==0.0.7
ajpy==0.0.4
alabaster==0.7.12
alembic==1.7.6.dev0
altgraph==0.17.2
amqp==5.1.0
androguard==3.4.0a1
aniso8601==9.0.1
anyio==3.6.1
anyjson==0.3.3
apispec==5.2.2
apispec-webframeworks==0.5.2
appdirs==1.4.4
APScheduler==3.9.1
argcomplete==1.10.0
argon2-cffi==21.1.0
arjun==2.1.41
arrow==1.2.2
artifacts==20220219
asciitree==0.3.3
asgiref==3.5.0
asn1crypto==1.5.1
asset==0.6.13
asteval==0.9.25
asttokens==2.0.8
async-lru==1.0.3
async-timeout==4.0.2
asysocks==0.1.2
attrs==22.1.0
autobahn==22.1.1
Automat==20.2.0
awscli==1.24.8
Babel==2.8.0
backcall==0.2.0
backdoor-factory==0.0.0
backoff==2.1.2
base58==1.0.3
basemap==1.2.1
bbrf==1.3.0
bcrypt==3.2.0
beautifulsoup4==4.11.1
bidict==0.21.3
billiard==4.0.0
binwalk==2.3.3
bleach==5.0.0
blinker==1.4
bluepy==1.3.0
boltons==21.0.0
boto3==1.24.43
botocore==1.27.43
bottle==0.12.21
Bottleneck==1.3.2
Brlapi==0.8.4
Brotli==1.0.9
bs4==0.0.1
bytecode==0.13.0
CacheControl==0.12.11
cachetools==5.0.0
cairocffi==1.3.0
capstone==4.0.2
cbor==1.0.0
celery==5.2.6
censys==2.1.7
Cerberus==1.3.2
certifi==2022.6.15
Certipy==2.0.9
cffi==1.15.1
cfscrape==1.9.5
chardet==3.0.4
charset-normalizer==2.1.0
cheroot==8.6.0+ds1
CherryPy==18.8.0
cherrypy-cors==1.6
chirp==0.3.0.dev0
chrome-gnome-shell==0.0.0
cli-helpers==2.2.1
click==8.1.3
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
cloudscraper==1.2.58
cmd2==0.0.0
cmseek @ file:///root/Tools/CMSeeK
colorama==0.4.5
colorclass==2.2.0
colored==1.4.3
coloredlogs==15.0.1
colorlog==6.6.0
commix @ file:///root/Tools/commix
commonmark==0.9.1
configobj==5.0.6
constantly==15.1.0
coreapi==2.3.3
coreschema==0.0.4
coverage==6.2
cpe==1.2.1
crackmapexec==5.2.2
crcelk==1.3
crit==3.17.1
cryptography==3.4.8
cssselect==1.1.0
cssselect2==0.5.0
ctypescrypto==0.5
cupshelpers==1.0
cvss==2.4
cx-Oracle==8.3.0
cycler==0.11.0
Cython==0.29.30
DateTime==4.5
dbus-python==1.3.2
debtags==2.1
debugpy==1.6.2
decorator==5.1.1
defusedxml==0.7.1
degoogle==1.0.1
Deprecated==1.2.13
deprecation==2.1.0
dfdatetime==20220131
dfvfs==20211228
dfwinreg==20211207
dhcpig==0.0.0
dhcplib==0.1.1
dicttoxml==1.7.4
dirsearch==0.4.2
distlib==0.3.5
distorm3==3.4.1
distro==1.7.0
Django==3.2.15
django-appconf==1.0.5
django-auditlog==1.0.0
django-celery-results==2.3.1
django-crispy-forms==1.14.0
django-crum==0.7.9.dev0
django-dbbackup==3.3.0
django-environ==0.4.4
django-extensions==3.2.1
django-extra-views==0.14.0
django-fieldsignals==0.7.0
django-filter==22.1
django-guardian==2.4.0
django-imagekit==4.1.0
django-multiselectfield==0.1.12
django-polymorphic==3.1.0
django-ratelimit==3.0.1
django-split-settings==1.1.0
django-tagging==0.5.0
django-tagulous==1.3.3
django-watson==1.6.2
djangorestframework==3.13.1
djangorestframework-guardian==0.3.0
dnsgen==1.0.4
dnslib==0.9.19
dnspython==2.0.0
dnstwist==20220815
DNSValidator @ file:///root/Tools/dnsvalidator
docker==5.0.3
docopt==0.6.2
docutils==0.17.1
donut-shellcode==0.9.3
drf-spectacular==0.22.0
drf-yasg==1.21.3
dronekit==2.9.2
dropbox==11.30.0
dscan-4E656F==0.1.5
dsinternals==1.2.4
dsnap==1.0.0
dtfabric==20220219
easygui==0.98.1
EasyProcess==0.3
ecdsa==0.18.0
elasticsearch==7.17.5
email-validator==1.1.2
emailfinder==0.3.0b0
entrypoints==0.4
ephem==4.1.3
et-xmlfile==1.1.0
evdev==1.6.0
executing==0.10.0
ExifRead==3.0.0
fake-useragent==0.1.11
Faker==0.9.3
faraday-agent-dispatcher==2.2.0
faraday-agent-parameters-types==1.0.3
faraday-cli==2.1.6
faraday-plugins==1.6.8
faradaysec==4.0.4
fastapi==0.79.0
fasteners==0.17.3
fastjsonschema==2.15.1
feedparser==6.0.8
fierce==1.5.0
filebytes==0.9.12
filedepot==0.5.2
filelock==3.8.0
filteralchemy==0.1.0
flasgger==0.9.5
Flask==2.0.3
Flask-Classful==0.14.1
Flask-Cors==3.0.9
Flask-KVSession-fork==0.6.4
Flask-Limiter==2.6.2
Flask-Login==0.5.0
Flask-Mail==0.9.1
Flask-Principal==0.4.0
Flask-RESTful==0.3.9
flask-restx==0.5.1
Flask-Security-Too==4.0.0
Flask-SocketIO==5.0.1
Flask-SQLAlchemy==2.5.1
Flask-WTF==0.14.3
flatbuffers==2.0.6+dfsg1.1
fleep==1.0.1
fonttools==4.34.4
freezegun==1.0.0
frozenlist==1.3.0
fs==2.4.16
future==0.18.2
fuzzywuzzy==0.18.0
gattlib==0.20201113
GDAL==3.5.1
GeoIP==1.3.2
geoip2==2.9.0
geojson==2.5.0
gevent==21.12.0
gitdb==4.0.9
GitPython==3.1.27
globre==0.1.5
goofile==1.6
google==2.0.3
google-api-python-client==1.7.11
google-auth==1.5.1
google-auth-httplib2==0.1.0
gpg==1.17.1
gps==3.22
gps3==0.33.0
graphene==2.1.9
graphene-sqlalchemy==2.1.2
graphql-core==2.2.1
graphql-relay==2.0.1
graphviz==0.14.2
greenlet==1.1.2
grokevt==0.5
gunicorn==20.1.0
gvm-tools==22.6.0
h11==0.13.0
h2==4.1.0
h8mail==2.5.6
hashID==3.1.4
hiredis==1.0.1
hostsman==1.1.5
hpack==4.0.0
html2text==2020.1.16
html5lib==1.1
httpagentparser==1.9.1
httpcore==0.15.0
httplib2==0.20.4
httpx==0.23.0
humanfriendly==10.0
humanize==0.0.0
hupper==1.10.3
hypercorn==0.13.2
hyperframe==6.0.0
hyperlink==21.0.0
icalendar==4.0.3
icmplib==2.1.1
idna==2.7
imageio==2.4.1
imagesize==1.4.1
IMAPClient==2.2.0
impacket==0.10.0
importlib-metadata==4.12.0
incremental==21.3.0
infinity==1.5
inflection==0.3.1
iniconfig==1.1.1
instaloader==4.9.2
Interlace @ file:///root/Tools/Interlace
invoke==1.7.0
ipdb==0.13.9
ipwhois==1.2.0
IPy==1.1
ipykernel==6.15.1
ipython==8.4.0
ipython_genutils==0.2.0
ipywidgets==6.0.0
isc_dhcp_leases==0.9.1
itsdangerous==2.1.2
itypes==1.2.0
ivre===0.9.18-kali
jaraco.classes==3.2.1
jaraco.collections==3.5.1
jaraco.context==4.1.1
jaraco.functools==3.5.0
jaraco.text==3.7.0
jdcal==1.0
jedi==0.18.0
jeepney==0.8.0
Jinja2==3.0.3
jira==3.2.0
jmespath==1.0.1
joblib==1.1.0
jq==1.2.1
JSON-log-formatter==0.5.1
jsonpointer==2.2
jsonschema==4.6.0
jupyter-client==7.3.4
jupyter-core==4.11.1
jupyterlab-pygments==0.2.2
kaitaistruct==0.9
kali-tweaks==2022.3.0
keyring==23.9.1
KismetCaptureBtGeiger==2021.7.1
KismetCaptureFreaklabsZigbee==2018.7.0
KismetCaptureRtl433==2020.10.1
KismetCaptureRtladsb==2020.10.1
KismetCaptureRtlamr==2020.10.1
kiwisolver==1.3.2
kombu==5.2.4
ldap3==2.9.1
ldapdomaindump==0.9.3
libarchive-c==2.9
libevdev==0.5
limits==1.6
lml==0.0.9
log-symbols==0.0.14
loguru==0.6.0
logutils==0.3.3
louis==3.23.0
lsassy==3.1.1
lxml==4.9.1
lz4==4.0.0+dfsg
macholib==1.16
Mako==1.2.2
manuf==1.1.5
Markdown==3.4.1
MarkupSafe==2.0.1
marshmallow==3.15.0
marshmallow-enum==1.5.1
marshmallow-sqlalchemy==0.28.1
maryam==2.5.0
matplotlib==3.5.2
matplotlib-inline==0.1.6
maxminddb==2.0.3
mechanize==0.4.8
mercurial==6.1.3
metaconfig==0.1.4a1
metafinder==1.2
minidump==0.0.21
minikerberos==0.2.14
mistune0==0.8.4
mitmproxy==8.1.1
mmh3==3.0.0
mnemonic==0.19
mock==4.0.3
monotonic==1.6
more-itertools==8.10.0
more-termcolor==1.1.3
mpmath==0.0.0
msgpack==1.0.3
msldap==0.3.30
multidict==6.0.2
munkres==1.1.4
mysqlclient==1.4.6
name-that-hash==1.10.0
nassl==4.0.2
nbclient==0.6.7
nbconvert==6.4.4
nbformat==5.4.0
neo4j==1.7.0.dev0
neobolt==1.7.17
neotime==1.7.4
nest-asyncio==1.5.4
netaddr==0.7.20
netifaces==0.11.0
networkx==2.6.3
nltk==3.7
nose==1.3.7
notebook==6.4.8
nplusone==1.0.0
ntlm-auth==1.4.0
numexpr==2.8.3
numpy==1.21.5
oauth2client==4.1.3
oauthlib==3.2.0
odfpy==1.4.2
olefile==0.46
openpyxl==3.0.10
orjson==3.7.11
oscrypto==1.3.0
ospd-openvas==21.4.4
osrframework==0.20.1
packageurl-python==0.9.9
packaging==21.3
pacu==1.1.0
pandas==1.3.5
pandocfilters==1.5.0
paramiko==2.10.4
parso==0.8.1
passlib==1.7.4
passwordmeter==0.1.8
Paste==3.5.0
PasteDeploy==2.1.1
PasteScript==2.0.2
patator==0.9
pathspec==0.9.0
pbkdf2==1.3
pbr==5.8.1
pcapy==0.11.5.dev0
pefile==2022.5.30
pem==19.1.0
pendulum==2.1.2
pexpect==4.8.0
pgcli==3.4.1
pgspecial==1.11.10
phonenumbers==8.12.1
phpserialize==1.3
pickleshare==0.7.5
pikepdf==5.4.2
pilkit==2.0
Pillow==9.2.0
plaso==20211229
plaster==1.0
plaster-pastedeploy==0.5
platformdirs==2.5.2
plecost==1.1.2
plotly==5.4.0
pluggy==1.0.0+repack
pluginbase==1.0.1
ply==3.11
pocsuite3==1.9.6
portend==3.1.0
prettytable==2.5.0
priority==1.3.0
prometheus-client==0.9.0
promise==2.3
prompt-toolkit==3.0.30
protobuf==3.12.4
psutil==5.9.1
psycopg2==2.9.3
psycopg2cffi==2.8.1
ptyprocess==0.7.0
publicsuffix2==2.20191221
publicsuffixlist==0.7.10
pure-eval==0.2.2
pwncat==0.1.2
py==1.10.0
py-altdns==1.0.0
py-sneakers==1.0.1
py-ubjson==0.16.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
PyBluez==0.23
pycairo==1.20.1
pycares==4.2.1
pycparser==2.21
pycryptodomex==3.11.0
pycups==2.0.1
pycurl==7.45.1
pydantic==1.9.1
pydevd==2.8.0+git20220826.8ee4065
PyDispatcher==2.0.5
pydot==1.4.2
pydotplus==2.0.2
pyee==8.2.2
pyenchant==3.2.2
pyexcel==0.5.14
pyexcel-io==0.5.18
pyexcel-ods==0.5.6
pyexcel-text==0.2.7.1
pyexcel-xls==0.5.8
pyexcel-xlsx==0.5.5
pyExploitDb==0.2.0
pyfiglet==0.8.post1
pygame==2.1.2
pygccxml==2.2.1
pygeoip==0.3.2
pygexf==0.2.2
PyGithub==1.55
Pygments==2.12.0
PyGObject==3.42.2
pygraphviz==1.7
PyHamcrest==2.0.2
pyinotify==0.9.6
PyInstaller==3.5+498e6ee058
PyJWT==2.4.0
pylnk3==0.4.2
pymavlink==2.4.26
pyminifier==2.1
pymongo==3.11.0
pymssql==2.2.2
PyMySQL==1.0.2
PyNaCl==1.5.0
pynput==1.7.5
pyodbc==4.0.32
PyOpenGL==3.1.5
pyOpenSSL==21.0.0
pyotp==2.6.0
pyparsing==3.0.9
PyPDF2==2.10.4
pyperclip==1.8.2
pypng==0.0.20
pyppeteer==1.0.2
pyproj==3.3.1
pypsrp==0.5.0
pypykatz==0.4.9
PyQRCode==1.2.1
PyQt-Qwt==1.2.2
PyQt5==5.15.7
PyQt5-sip==12.11.0
pyqtgraph==0.12.4
pyquery==1.2.9
pyramid==2.0
pyregfi==1.0.1.0
PyRIC==0.1.6.4
pyrsistent==0.18.1
pyrtlsdr==0.2.91
pyserial==3.5
pyShodan==0.2.3
pyshp==2.3.1
pysmb==1.1.19
pysmbc==1.0.23
pysmi==0.3.2
pysnmp==4.4.12
PySocks==1.6.8
pyspnego==0.1.5
pytest==7.1.2
python-apt==2.3.0+b2
python-dateutil==2.8.2
python-debian==0.1.47
python-docx==0.8.11
python-dotenv==0.20.0
python-emailahoy3==0.1.3
python-engineio==4.0.0
python-gvm==21.11.0
python-jose==3.3.0
python-ldap==3.4.2
python-Levenshtein==0.12.2
python-libnmap==0.7.2
python-magic==0.4.26
python-magic-ahupp==0.4.13
python-memcached==1.58
python-multipart==0.0.5
python-nmap==0.6.1
python-owasp-zap-v2.4==0.0.20
python-pam==2.0.2
python-pptx==0.6.21
python-slugify==4.0.0
python-snappy==0.5.3
python-socketio==5.0.3
python-status==1.0.1
python-xlib==0.29
python3-openid==3.2.0
PyTrie==0.4.0
pytsk3==20211111
pytz==2022.2.1
pytz-deprecation-shim==0.1.0.post0
pytzdata==2020.1
pyudev==0.22.0
pyusb==1.2.1.post1
PyUserInput==0.1.11
PyVirtualDisplay==2.2
pyVNC==0.1
pywebcopy==7.0.1
pywerview==0.3.2
pyxattr==0.7.2
pyxdg==0.27
PyYAML==6.0
pyzmq==22.3.0
qrcode==7.3.1
QScintilla==2.11.6
Quamash==0.6.1
quark-engine==21.4.3
Quart==0.14.1
recommonmark==0.7.1
redis==3.5.3
regex==2021.11.10
reportlab==3.6.11
repoze.lru==0.7
requests==2.20.0
requests-file==1.5.1
requests-futures==1.0.0
requests-ntlm==1.1.0
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
retrying==1.3.3
rfc3986==1.5.0
rfc3987==1.3.8
rfcat==1.9.6
rich==12.5.1
rjsmin==1.2.0
roguehostapd==1.1.2
roman==3.3
ropper==1.12.5
routersploit==3.4.0
Routes==2.5.1
rq==1.11.0
rsa==4.8
rtlsdr-scanner==1.3.2
ruamel.yaml==0.17.16
ruamel.yaml.clib==0.2.6
rule-engine==1.1.0
Rx==3.2.0
S3Scanner==2.0.2
s3transfer==0.6.0
scapy==2.4.5+g9420c22
schema==0.6.7
scipy==1.7.3
SecretStorage==3.3.3
secure==0.3.0
selenium==4.0.0a1
Send2Trash==1.8.1b0
service-identity==18.1.0
setproctitle==1.3.1
sgmllib3k==1.0.0
shellfire==0.9
sherlock==0.14.0
shodan==1.28.0
simple-rest-client==1.1.3
simplejson==3.17.6
simplekv==0.13.0
six==1.16.0
slack-sdk==3.18.1
slowapi==0.1.5
smmap==5.0.0
smoke-zephyr==2.0.1
sniffio==1.2.0
snowballstemmer==2.2.0
social-auth-app-django==5.0.0
social-auth-core==4.3.0
sortedcontainers==2.4.0
soupsieve==2.3.2.post1
speaklater==1.4
specan==0.0.0
Sphinx==4.5.0
sphinx-rtd-theme==1.0.0
spinners==0.0.24
SQLAlchemy==1.4.31
sqlalchemy-schemadisplay==1.3
SQLAlchemy-Utc==0.11.0
SQLAlchemy-Utils==0.38.2
sqlparse==0.4.2
ssdeep==3.1
sslyze==5.0.5
stack-data==0.4.0
starlette==0.19.1
stegcracker==2.1.0
stem==1.8.0
stone==3.3.1
Sublist3r==1.0
svglib==1.4.1
swagger-spec-validator==2.7.6
sympy==1.10.1
syslog-rfc5424-formatter==1.2.2
tables==3.7.0
tabulate==0.8.9
Tempita==0.5.2
tempora==5.0.1
tenacity==8.0.1
termcolor==1.1.0
terminado==0.15.0
terminaltables==3.1.0
termineter==1.0.4
testpath==0.6.0
texttable==1.6.4
theHarvester @ file:///root/Tools/theHarvester
thrift==0.16.0
tinycss2==1.1.1
tinydb==3.15.2
titlecase==2.3
tld==0.11.11
tldextract==3.1.2
tls-parser==1.2.2
toml==0.10.2
tomli==2.0.1
tornado==6.2
torrequest==0.1.0
tqdm==4.62.3
traitlets==5.3.0
translationstring==1.4
truffleHog==2.2.1
truffleHogRegexes==0.0.7
tweepy==4.10.1
Twisted==22.4.0
txaio==21.2.1
typing_extensions==4.3.0
tzlocal==4.2
u-msgpack-python==2.3.0
ufoLib2==0.13.1
ujson==5.4.0
unicodecsv==0.14.1
unicodedata2==14.0.0
Unidecode==1.3.4
uritemplate==4.1.1
urllib3==1.24.3
urlparse3==1.1
uro==0.0.4
urwid==2.1.2
uvicorn==0.18.2
uvloop==0.16.0
vaderSentiment==3.3.2
validators==0.20.0
venusian==3.0.0
vine==5.0.0
vinetto==0.8.0
virtualenv==20.16.3+ds
visvis==1.13.0
vobject==0.9.6.1
wafw00f @ file:///root/Tools/wafw00f
wapiti3==3.0.4
wcwidth==0.2.5
webargs==8.0.1
webcolors==1.11.1
webencodings==0.5.1
WebOb==1.8.6
websocket-client==1.2.3
websockets==10.3
websockify==0.10.0
websploit==4.0.4
Werkzeug==2.0.2
wfuzz==3.1.0
wget==3.2
whois==0.8
widgetsnbextension==2.0.0
wifiphisher==1.4
wifipumpkin3==1.1.3
wifite==2.6.0
winacl==0.1.2
witnessme==1.5.0
wordlistraider==1.0
wrapt==1.13.3
wsaccel==0.6.3
wsproto==1.1.0
WTForms==2.2.1
wxPython==4.0.7
xcffib==0.11.1
xdg==5
xlrd==1.2.0
XlsxWriter==3.0.3
xlutils==2.0.0
xlwt==1.3.0
xmltodict==0.13.0
xnLinkFinder @ file:///root/Tools/xnLinkFinder
yara-python==4.2.0
yarl==1.8.1
yaswfp==0.9.3
zc.lockfile==2.0
zim==0.74.3
zipp==3.8.1
zlib-wrapper==0.1.3
zope.deprecation==4.4.0
zope.event==4.4
zope.interface==5.4.0
gray-area commented 1 year ago

apt search pyqt

pyqt5-dev-tools/kali-rolling,now 5.15.7+dfsg-1 amd64 [installed,automatic]
python3-pyinstaller/kali-rolling,now 3.5-0kali2 all [installed,automatic]
python3-pyqt5/kali-rolling,now 5.15.7+dfsg-1 amd64 [installed,automatic]
python3-pyqt5.qsci/kali-rolling,now 2.11.6+dfsg-4+b1 amd64 [installed,automatic]
python3-pyqt5.qtchart/kali-rolling,now 5.15.6+dfsg-1 amd64 [installed,automatic]
python3-pyqt5.qwt/kali-rolling,now 1.02.02-2+b2 amd64 [installed,automatic]
python3-pyqt5.sip/kali-rolling,now 12.11.0-1+b1 amd64 [installed,automatic]
python3-pyqtgraph/kali-rolling,now 0.12.4-1 all [installed,automatic]
python3-pyudev/kali-rolling,now 0.22.0-2 all [installed,automatic]
gray-area commented 1 year ago

python version:

Python 3.10.7
sscottgvit commented 1 year ago

@gray-area Good news. I did find that this is related to nmap crashing under zsh under the latest Kali AFTER kali is fully updated. It's not directly related to legion but I'm going to dig for a solution.

gray-area commented 1 year ago

That's awesome news, thanks for looking into this!

gray-area commented 1 year ago

Ok, I fixed it. You pointed me in the right direction. It is an NMAP issue. You need to upgrade to v7.93 and you need to upgrade from source. The instructions are located here: https://nmap.org/book/inst-source.html

Thanks @sscottgvit for getting me there.

sscottgvit commented 1 year ago

@gray-area Can you try the following?

sudo apt install snapd -y
sudo systemctl enable --now snapd.apparmor
sudo systemctl start snapd
sudo snap install nmap
sudo mv /usr/bin/nmap /usr/bin/nmap-7.92
sudo ln -s /snap/bin/nmap /usr/bin/nmap

Then verify the version with: nmap -v

It should be version 7.93.

sscottgvit commented 1 year ago

@gray-area LOL! I was literally just replying with that :)

gray-area commented 1 year ago

Haha!

Yeah, that was the same issue that I found. Thanks again!

gray-area commented 1 year ago

Well... There is another issue now :( . When it is done, there is no data shown in the Legion GUI. Let me walk back through the steps and make sure I didnt miss something.

sscottgvit commented 1 year ago

@gray-area That might be apparmor. Let me see if there's denials. I bet that's it.

sscottgvit commented 1 year ago

@gray-area Yep, app armor.

vi /var/lib/snapd/apparmor/profiles/snap.nmap.nmap Goto line 300, create new line add in:

owner @{HOME}/.local/share/legion/tmp/** rw,
/etc/ssl/kali.cnf r,

Save the profile, reboot and try again.

Dabinchy commented 1 year ago

@gray-area that works!! you rock! Gracias Genio!!

gray-area commented 1 year ago

@gray-area that works!! you rock! Gracias Genio!!

No worries Dabinchy! @sscottgvit was the one who got me there.

Dabinchy commented 1 year ago

@sscottgvit Thanks to you too!!