Looks like there are some neat ideas/scripts in @Le0Developer 's captcha-mining repo that could be useful to take inspiration from:
- https://github.com/Le0Developer/captcha-mining
- https://github.com/Le0Developer/captcha-mining/blob/master/.github/workflows/ci.yml#L26-L30
- Runs
scripts/src/index.js on a schedule (cron: "22 * * * *")
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/package.json#L14
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/src/index.ts#L4-L5
- Runs
updateTurnstile then updateHCaptcha
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/src/turnstile.ts
- Fetches the remote asset, checks version, calls
cleanJavascript, writes files, calls tryAndPush, calls notify
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/src/hcaptcha.ts
- Fetches the remote asset, checks version, calls
cleanJavascript, writes files, fetches additional assets, writes files, if extension is .js then calls cleanJavascript and writes more files, calls tryAndPush, calls notify
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/src/lib/clean.ts
cleanJavascript: Basically just runs webcrack
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/src/lib/git.ts
- https://github.com/Le0Developer/captcha-mining/blob/master/scripts/src/lib/notifications.ts
notify: calls sendDiscordNotification, which makes a POST to process.env.DISCORD_WEBHOOK
From a quick skim, Cloudflare-Mining/Cloudflare-Datamining also looks like it would have some useful ideas/scripts/etc:
See Also
Looks like there are some neat ideas/scripts in @Le0Developer 's captcha-mining repo that could be useful to take inspiration from:
scripts/src/index.json a schedule (cron: "22 * * * *")updateTurnstilethenupdateHCaptchacleanJavascript, writes files, callstryAndPush, callsnotifycleanJavascript, writes files, fetches additional assets, writes files, if extension is.jsthen callscleanJavascriptand writes more files, callstryAndPush, callsnotifycleanJavascript: Basically just runswebcracktryAndPush: usessimpleGittopull,add,commit(but seeminglypushis left to CI to do)notify: callssendDiscordNotification, which makes aPOSTtoprocess.env.DISCORD_WEBHOOKFrom a quick skim, Cloudflare-Mining/Cloudflare-Datamining also looks like it would have some useful ideas/scripts/etc:
See Also