X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=pwnitter.py;fp=pwnitter.py;h=3efd9678b89cf562cdeeb3927be1460ebafafdf5;hb=1efb778d2c0d4841cfcbb6b69371caf465b8a836;hp=5d8470148c90eab07de94b74e163038ed59f27af;hpb=f5a75bbd69465ef407e93fed8968f35b389baa68;p=pwnitter diff --git a/pwnitter.py b/pwnitter.py index 5d84701..3efd967 100755 --- a/pwnitter.py +++ b/pwnitter.py @@ -119,7 +119,7 @@ class Pwnitter(dbus.service.Object): # Newtwitter and Oldtwitter have different formatting, so be lax authToken = '' - formMatches = re.search("<.*?authenticity_token.*?>", page, 0) + formMatches = re.search("<.*?auth.*?_token.*?>", page, 0) if formMatches: authMatches = re.search("value=[\"'](.*?)[\"']", formMatches.group(0))