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

invalid escape sequence '\d' causes header to duplicate infinitely #307

Open
NastyaGrifon opened this issue Sep 12, 2024 · 0 comments
Open

Comments

@NastyaGrifon
Copy link

The header is duplucating during the scan and is not updating the AP details:

Screenshot

image

Git log
wifite2_kimcoder git:(master) git log 
bin/                                                                                    origin/dependabot/pip/setuptools-74.0.0                                               
changelog                                                                               origin/dependabot/pip/setuptools-74.1.2                                               
Dockerfile                                                                              origin/eviltwin                                                                       
docs/                                                                                   origin/HEAD                                                                           
FETCH_HEAD                                                                              origin/master                                                                         
.github/                                                                                origin/refactor                                                                       
.gitignore                                                                              origin/snyk-fix-0d11e8e2d21c28aec06873762d3ba521                                      
HEAD                                                                                    origin/snyk-fix-4da25e0b788c050bc01af766c0f212e3                                      
ieee-oui.txt                                                                            origin/snyk-fix-771d2b8481db8b58d1783801d3a9441f                                      
LICENSE                                                                                 origin/snyk-fix-b4807269842563873f2cb621b9edb93c                                      
master                                                                                  origin/sourcery/master                                                                
ORIG_HEAD                                                                               pyproject.toml                                                                        
origin                                                                                  README.md                                                                             
origin/dependabot/docker/python-3.13.0rc2-slim                                          renovate.json                                                                         
origin/dependabot/github_actions/github/codeql-action-3.25.5                            requirements.txt                                                                      
origin/dependabot/github_actions/github/codeql-action-3.26.5                            runtests.sh*                                                                          
origin/dependabot/github_actions/snyk/actions-9213221444c2dc9e8b2502c1e857c26d851e84a7  setup.cfg                                                                             
origin/dependabot/github_actions/snyk/actions-cdb760004ba9ea4d525f2e043745dfe85bb9077e  setup.py                                                                              
origin/dependabot/github_actions/step-security/harden-runner-2.10.1                     tests/                                                                                
origin/dependabot/pip/pytest-7.3.0                                                      tools/                                                                                
origin/dependabot/pip/pytest-7.4.4                                                      wifite/                                                                               
origin/dependabot/pip/pytest-8.3.3                                                      wifite.py*                                                                            
origin/dependabot/pip/setuptools-69.0.2                                                 wordlist-probable.txt                                                                 
2.1.0  2.1.6  2.1.7  2.1.8  2.1.9  2.2.1  2.2.2  2.2.3  2.2.4  2.2.5  2.5.1  2.5.2  2.5.3  2.5.4  2.5.5  2.5.7  2.5.8  2.6.0  2.6.2  2.6.5  2.6.6  2.6.8  2.6.9  2.7.0
244db4ffb  -- [HEAD]    Merge pull request #299 from kimocoder/dependabot/pip/setuptools-74.1.1 (8 days ago)
e57653366  -- [e57653366] build(deps): bump setuptools from 74.0.0 to 74.1.1 (8 days ago)
c2461ece4  -- [HEAD^]   Merge pull request #297 from kimocoder/dependabot/github_actions/github/codeql-action-3.26.6 (12 days ago)
26df0cabd  -- [HEAD^^]  Merge pull request #296 from kimocoder/dependabot/pip/setuptools-74.0.0 (12 days ago)
b70197dc9  -- [b70197dc9] build(deps): bump github/codeql-action from 3.26.5 to 3.26.6 (2 weeks ago)
53d1181c3  -- [53d1181c3] build(deps): bump setuptools from 72.2.0 to 74.0.0 (2 weeks ago)
68dee2825  -- [HEAD~3]  Merge pull request #295 from kimocoder/dependabot/pip/setuptools-74.0.0 (2 weeks ago)
9d25b7b6e  -- [HEAD~4]  Merge pull request #294 from kimocoder/dependabot/github_actions/github/codeql-action-3.26.5 (2 weeks ago)
81d00e749  -- [HEAD~5]  Merge pull request #293 from kimocoder/dependabot/github_actions/snyk/actions-9213221444c2dc9e8b2502c1e857c26d851e84a7 (2 weeks ago)
0e3ff3449  -- [0e3ff3449] build(deps): bump setuptools from 72.2.0 to 74.0.0 (2 weeks ago)
f0aebe046  -- [f0aebe046] build(deps): bump github/codeql-action from 3.26.4 to 3.26.5 (2 weeks ago)
23f0e89aa  -- [23f0e89aa] build(deps): bump snyk/actions (3 weeks ago)
db8530804  -- [HEAD~6]  Merge pull request #291 from kimocoder/dependabot/github_actions/github/codeql-action-3.26.4 (3 weeks ago)
6f360cd4b  -- [HEAD~7]  Merge pull request #290 from kimocoder/dependabot/pip/setuptools-73.0.1 (3 weeks ago)
05cd35e73  -- [05cd35e73] build(deps): bump github/codeql-action from 3.26.1 to 3.26.4 (3 weeks ago)
44e7cf2f9  -- [44e7cf2f9] build(deps): bump setuptools from 72.2.0 to 73.0.1 (3 weeks ago)
753ec11b0  -- [HEAD~8]  Merge pull request #286 from kimocoder/dependabot/pip/setuptools-72.2.0 (4 weeks ago)
9ec29ce3e  -- [HEAD~9]  Merge pull request #285 from kimocoder/dependabot/github_actions/github/codeql-action-3.26.1 (4 weeks ago)
ec6a7e93f  -- [HEAD~10] Fixup dependencies failure (4 weeks ago)
2044749db  -- [2044749db] build(deps): bump setuptools from 72.1.0 to 72.2.0 (4 weeks ago)
➜  wifite2_kimcoder git:(master) git pull
Already up to date.

sudo python3 setup.py install
running install
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
writing wifite.egg-info/PKG-INFO
writing dependency_links to wifite.egg-info/dependency_links.txt
writing top-level names to wifite.egg-info/top_level.txt
reading manifest file 'wifite.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'wifite.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying wifite/config.py -> build/lib/wifite
copying wifite/args.py -> build/lib/wifite
copying wifite/__main__.py -> build/lib/wifite
copying wifite/__init__.py -> build/lib/wifite
copying wifite/attack/pmkid.py -> build/lib/wifite/attack
copying wifite/attack/wpa.py -> build/lib/wifite/attack
copying wifite/attack/wep.py -> build/lib/wifite/attack
copying wifite/attack/wps.py -> build/lib/wifite/attack
copying wifite/attack/all.py -> build/lib/wifite/attack
copying wifite/attack/__init__.py -> build/lib/wifite/attack
copying wifite/model/wps_result.py -> build/lib/wifite/model
copying wifite/model/wpa_result.py -> build/lib/wifite/model
copying wifite/model/handshake.py -> build/lib/wifite/model
copying wifite/model/attack.py -> build/lib/wifite/model
copying wifite/model/pmkid_result.py -> build/lib/wifite/model
copying wifite/model/client.py -> build/lib/wifite/model
copying wifite/model/result.py -> build/lib/wifite/model
copying wifite/model/target.py -> build/lib/wifite/model
copying wifite/model/wep_result.py -> build/lib/wifite/model
copying wifite/model/__init__.py -> build/lib/wifite/model
copying wifite/tools/airmon.py -> build/lib/wifite/tools
copying wifite/tools/ip.py -> build/lib/wifite/tools
copying wifite/tools/iw.py -> build/lib/wifite/tools
copying wifite/tools/aireplay.py -> build/lib/wifite/tools
copying wifite/tools/reaver.py -> build/lib/wifite/tools
copying wifite/tools/hashcat.py -> build/lib/wifite/tools
copying wifite/tools/aircrack.py -> build/lib/wifite/tools
copying wifite/tools/bully.py -> build/lib/wifite/tools
copying wifite/tools/john.py -> build/lib/wifite/tools
copying wifite/tools/tshark.py -> build/lib/wifite/tools
copying wifite/tools/airodump.py -> build/lib/wifite/tools
copying wifite/tools/dependency.py -> build/lib/wifite/tools
copying wifite/tools/cowpatty.py -> build/lib/wifite/tools
copying wifite/tools/hostapd.py -> build/lib/wifite/tools
copying wifite/tools/wash.py -> build/lib/wifite/tools
copying wifite/tools/__init__.py -> build/lib/wifite/tools
copying wifite/tools/macchanger.py -> build/lib/wifite/tools
copying wifite/util/color.py -> build/lib/wifite/util
copying wifite/util/process.py -> build/lib/wifite/util
copying wifite/util/timer.py -> build/lib/wifite/util
copying wifite/util/crack.py -> build/lib/wifite/util
copying wifite/util/input.py -> build/lib/wifite/util
copying wifite/util/__init__.py -> build/lib/wifite/util
copying wifite/util/scanner.py -> build/lib/wifite/util
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/wifite
creating build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/color.py -> build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/process.py -> build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/timer.py -> build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/crack.py -> build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/input.py -> build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/__init__.py -> build/bdist.linux-x86_64/egg/wifite/util
copying build/lib/wifite/util/scanner.py -> build/bdist.linux-x86_64/egg/wifite/util
creating build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/attack/pmkid.py -> build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/attack/wpa.py -> build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/attack/wep.py -> build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/attack/wps.py -> build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/attack/all.py -> build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/attack/__init__.py -> build/bdist.linux-x86_64/egg/wifite/attack
copying build/lib/wifite/config.py -> build/bdist.linux-x86_64/egg/wifite
copying build/lib/wifite/args.py -> build/bdist.linux-x86_64/egg/wifite
copying build/lib/wifite/__main__.py -> build/bdist.linux-x86_64/egg/wifite
creating build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/wps_result.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/wpa_result.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/handshake.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/attack.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/pmkid_result.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/client.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/result.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/target.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/wep_result.py -> build/bdist.linux-x86_64/egg/wifite/model
copying build/lib/wifite/model/__init__.py -> build/bdist.linux-x86_64/egg/wifite/model
creating build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/airmon.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/ip.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/iw.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/aireplay.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/reaver.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/hashcat.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/aircrack.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/bully.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/john.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/tshark.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/airodump.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/dependency.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/cowpatty.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/hostapd.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/wash.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/__init__.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/tools/macchanger.py -> build/bdist.linux-x86_64/egg/wifite/tools
copying build/lib/wifite/__init__.py -> build/bdist.linux-x86_64/egg/wifite
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/color.py to color.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/process.py to process.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/timer.py to timer.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/crack.py to crack.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/input.py to input.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/util/scanner.py to scanner.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/attack/pmkid.py to pmkid.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/attack/wpa.py to wpa.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/attack/wep.py to wep.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/attack/wps.py to wps.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/attack/all.py to all.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/attack/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/config.py to config.cpython-312.pyc
build/bdist.linux-x86_64/egg/wifite/config.py:283: SyntaxWarning: invalid escape sequence '\d'
  chn_arg_re = re.compile("^\d+((,\d+)|(-\d+,\d+))*(-\d+)?$")
byte-compiling build/bdist.linux-x86_64/egg/wifite/args.py to args.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/__main__.py to __main__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/wps_result.py to wps_result.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/wpa_result.py to wpa_result.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/handshake.py to handshake.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/attack.py to attack.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/pmkid_result.py to pmkid_result.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/client.py to client.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/result.py to result.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/target.py to target.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/wep_result.py to wep_result.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/model/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/airmon.py to airmon.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/ip.py to ip.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/iw.py to iw.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/aireplay.py to aireplay.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/reaver.py to reaver.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/hashcat.py to hashcat.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/aircrack.py to aircrack.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/bully.py to bully.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/john.py to john.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/tshark.py to tshark.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/airodump.py to airodump.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/dependency.py to dependency.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/cowpatty.py to cowpatty.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/hostapd.py to hostapd.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/wash.py to wash.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/tools/macchanger.py to macchanger.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/wifite/__init__.py to __init__.cpython-312.pyc
installing package data to build/bdist.linux-x86_64/egg
running install_data
creating build/bdist.linux-x86_64/egg/share
creating build/bdist.linux-x86_64/egg/share/dict
copying wordlist-probable.txt -> build/bdist.linux-x86_64/egg/share/dict
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.12/wifite -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/wifite to 755
copying wifite.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying wifite.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying wifite.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying wifite.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/wifite-2.7.1-py3.12.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing wifite-2.7.1-py3.12.egg
Removing /usr/lib/python3.12/site-packages/wifite-2.7.1-py3.12.egg
Copying wifite-2.7.1-py3.12.egg to /usr/lib/python3.12/site-packages
Adding wifite 2.7.1 to easy-install.pth file
Installing wifite script to /usr/sbin

Installed /usr/lib/python3.12/site-packages/wifite-2.7.1-py3.12.egg
Processing dependencies for wifite==2.7.1
Finished processing dependencies for wifite==2.7.1

The only line that catches my attention during install is:

build/bdist.linux-x86_64/egg/wifite/config.py:283: SyntaxWarning: invalid escape sequence '\d'
  chn_arg_re = re.compile("^\d+((,\d+)|(-\d+,\d+))*(-\d+)?$")

The behaviour is the same for the version installed by setup.py and manually launched via python3 wifite.py

My system details:

Wifite2:
HEAD 244db4ffb
uname -a:
Linux Wraith 6.10.9-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sun Sep 8 08:39:59 UTC 2024 x86_64 GNU/Linux
python3 -V:
Python 3.12.5

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