Skip to content

Instantly share code, notes, and snippets.

View ILoveLuci's full-sized avatar

Luci LaFae ILoveLuci

View GitHub Profile
@npalko
npalko / aspx.py
Created July 22, 2011 21:35
Authenticate with ASP using Python
import BeautifulSoup
import cookielib
import urllib
import urllib2
username,password = 'SomeUser','$ecret'
controller = 'http://example.com/SomeLameLoginPage.aspx'
post = {
'__EVENTVALIDATION' : None, # These "__" will be present for every *.aspx page