Page 1 of 1

PHPBB automated login demo macro

Posted: Mon Sep 15, 2008 8:33 am
by Tech Support
Here is the macro that we use to automate login to this PHPBB3-based forum.

Code: Select all

VERSION BUILD=6070911 RECORDER=FX
TAB T=1
'Remember the start URL (typically a forum post that we want to reply to)
SET !VAR1 {{!URLCURRENT}}
URL GOTO=http://forum.imacros.net/
TAG POS=1 TYPE=A ATTR=TXT:Login
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://forum.imacros.net/ucp.php?mode=login ATTR=ID:username CONTENT=tech<SP>support
SET !ENCRYPTION YES
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:http://forum.imacros.net/ucp.php?mode=login ATTR=ID:password CONTENT=2E770CE3B82CA141494849E33AE455B1403B9660B6F8EBBF682145EB52925D58
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login ATTR=NAME:login&&VALUE:Login
'Navigate Back to the original forum post
URL GOTO={{!VAR1}}
The built-in !URLCURRENT variable is used to navigate back to the start web page (forum post) after the login is completed.

The original encrypted password string is included in the macro. This is secure, because it requires the master password phrase to decrypt it.

In Firefox, you can also add the macro to the bookmarks toolbar:
firefox bookmarks toolbar.png