[twill] website login using twill and python

Arturo 'Buanzo' Busleiman buanzo at buanzo.com.ar
Wed Sep 5 03:39:57 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Well, just run "twill-sh", type help, read about the commands, and then interactively write the
script. That is, run "go http://www.crimeblock.com", then showforms, PAY ATTENTION, fillvalue as
required, set formaction [not always], then submit. The rest is up to you. Well, ok, I feel nice today:

>> buanzo at bbs ~/src/ogame/twill-0.8.5 $ ./twill-sh

 -= Welcome to twill! =-

current page:  *empty page*
>> go http://www.crimebloc.com
showf==> at http://www.crimebloc.com
current page: http://www.crimebloc.com
>> orms

Form name=login
## ## __Name__________________ __Type___ __ID________ __Value__________________
1     login                    text      (None)
2     pass                     password  (None)
3     enhanced                 checkbox  enhanced     ['enhanced'] of ['enhanced']
4  1  sublogin                 submit    (None)        Login

current page: http://www.crimebloc.com
>> fv login login username
current page: http://www.crimebloc.com
>> fv login pass password
current page: http://www.crimebloc.com
>> submit

There you have, your initial steps. The rest is up to you. :)

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG3od9AlpOsGhXcE0RCgO/AJwKAS2ijPL98buA6Tue4hEeMyKJwwCfQRDC
IizumBhI0EzIyvWzqrL1F9I=
=yTyD
-----END PGP SIGNATURE-----



More information about the twill mailing list