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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismail15
    New Member
    • Jul 2015
    • 2

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

    when i use wifiphisher in ubuntu i get the following error :
    Code:
      except socket.error:
            sys.exit((
                '\n[' + R + '-' + W + '] Unable to start HTTPS server!\n' +
                '[' + R + '-' + W + '] Another process is running on port ' + str(SSL_PORT) + '.\n' +
                '[' + R + '!' + W + '] Closing'
    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
    Last edited by bvdet; Jul 16 '15, 05:25 PM. Reason: Add code tags
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    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.err or" and run again to see what the error actually is.

    Comment

    • ismail15
      New Member
      • Jul 2015
      • 2

      #3
      i do it and i get this syntax:
      ile "wifiphisher.py ", line 919
      except
      ^
      IndentationErro r: unindent does not match any outer indentation level

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        The error is self explanatory. Try fixing the indentation error in that file.

        Comment

        Working...