epsylon / ufonet

UFONet - Denial of Service Toolkit
https://ufonet.03c8.net
2.2k stars 611 forks source link

Can't run Ufonet #219

Closed Val071 closed 4 years ago

Val071 commented 4 years ago

Hello,

When I run the command ./ufonet it tells me :

[Error] UFONet no longer supports Python2: (https://www.python.org/doc/sunset-python-2/)

Info] [AI] Try to run the tool with Python3.x.y (ex: python3 ufonet)

So I typed: python3 ufonet

and he says to me:

Traceback (most recent call last): File "ufonet", line 10, in from core.main import UFONet File "/root/Bureau/ufonet/core/main.py", line 13, in import io, socket, ssl, cgi, json, gzip File "/usr/local/lib/python3.8/ssl.py", line 98, in import _ssl # if we can't import it, let the error propagate ModuleNotFoundError: No module named '_ssl'

Please help me, I'm a beginner and don't understand what to do.

Aholicknight commented 4 years ago

It says in the first sentence what you did wrong. It does not run in python2, and to fix your module you need to downgrade your python3 to Python 3.6.8

Val071 commented 4 years ago

Hello thank you for your answer! I downgraded my version of Python to Python 3.6.8 as you told me and I tried again by typing :

python3 ufonet

and it's answering me

Error importing: scapy lib.

To install it on Debian based systems:

$ 'sudo apt-get install python3-scapy'

so I typed the command

sudo apt-get install python3-scapy

and it's answering me

Reading package lists... Done Construction of the dependency tree
Reading status information... Done python3-scapy is already the most recent version (2.4.3-3). The following packages have been installed automatically and are no longer needed: clusterd cython enchanting libboost-python1.67.0 libboost-regex1.67.0 libcodec2-0.8.1 libcroco3 libdns1104 libdvdread4 libemu2 libenchant1c2a libexiv2-14 libgeos-3.8.0 libgtkmm-2.4-1v5 libhwloc5 libisc1100 libisl21 libjim0.77 libjte1 libmng1 libmysofa0 libproj15 libprotobuf17 libradare2-3.9 libre2-5 libspandsp2 libtidy5deb1 libusbmuxd4 libwireshark12 libwiretap9 libwscodecs2 libwsutil10 python-aes python-alembic python-attr python-autobahn python-automat python-babel python-backports-abc python-backports.functools-lru-cache python-bcrypt python-blinker python-bottle python-bs4 python-cbor python-chameleon python-click python-colorama python-concurrent.futures python-constantly python-cssselect python-dateutil python-deprecation python-django python-dnspython python-editor python-editorconfig python-egenix-mxdatetime python-egenix-mxtools python-elixir python-faraday python-feedparser python-filedepot python-flask python-flask-babelex python-flask-classful python-flask-kvsession python-flask-login python-flask-mail python-flask-mail python-flask-restless python-flask-security python-flask-session python-flask-sqlalchemy python-flaskext.wtf python-formencode python-future python-gobject python-hamcrest python-html2text python-html5lib python-hupper python-hyperlink python-impacket python-incremental python-ipy python-itsdangerous python-jinja2 python-jsbeautify python-libxml2 python-lxml python-lz4 python-magic python-mako python-markupsafe python-marshmallow python-marshmallow-sqlalchemy python-mimeparse python-mimerender python-nacl python-nplusone python-olefile python-openid python-packaging python-paramiko python-passlib python-paste python-pcapfile python-peepdf python-pefile python-pil python-plaster python-png python-prettytable python-psycopg2 python-pyasn1 python-pyasn1-modules python-pycryptodoma python-pydot python-pyinotify python-pylibemu python-pymssql python-pyparsing python-pyqrcode python-pyquery python-pyv8 python-qrcode python-repoze.lru python-scapy python-scgi python-selenium python-service-identity python-simplejson python-simplekv python-singledispatch python-sip python-snappy python-soupsieve python-speaklater python-sqlalchemy python-sqlalchemy-ext python-sqlalchemy-schemadisplay python-sqlparse python-syslog-rfc5424-formatter python-tempita python-tornado python-tqdm python-translationstring python-trie python-trollius python-twisted python-twisted-bin python-twisted-core python-txaio python-typing python-tz python-u-msgpack python-ubjson python-unidecode python-utidylib python-venusian python-waitress python-webencodings python-webob python-websocket python-werkzeug python-wsaccel python-wtforms python-yaml python-zope.component python-zope.deprecation python-zope.event python-zope.hookable python-zope.interface python3-simplegeneric qtchooser qtcore4-l10n Please use "sudo apt autoremove" to remove them. 0 updated, 0 newly installed, 0 to remove and 0 not updated.

Should I type the command

sudo apt autoremove

?

Aholicknight commented 4 years ago

yes

Val071 commented 4 years ago

after I typed the command and waited, I tried typing again

python3 ufonet

but he's telling me the same thing he did last time...

Error importing: scapy lib.

To install it on Debian based systems:

$ 'sudo apt-get install python3-scapy'

so I typed again sudo apt-get install python3-scapy

the installation shows this

Reading package lists... Done Construction of the dependency tree
Reading status information... Done The following packages have been installed automatically and are no longer needed: figlet finger medusa python3-aiohttp python3-aioredis python3-apscheduler python3-async-timeout python3-git python3-gitdb python3-multidict python3-pyexploitdb python3-pyfiglet python3-pyshodan python3-quamash python3-smmap python3-tld python3-yarl python3-yaswfp rwho rwhod toilet-fonts elk xsltproc Please use "apt autoremove" to delete them. Suggested packages : python3-pyx sox The following NEW packages will be installed: python3-scapy 0 updated, 1 newly installed, 0 to remove and 0 not updated. It is necessary to take 695 kb from the archives. After this operation, an additional 4,473 kb of disk space will be used. Receiving :1 http://archive-4.kali.org/kali kali-last-snapshot/main amd64 python3-scapy all 2.4.3-3 [695 kB] 695 kb received in 1s (476 kb/s) Selection of the previously deselected python3-scapy package. (Reading the database... 352873 files and directories already installed). Preparing to unpack .../python3-scapy_2.4.3-3_all.deb ... Unpacking python3-scapy (2.4.3-3) ... Setting up python3-scapy (2.4.3-3) ... Handling triggers for man-db (2.9.1-1) ... Trigger handling for kali-menu (2020.1.8) ...

and I redid python3 ufonet

and it's still answering me

Error importing: scapy lib.

To install it on Debian based systems:

$ 'sudo apt-get install python3-scapy'

What should I do please?

Chrisfranco01 commented 4 years ago

I have the same problem and I don't know how to solve it, please help

epsylon commented 4 years ago

0) This is not a problem related with UFONet... 1) This is problem is related with the alias Python3. That can be used for Python3.5.x or Python3.7.x, for example. So, maybe you are installing with python3-scapy, a lib for Python3.5.x, but when executing UFONet with python3 you are invoking to Python3.7 2) Try to install that libraries that way: python3.5 -m pip install scapy (or python3.7.. depending on your env)

epsylon commented 4 years ago

And of course, after that, try to execute UFONet like this: python3.5 ufonet ... (again, depending on your env)

DarknessNetworkHub commented 2 months ago

better off with a qbot