@@ -94,20 +94,43 @@ export async function getArkoseToken(config) {
94
94
}
95
95
96
96
// https://github.com/tctien342/chatgpt-proxy/blob/9147a4345b34eece20681f257fd475a8a2c81171/src/openai.ts#L103
97
+ // https://github.com/zatxm/aiproxy
97
98
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' ]
100
107
101
108
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 ) ]
103
112
104
113
const parseTime = new Date ( ) . toString ( )
105
114
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 ++ ) {
111
134
config [ 3 ] = i
112
135
const jsonData = JSON . stringify ( config )
113
136
// eslint-disable-next-line no-undef
0 commit comments