<div>Hi,</div>
<div> </div>
<div>I am executing following lines of code:</div>
<div> </div>
<div>def WEP40_KEY(n):<br> params = urllib.urlencode({})<br> headers = {"Connection": "Keep-Alive","Authorization": ""}<br> conn = httplib.HTTPConnection(HOST)<br> conn.request
("GET", "/w_sec.htm HTTP/1.1", params, headers)<br> response = conn.getresponse()<br> print response.status, response.reason<br> params = urllib.urlencode({'wsecurity':"WEP",'wep_auth':"Shared+Key",'wepenc':"128+bit",'wep_key_no':"key1",'ascii_key1':"12345678901234567890123456",'ascii_key2':"",'ascii_key3':"",'ascii_key4':"",'passphrase':"",'wpa_psk':"12345678",'key_lifetime':"65535",'wpa_enc':"TKIP",'save':"Save",'message': "",'todo':""})
<br> headers = {"Connection": "Keep-Alive","Authorization": ""}<br> conn = httplib.HTTPConnection(HOST)<br> conn.request("POST", "w_sec.htm", params, headers)
<br> response = conn.getresponse()<br> print response.status, response.reason<br> conn.close()<br> <br>WEP40_KEY(sys.argv)</div>
<div> </div>
<div> </div>
<div> </div>
<div>I am getting following error:</div>
<div> </div>
<div>
<p>C:\Documents and Settings\Govindadya\Desktop\Marvell>Marvell_WEP40.py 192.168.1.<br>16<br> File "C:\Documents and Settings\Govindadya\Desktop\Marvell\Marvell_WEP40.py",<br>line 41<br> <strong> response =
conn.getresponse()<br> ^<br>IndentationError: unindent does not match any outer indentation level</strong></p>
<p><strong></strong> </p>
<p>Can anybody help me out on this?</p>
<p>Best Regards,</p>
<p>Govind</p>
<p> </p></div>