projects
/
pwnitter
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5a75bb
)
Generalised the Twitter auth token detection
author
Tobias Mueller
<tobiasmue@gnome.org>
Mon, 20 Dec 2010 00:48:25 +0000
(06:18 +0530)
committer
Tobias Mueller
<tobiasmue@gnome.org>
Mon, 20 Dec 2010 00:51:09 +0000
(06:21 +0530)
pwnitter.py
patch
|
blob
|
history
diff --git
a/pwnitter.py
b/pwnitter.py
index
5d84701
..
3efd967
100755
(executable)
--- 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))