Grab text from html with user and pass???

Thaddeus L. Olczyk olczyk at interaccess.com
Mon Jan 8 12:34:49 EST 2001


On Mon, 08 Jan 2001 09:52:57 GMT, "Paul Goodyear"
<paul at gudge.demon.co.uk> wrote:

>I am trying to pull out a Ip address from a .html file,
>
>I have done this successfully already BUT,
>
>The site has a password, the username is blank and the pass word is ****
>blah blah
>
>When I run the
>
>[code]      url.urlopen('http://www.blah.com/ip.html')
>
>all I get is "Enter username for ** at ** :"   if i press just return I am
>then asked for the password, after entering the password the process just
>keeps repeating.
>
>I know for well that the password is correct, I just need it to accept a
>blank username
>
>Regards,
>
>Paul Goodyear
>
I believe it is sent as data probably url?user=dddd&passwd=rrrr.
The best way to find out.
There is a perl package called HttpSniffer.pl (  someone mention if
there is a similar python module ).
Point your browser ( set you http proxy to ) localhost:8080 and start
the perl script ( preferably under emacs or using tee ).
Then go to the web page, enter a fake  but easily grepable user and
passwd. HTTPSniffer prints the headers you send so just grep the
output for where the user and passwd went.



More information about the Python-list mailing list