missing x-client-transaction-id
this is a very complex header to generate which seems to influence whether an account allows to be logged in and/or gets blocked, etc
- https://x.com/faa0311/status/1868247311379558621
- https://social.treehouse.systems/@dcnick3/112846737210886424
- https://web.archive.org/web/20241206000856/https://antibot.blog/twitter-header-part-3/
- https://blog.nest.moe/posts/twitter-header-part-4
- https://zhuanlan.zhihu.com/p/15101309732
- https://github.com/fa0311/twitter-tid-deobf-fork
implementations
- https://github.com/dimdenGD/OldTweetDeck/blob/ec304d307ef39ffce89c0d275a7e8d7a3774ef83/src/interception.js#L1919
- https://github.com/dimdenGD/OldTwitter/blob/06938a13873d232595d29e74fc42f8f8ace2615f/scripts/twchallenge.js#L124
- https://github.com/iSarabjitDhiman/XClientTransaction
i'm working on implementing it downstream
i tried to abuse AIs to port the generator over to JS but failed. while i'll probably get to doing that properly at some point, for now i've made the cursed decision to just call the already working python code from the iSarabjitDhiman/XClientTransaction repo.
i'm using bun_python for this, so it only works in bun.js
of course this isn't upstreamable, but i wanted to get it working asap :')
https://github.com/catdevnull/docialsata/blob/main/src/auth-user.ts https://github.com/catdevnull/docialsata/blob/main/src/transaction-id.md https://github.com/catdevnull/docialsata/blob/main/src/transaction-id.ts