473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
3 5640
bvdet
2,851 Expert Mod 2GB
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
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
2,851 Expert Mod 2GB
The error is self explanatory. Try fixing the indentation error in that file.
Jul 16 '15 #4

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

Similar topics

5
by: Steve Lynch | last post by:
Is there a way to display the server's host name or computer name from ASP when the page was accessed by IP address? I tried dumping all the variables and header information, but when the URL is...
5
by: NetKev | last post by:
I added a function 'warn_Admin' and defined it just before another function 'process_log'. 'process_log' calls this warn_Admin' function. However, when it gets called i get the following error...
3
by: O.B. | last post by:
When sharing a Socket between threads, are the socket operations automatically synchronized to support multithreading? For example: Thread1 sets up a server socket to listen and invokes...
9
by: darthghandi | last post by:
I am trying to create a server application using asynchronous sockets. I run into a problem when I try to connect to my server using a non-.net program. I can establish the connection, and send...
7
by: laredotornado | last post by:
Hi, Using advice from this newsgroup, I tried this JS to create new DOM elements on-the-fly var divSidebarItem = document.createElement("div"); divSideBarItem.setAttribute("class",...
2
by: darthghandi | last post by:
I am trying to pass a socket object when an event is signaled. I have successfully bound to a network interface and listened on a port for incoming connection. I have also been able to accept...
0
by: 1200cubic | last post by:
Hello, How is it possible to interrupt Socket.Select()? I'm calling Socket.Select() in a worker thread. When new sockets are added (from another thread) I want to interrupt the Select() so it can...
2
emibt08
by: emibt08 | last post by:
Hi, I have an application that I recently revised. It transfers data between 2 programs, including files as well as small data chunks. I never had a problem (got garbage at the other side) or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.