cannot concatenate 'str' and 'list' objects

Roy Smith roy at panix.com
Sat Sep 15 10:21:21 EDT 2012


In article <mailman.750.1347717221.27098.python-list at python.org>,

> i see you try to extract only the 1st element of the list, i tried that too 
> but it gives me now this weird message:
> 
> if you visit my website http://superhost.gr

Do you realize that the hosting service you're using (HostGator) is so 
mis-configured that it is exposing your source code and credentials to 
the entire world?

When I go to that URL, I get a page which includes the name of the CGI 
script you are running (/home/nikos/public_html/cgi-bin/counter.py).  I 
can then do a GET on http://superhost.gr/~nikos/cgi-bin/counter.py, and 
can see your script source code, including the credentials to attach to 
your database:

conn = MySQLdb.connect( db = 'nikos_tech', host = 'localhost', user = 
'nikos_nikos', passwd = <elided>)

How to properly configure a web server is way beyond the scope of this 
mailing list, but you really need to do some research there to safeguard 
your own data.



More information about the Python-list mailing list