Automate a Login That Has a SMS 2FA?

I'm such an extreme newbie that don't even have KBM yet. I am considering it for a specific kind of task: logging into a bank or credit card website and navigating the site to download recent transactions in a chosen format file. I'm pretty sure it can handle the post-login part. I'm not sure about logging in with 2FA that sends an SMS message containing a code to my iPhone; the code then has to be extracted from the message and entered in a form field on the web site. Can KBM retrieve the code from the MacOS Messages application? If necessary, I am able to provide snippets of software as part of the project. For now, I just need to know whether KBM can automate this.

Can it be done?

Most likely.

Will it be simple?

Most likely not.

1 Like

It took me a couple of days, but I did it! I learned a lot about KBM in the process. And of course I ended my trial by buying a license.


Hey, do you mind sharing your method of grabbing your 2FA code from your most recent SMS in the Messages app? Thanks a lot!

I don't mind...

2FA SMS code from Messages Macro (v11.0.2)

2FA SMS code from Messages.kmmacros (15 KB)

1 Like

you're a legend!!! thank you :pray: