Comments (7)
Just pushed a new branch which allows viewing attachments using "lpass show":
https://github.com/lastpass/lastpass-cli/tree/topic-attachments
from lastpass-cli.
Thanks for coding this up - I'm trying it out off of your branch and after adding a few fprintf's
, I think I'm getting back an empty string (JSON) from cmd-show.c
when it's calling lastpass_load_attachment
when it is making the post via lastpass_load_attachment
. Is the endpoint show_website.php
correct? Or is there a different reason why I might be getting back an empty string? ""
from lastpass-cli.
This does not yet support secure note attachments.
A workaround for now is to keep your private keys as text in a regular note.
from lastpass-cli.
I will try that although https://forums.lastpass.com/viewtopic.php?f=7&t=94925 prevents it from being really viable.
from lastpass-cli.
As noted in #77 I just push a change to enable parsing of the secure note templates, please try it out.
from lastpass-cli.
Double-checked, looks like
reply = http_post_lastpass("show_website.php", session, NULL,
"token", session->token,
"getattach", attach->storagekey, NULL);
returns ""
from lastpass-cli.
@kyleburton @akolesen "show_website.php" doesn't seem like the correct endpoint. I switched it to "getattach.php". Additionally, the reason that you are be getting back ("") from the call is that the "sharedfolderid" was not being provided to the server in that call. In other words if the attachment was part of a note in a shared folder, it would fail and return nothing ("").
from lastpass-cli.
Related Issues (20)
- Timestamps are off by several hours
- Question: what is the "id" for the `-i` flag in the lpass-att-export.sh script? HOT 2
- can't login "Error: Stream error in the HTTP/2 framing layer." HOT 4
- Fix folder separators
- Random lpass Error: Could not find decryption key
- Support login with SSO HOT 12
- Unable to login with lpass cli HOT 61
- certificate pinning is an outdated security measure
- Forgot to update version 1.3.5 in LASTPASS-VERSION-GEN
- lastpass-cli: Do not interpose reallocarray in /usr/bin/lpass HOT 1
- cygwin make fails due to CRLF in LASTPASS-VERSION-GEN
- Error: Peer certificate cannot be authenticated with given CA certificates. HOT 1
- lastpass-cli sync does not complete on Mac OS 14 HOT 2
- Feature request: lpass copy HOT 1
- Building image from the source does not work HOT 2
- Feature request: Return the error code when there's an HTTP error
- Cannot change master password with "lpass passwd"
- Ubunutu 22.04 libssl dependency
- UUID of 0 for new entry when scripting
- Possible to create Sub-folders?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lastpass-cli.