By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,109 Members | 1,007 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,109 IT Pros & Developers. It's quick & easy.

name 'socket' is not defined (when i use wifiphisher )

P: 2
when i use wifiphisher in ubuntu i get the following error :
Expand|Select|Wrap|Line Numbers
  1.   except socket.error:
  2.         sys.exit((
  3.             '\n[' + R + '-' + W + '] Unable to start HTTPS server!\n' +
  4.             '[' + R + '-' + W + '] Another process is running on port ' + str(SSL_PORT) + '.\n' +
  5.             '[' + R + '!' + W + '] Closing'
  6.  
the problem :
Starting HTTP server at port 8080
Traceback (most recent call last):
File "wifiphisher.py", line 919, in <module>
except socket.error:
NameError: name 'socket' is not defined
Jul 15 '15 #1
Share this Question
Share on Google+
3 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
The interpreter is attempting to execute the except clause because of an error and it is finding a NameError in the except clause. Idetifier "socket" is not defined. Try removing "socket.error" and run again to see what the error actually is.
Jul 15 '15 #2

P: 2
i do it and i get this syntax:
ile "wifiphisher.py", line 919
except
^
IndentationError: unindent does not match any outer indentation level
Jul 16 '15 #3

bvdet
Expert Mod 2.5K+
P: 2,851
The error is self explanatory. Try fixing the indentation error in that file.
Jul 16 '15 #4

Post your reply

Sign in to post your reply or Sign up for a free account.