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

Can't get captivePortal running - pydns_server Error #49

Closed
biejay opened this issue Jun 9, 2020 · 3 comments
Closed

Can't get captivePortal running - pydns_server Error #49

biejay opened this issue Jun 9, 2020 · 3 comments
Labels
priority: critical critical priority issue solved bugs that have been solved status: in progress the solution is in progress

Comments

@biejay
Copy link

biejay commented Jun 9, 2020

Wifipumpkin v1.0.5
VmWareWorkstation Pro 15.5.2
Kali 2020.2

Trying to run captiveflask with loginPage but when i connect my devices then i can just surf the internet and no captiveportal opens.
My guess is, that the following error log could cause it:


[  pydns_server  ] 14:15:16  - no local zone found, proxying .[A] 
Traceback (most recent call last):
  File "/usr/lib/python3.8/socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.8/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/local/lib/python3.8/dist-packages/dnslib-0.9.13-py3.8.egg/dnslib/server.py", line 147, in handle
    rdata = self.get_reply(data)
  File "/usr/local/lib/python3.8/dist-packages/dnslib-0.9.13-py3.8.egg/dnslib/server.py", line 164, in get_reply
    reply = resolver.resolve(request,self)
  File "/usr/local/lib/python3.8/dist-packages/wifipumpkin3/core/packets/dnsserver.py", line 167, in resolve
    return super().resolve(request, handler)
  File "/usr/local/lib/python3.8/dist-packages/dnslib-0.9.13-py3.8.egg/dnslib/proxy.py", line 40, in resolve
    proxy_r = request.send(self.address,self.port,
  File "/usr/local/lib/python3.8/dist-packages/dnslib-0.9.13-py3.8.egg/dnslib/dns.py", line 353, in send
    data = self.pack()
  File "/usr/local/lib/python3.8/dist-packages/dnslib-0.9.13-py3.8.egg/dnslib/dns.py", line 320, in pack
    rr.pack(buffer)
  File "/usr/local/lib/python3.8/dist-packages/dnslib-0.9.13-py3.8.egg/dnslib/dns.py", line 869, in pack
    self.rdata.pack(buffer)
AttributeError: 'str' object has no attribute 'pack'

@mh4x0f mh4x0f added priority: critical critical priority issue status: in progress the solution is in progress labels Jun 9, 2020
@mh4x0f
Copy link
Member

mh4x0f commented Jun 9, 2020

hi, download or use the git clone and reinstall sudo python3 setup.py install , will be solve the problem.

@biejay
Copy link
Author

biejay commented Jun 9, 2020

Did reinstall but still no luck.

also got this error:

[  captiveflask  ] 16:26:54  - Traceback (most recent call last):
  File "/usr/local/bin/captiveflask", line 4, in <module>
    __import__('pkg_resources').run_script('wifipumpkin3==1.0.5', 'captiveflask')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 667, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1453, in run_script
    raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/captiveflask' not found in metadata at '/usr/local/lib/python3.8/dist-packages/wifipumpkin3-1.0.5.dist-info'

@mh4x0f
Copy link
Member

mh4x0f commented Jun 9, 2020

execute this:

git pull origin dev
sudo pip3 uninstall wifipumpkin3==1.0.5
sudo make clean
sudo python3 setup.py install

@mh4x0f mh4x0f added the solved bugs that have been solved label Jun 9, 2020
@mh4x0f mh4x0f closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: critical critical priority issue solved bugs that have been solved status: in progress the solution is in progress
Projects
None yet
Development

No branches or pull requests

2 participants