ekingery / hushmail-automatic-login Goto Github PK
View Code? Open in Web Editor NEWBash script to automate a login to hushmail via curl
Bash script to automate a login to hushmail via curl
Nice script, but you should really encode the password in case it contains special characters (like &).
I've added the line:
HUSH_PASS=$(echo -e "$HUSH_PASS" | od -An -tx1 | tr ' ' % | xargs printf "%s")
above the TMPDIR=${TMPDIR:=/tmp} line.
For the rest, works like a charm! Thanx ;)
Hushmail now allows users to choose other domain names like hush.com, etc. Line 25 needs to be changed from this:
huser="&hush_username=${HUSH_USER}%40hushmail.com"
To this:
huser="&hush_username=${HUSH_USER}"
To work around it. Of course $HUSH_USER needs to contain the full email address with the domain name for this to work.
Thanks for the excellent script!
First fo all, thank you so much for sharing this script, it's awesome!! It's been working great for a while, but today I got an error:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.htmlcurl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.htmlcurl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
rm: cannot remove ‘/tmp/hush_cookies.txt’: No such file or directory
login failed with results:
As a side note, I haven't updated anything in the OS.
First, thanks for a very useful script! It's been working fine for a year or so, but today I got an error:
curl: (6) Could not resolve host: [redacted]
login failed with results: {"message":"Page not found","hushIdentifier":"PAGE_NOT_FOUND","hushErrorID":"54322cc53c4fb5.39028871"}
All the url's used by the script still seem to be the same and the the computer can resolve them fine, so I have no idea what's at fault. I checked the repository and noticed that there was a new version available, so I updated to the latest and now I get this error message:
curl: (23) Failed writing body (933 != 5242)
Anyone else getting the same error? Or is my computer at fault? I've recently updated to Ubuntu 14.04 so that may have changed something as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.