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

UnboundLocalError: local variable 'f' referenced before assignment #26

Closed
Sabariessan opened this issue Jan 4, 2020 · 5 comments
Closed

Comments

@Sabariessan
Copy link

Getting message
UnboundLocalError: local variable 'f' referenced before assignment
After running python2 websploit cmd

@jasmon93
Copy link

jasmon93 commented Jan 7, 2020

Also same with me

This is my error on termux

Traceback (most recent call last):
File "websploit", line 55, in
from modules import arp_poisoner
File "/data/data/com.termux/files/home/websploit/modules/arp_poisoner.py", line 11, in
from scapy.all import *
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/all.py", line 27, in
from scapy.route import *
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/route.py", line 203, in
conf.iface = get_working_if()
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/arch/linux.py", line 144, in get_working_if
for i in get_if_list():
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/arch/linux.py", line 127, in get_if_list
f.close()
UnboundLocalError: local variable 'f' referenced before assignment
$ python2 websploit
Traceback (most recent call last):
File "websploit", line 55, in
from modules import arp_poisoner
File "/data/data/com.termux/files/home/websploit/modules/arp_poisoner.py", line 11, in
from scapy.all import *
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/all.py", line 27, in
from scapy.route import *
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/route.py", line 203, in
conf.iface = get_working_if()
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/arch/linux.py", line 144, in get_working_if
for i in get_if_list():
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/arch/linux.py", line 127, in get_if_list
f.close()
UnboundLocalError: local variable 'f' referenced before assignment
$

@websploit
Copy link
Collaborator

new version released, check it out.

@jasmon93
Copy link

jasmon93 commented Jan 20, 2020 via email

@websploit
Copy link
Collaborator

websploit commented Jan 20, 2020

Can i use at termux? Sent from my Huawei phone-------- Original message --------From: Fardin Allahverdinazhand notifications@github.comDate: Mon, 20 Jan 2020, 21:58To: websploit/websploit websploit@noreply.github.comCc: jasmon93 jasmonkoko@gmail.com, Comment comment@noreply.github.comSubject: Re: [websploit/websploit] UnboundLocalError: local variable 'f' referenced before assignment (#26)new version released, check it out. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

in current version, websploit works with scapy only, other dependencies are removed, if you have scapy installed on your device websploit will work fine.

@websploit websploit reopened this Jan 20, 2020
@jasmon93
Copy link

jasmon93 commented Jan 30, 2020 via email

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

3 participants