Skip to content

Commit 74e8c1f

Browse files
committed
update generateProofToken (#713, #718)
1 parent 9339b23 commit 74e8c1f

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

src/services/apis/chatgpt-web.mjs

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,43 @@ export async function getArkoseToken(config) {
9494
}
9595

9696
// https://github.com/tctien342/chatgpt-proxy/blob/9147a4345b34eece20681f257fd475a8a2c81171/src/openai.ts#L103
97+
// https://github.com/zatxm/aiproxy
9798
function generateProofToken(seed, diff, userAgent) {
98-
const cores = [8, 12, 16, 24]
99-
const screens = [3000, 4000, 6000]
99+
const cores = [1, 2, 4]
100+
const screens = [3008, 4010, 6000]
101+
const reacts = [
102+
'_reactListeningcfilawjnerp',
103+
'_reactListening9ne2dfo1i47',
104+
'_reactListening410nzwhan2a',
105+
]
106+
const acts = ['alert', 'ontransitionend', 'onprogress']
100107

101108
const core = cores[randomInt(0, cores.length)]
102-
const screen = screens[randomInt(0, screens.length)]
109+
const screen = screens[randomInt(0, screens.length)] + core
110+
const react = cores[randomInt(0, reacts.length)]
111+
const act = screens[randomInt(0, acts.length)]
103112

104113
const parseTime = new Date().toString()
105114

106-
const config = [core + screen, parseTime, 4294705152, 0, userAgent]
107-
108-
const diffLen = diff.length / 2
109-
110-
for (let i = 0; i < 100000; i++) {
115+
const config = [
116+
screen,
117+
parseTime,
118+
4294705152,
119+
0,
120+
userAgent,
121+
'https://tcr9i.chat.openai.com/v2/35536E1E-65B4-4D96-9D97-6ADB7EFF8147/api.js',
122+
'dpl=1440a687921de39ff5ee56b92807faaadce73f13',
123+
'en',
124+
'en-US',
125+
4294705152,
126+
'plugins−[object PluginArray]',
127+
react,
128+
act,
129+
]
130+
131+
const diffLen = diff.length
132+
133+
for (let i = 0; i < 200000; i++) {
111134
config[3] = i
112135
const jsonData = JSON.stringify(config)
113136
// eslint-disable-next-line no-undef

0 commit comments

Comments
 (0)