Code Monkey home page Code Monkey logo

alfred-imessage-2fa's Introduction

                          __   __         
.-----.-----.--.--.---.-.|  |_|  |_.-----.
|__ --|  _  |  |  |  _  ||   _|   _|  _  |
|_____|__   |_____|___._||____|____|_____|
         |__|                             

      @squatto | github.com/squatto

Co-founder/Head of Technology at Quadra, Inc.

https://quadraecom.com / @QuadraEcommerce


squatto's GitHub stats

squatto's Skills

alfred-imessage-2fa's People

Contributors

cmer avatar luckman212 avatar manonstreet avatar squatto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alfred-imessage-2fa's Issues

Add support for Chase codes

Here's an example text message:

From: Chase
We'll NEVER call you to ask for this code.
One-Time Code:40502888
Only use this online. Code expires in 30 min.

read messages

didn't it had the feature to auto-read the latest 2fm messages on old macos ? im not sure anymore

Cannot match some 2FA in 4 digits

Examples:
您的优步验证码是 3133. 切勿分享此代码. (2FA Keyword: "验证码")

[PayPayCard]認証コードは次の通りです:2684
有効期限は10分です。(2FA Keyword: "コード")

ヤフー 確認コード:4377
このコードは他の人には絶対に教えないでください。
@login.yahoo.co.jp #4377 (2FA Keyword: "コード")

Code from Chase bank not found

The following is the text of the message (where XXXXXXXX is 8 digits, no space and no space to the leading colon):

From: Chase Online Reminder: We'll never call you to ask for this code Enter online at prompt, expires in 30 min. One-Time Code:XXXXXXXX

the code with other language seems difficult to figure out

os version: MacOS 10.15.7
Alfred version: 4.1
workflow version: 1.2.3

It seems difficult to figure out code with other language. For instance, the message content like this can't be detected, "您的验证码是 199035,10分钟内有效,请勿泄露" and "登录验证码:627823,您正在尝试【登录】,10分钟内有效" as well. However, the content like this can be detected correctly, "【赛验】验证码 54538".

I'm not sure it the language that makes detection difficult, or the location of the code in content make it wrong.

Cannot get macOS to respond to request to add Alfred to Automation in Privacy

I've got Alfred 4.3 up and running (and otherwise working) on macOS 11.1.
When I try to use iMessage 2FA I get ERROR: Unable to Access Your Messages

This worked on macOS 10.15 with no issues but now it seems Alfred is not prompting the OS to add Alfred to the Automation section under Preferences...Privacy. I've tried to use the Request Permissions...Open macOS Automation preferences with no luck.

Is there something I can do to force Alfred to request the Automation permission to get this working (which I've come to love since WFH and Cisco with 2FA, etc)

Limit to <15 min?

Amazingly useful workflow !! I didn't even know the iMessage db was just a simple sqlite that could be queried. Bravo for this.

One thing, I notice that it's pulling in 2FA codes from months ago in my chats.

It'd be useful to limit the search results to just the last XX minutes (10 min, 15 min, maybe 24h max?) since codes older than that are likely useless anyway.

I might look at the code later and see if I can make a PR for this.

We were unable to access the file that contains your text messages on macOS Catalina

Alfred version: Alfred 4.0.8. For whatever reasons, the workflow is not able to fetch the messages DB.

The file exists and permissions are ok

ls -lah ~/Library/Messages/chat.db
-rw-r--r--@ 1 sabhat  staff   2.0M Feb 24 18:49 /Users/sabhat/Library/Messages/chat.db

I can open with sqlite3

cd ~/Library/Messages/
sqlite3

.open chat.db

sqlite> .tables
_SqliteDatabaseProperties  kvtable
attachment                 message
chat                       message_attachment_join
chat_handle_join           message_processing_task
chat_message_join          sync_deleted_attachments
deleted_messages           sync_deleted_chats
handle                     sync_deleted_messages

Debug log

[20:02:34.014] iMessage 2FA[Script Filter] Queuing argument ''
[20:02:34.158] iMessage 2FA[Script Filter] Script with argv '(null)' finished
[20:02:34.161] iMessage 2FA[Script Filter] {"items":[{"arg":"","subtitle":"We were unable to access the file that contains your text messages","title":"ERROR: Unable to Access Your Messages","valid":true}]}

Not working on Big sur

I used this excellent workflow for a bit but recently updated to Big Sur.
Since then, it stopped working. Maybe the location of the imessage database moved or something? :/

And yes, I have checked, Alfred still has automation access to System events.

Host: iMac19,2
Kernel: 20.5.0
Uptime: 3 hours, 25 mins
Packages: 127 (brew)
Shell: zsh 5.8
Resolution: 1680x945@2x, 900x1600@2x
DE: Aqua
WM: Quartz Compositor
WM Theme: Blue (Light)
Terminal: iTerm2
Terminal Font: Menlo-Regular 24
CPU: Intel i3-8100 (4) @ 3.60GHz
GPU: Radeon Pro 555X
Memory: 9379MiB / 16384MiB

Screen Shot 2021-06-07 at 16 13 13

Not working on macOS 12

Version Info

  • OS: macOS 12.0 Beta (21A5248p)
  • Alfred: 4.3.4 [1229]
  • iMessage 2FA: 1.2.6

STR

  • Open Alfred
  • Begin typing the keyword for the iMessage 2FA workflow (mine is set to "2fa" but I've also tried the default "otp")
  • When the workflow comes up press enter/return

Expected behavior

The list of available OTP codes from iMessage should be shown

Actual behavior

I'm only offered to search for my workflow activation keyword through established search providers

Additional info

I'm not sure if this is an issue with the workflow or with Alfred itself...

2021061634yiC6J9

Simple bash based implementation?

Hi, @squatto,

Thank you for doing all the work on this Alfred workflow! It's exactly what I was looking for. I didn't want to install php on my computer, though. So, I have been working on a simple bash based implementation. I have a very simple implementation, but functionally, it can be updated to be similar to this workflow. You can see the very rough first working version at https://github.com/thebitguru/alfred-imessage-2fa-copy

I would like to share it publicly and I am trying to decide how best to do that. Not sure how you would like to proceed. Any reason to switch this repo to use the bash version or should I publish it as a new workflow?

Thanks, again!

Feature Request: Mark As Read

Would it be possible to mark the message as read when it gets copied? I get alerts on my phone and have badges in Messages if I don't manually view the message.

Not working with BOA and Cigna

Just downloaded the workflow from Packal and tried to use with Bank of America and Cigna, but they aren't showing up in Alfred:

image

Here are the 2fa messages I received from them:

<#>BofA: Your code is XXXXXX. Don't share it; we won't call to ask for it. Call 800.933.6262 if you didn't request it.
Your Cigna authentication code is XXXXXX.

Doesn't copy any more

Not sure what happened now. It was working fine until recently

It launches fine with "2fm" - it finds the code - I select and press enter - Alfred notification says code was copied.

But when I go to paste - it's not there. Whatever was previously copied is pasted

Alfred 5.06
2fm ver 1.2.8
MacOS 13.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.