Package: wpbiff
Wordpress Two-Factor Authentication Brute-forcerFeaturesThis utility brute-forces two-factor protected Wordpress dashboards by iterating
through every possible 6-digit Google Authenticator TOTP token.WPBiff is meant to be used together with Main-in-the-Middle based attacks against NTP.Supported PluginsWPBiff is able to brute-force Wordpress login pages protected by the following
two-factor authentication plugins:Google Authenticatorby Henrik SchackWP Google Authenticatorby Julien LiabeufInstalling WPBiffThe latest package is available onPyPI$ pip install wpbiffRequirementsThis utility runs on Python 2.6 and 2.7Usage InstructionsIn order to carry out successful attack against a two-factor protected Wordpress
blog, you must satisfy the following two pre-requisites.Pre-requisitesThe first requirement is that you must have the login username and password to
the Wordpress dashboard on/wp-admin. The credentials can be acquired by
phishing, key logging or password reuse.Secondly, you must be able to control the internal clock of the target server.
I recommendDeloreanto fixate the server time to a certain point. You must
fixate an arbitrary date with the-dflag with Delorean and use the
very same time stamp with WPBiff in parallel.For more information on remote clock tampering, please refer to this blog entry(coming soon).OptionsThe following section explains the basic usage of WPBiff. You can also use
the-hswitch any time to get help.-d,--dateDATEPinned date (Format: “YYYY-MM-DD hh:mm”)  [required]-u,--usernameUSERWordpress username  [required]-p,--passwordPASSWordpress password  [required]-a,--user-agentHTTP User-Agent header (default: Firefox)-t,--tokenTOKENInitial value of token (default: 000000)-m,--max-tokenTOKENMaximum token value (default: 999999)Use the--pluginswitch to choose between the Wordpress plugin type providing
two-factor authentication for the target. ChoosegaforGoogle AuthenticatorandwpgaforWP Google Authenticator.ExamplesAssume NTP traffic can be intercepted between your target and the upstream NTP
server. By tampering with this traffic, you can “pin” the target’s clock to a
certain time and date.LaunchDeloreanNTP server to serve a fixed time and date$ ./delorean.py -d "2015-10-30 11:22"Redirect NTP traffic from your target to the fake NTP server.Finally launch WPBiff as the following$ wpbiff -u admin -p admin -d "2015-10-30 11:22" --plugin ga "http://www.example.com"This session will brute force Wordpress onwww.example.comwith the login usernameadminand passwordadmin.Once the process finishes, WPBiff dumps the valid token and the session cookies
for accessing the Wordpress dashboard.SpeedIf the clock on the target Wordpress site reverts to the same time and date
every minute (e.g. ntpdate runs minutely), three parallel instances of WBiff is
capable to find the TOTP token in about an hour.Synthetic Test ResultsTestWPBiff 1WPBiff 2WPBiff 3Session 157m141mn.a.Session 251m46mn.a.Session 3102m83mn.a.WhereWPBiff 1,2and3were covering different ranges within
all possible combinations of 6-digit tokensubuntu@wpbiff1:~$ wpbiff -t 000000 -m 333333 ...

ubuntu@wpbiff2:~$ wpbiff -t 333334 -m 666666 ...

ubuntu@wpbiff3:~$ wpbiff -t 666667 -m 999999 ...LinksBlog entry with detailed walkthrough(coming soon)Source code on GitHubPackage on PyPIContributorsGabor Szathmari -@gszathmariCreditsDelorean: NTP Main-in-the-Middle tool