0.0.3 • Published 5 years ago
hexo-htb-auto-publish v0.0.3
hexo-htb-auto-publish
This Project is based on hexo-twitter-auto-publish to Submit Walk-through to HackTheBox.
Installation
npm i hexo-htb-auto-publishUsage
set Environment Variables as
export HTB_EMAIL="example@example.com"
export HTB_PASSWORD="PASSWORD"and
export HTB_TOTP_SECRET="TOTP SECRET" # This is required if TOTP is enabled.after done with this.
Add machineId: as HTB machineId in the post header
example:
https://app.hackthebox.eu/machines/263 or https://www.hackthebox.eu/home/machines/profile/263Here the machine Id is 263
and add a tag of htb or hackthebox
Now when you deploy next time using
hexo deployit will create a htb-db.json and will try to submit to hackthebox
You can also use
hexo htb-publishto submit without deploying.
About htb-db.json
There are three fields in the database: published, to-publish, to-destroy.
published- contains posts that are already on HackTheBox.to-publish- contains all new posts that have not yet posted on HackTheBox.