Giter Site home page Giter Site logo

Comments (7)

TinfoilSubmarine avatar TinfoilSubmarine commented on July 18, 2024

Hi, thanks for the suggestion. I've thought about implementing such a feature, but always lost motivation because the default autotype (wofi-pass --autotype) met >90% of the scenarios where I wanted to autotype. Have you had a chance to try this? What are the shortcomings?

from wofi-pass.

UltraBlackLinux avatar UltraBlackLinux commented on July 18, 2024

Hi, thanks for the suggestion. I've thought about implementing such a feature, but always lost motivation because the default autotype (wofi-pass --autotype) met >90% of the scenarios where I wanted to autotype. Have you had a chance to try this? What are the shortcomings?

I did try this, but never ended up using it, because it apparently expects a "password: " field, but the first line is always already the password. If I added "password:" then it would mess up other pass utilities since they will always also read that prefix. Meaning that it would always just error on line 103 and exit.

I would like to see the following just because it will cause the least problems:

myexamplepassword
username: this has any prefix
somevalue: foobarbazcruz
otpauth://somestuff
autotype: {password}{TAB}{username}{DELAY 1000}{OTP}{TAB}{somevalue}{ENTER}

What do you think? It handles cases like gitea equally as well as Paypal (which is hiding the password prompt on another page which it redirects to after a few seconds)

from wofi-pass.

TinfoilSubmarine avatar TinfoilSubmarine commented on July 18, 2024

I did try this, but never ended up using it, because it apparently expects a "password: " field, but the first line is always already the password. If I added "password:" then it would mess up other pass utilities since they will always also read that prefix. Meaning that it would always just error on line 103 and exit.

Hmm, this sounds like a bug. Are you using the latest version? I just pushed a commit that fixed a possibly related issue. And it does not expect a password: field, it should be using the same scheme you are using (password at top).

from wofi-pass.

TinfoilSubmarine avatar TinfoilSubmarine commented on July 18, 2024

I would like to see the following just because it will cause the least problems:

myexamplepassword
username: this has any prefix
somevalue: foobarbazcruz
otpauth://somestuff
autotype: {password}{TAB}{username}{DELAY 1000}{OTP}{TAB}{somevalue}{ENTER}

What do you think? It handles cases like gitea equally as well as Paypal (which is hiding the password prompt on another page which it redirects to after a few seconds)

I like this idea, I'll look into how hard it would be to implement. A quality pull request would also be welcome; after all, Hacktoberfest is coming up... :)

from wofi-pass.

UltraBlackLinux avatar UltraBlackLinux commented on July 18, 2024

I like this idea, I'll look into how hard it would be to implement. A quality pull request would also be welcome; after all, Hacktoberfest is coming up... :)

I would love to do this in lua, if you accept the inclusion of lua stuff into your project. it would make things much much easier ;)

from wofi-pass.

TinfoilSubmarine avatar TinfoilSubmarine commented on July 18, 2024

Hey, sorry for just getting around to responding to this, your other issue reminded me. I haven't been using this project for a little while now, but I would be OK with anything you are willing to contribute.

from wofi-pass.

UltraBlackLinux avatar UltraBlackLinux commented on July 18, 2024

parse.lua.txt

This is my current version of the parser. I suggest you just use this as inspiration for a reimplementation in bash. I'm just not really familiar with that.
Some features are also not fully complete, as seen in the comments. I had no clue how to use pass-otp with a supplied link, so I just left that out for you to add once you implement this (hopefully)

I hope this is at least somewhat useful to you!

from wofi-pass.

Related Issues (6)

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.