From 1efb778d2c0d4841cfcbb6b69371caf465b8a836 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Mon, 20 Dec 2010 06:18:25 +0530 Subject: [PATCH] Generalised the Twitter auth token detection --- pwnitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 1.7.9.5