akamai sensor_data 解析
By
money
at 2021-10-21 • 0人收藏 • 726人看过
import win.ui; /*DSG{{*/ var winform = win.form(text="Edge 浏览器控件 - web.view";right=759;bottom=469;bgcolor=16777215) winform.add( button2={cls="button";text="测试";left=655;top=12;right=725;bottom=39;z=1}; edtSensor={cls="edit";left=34;top=14;right=621;bottom=42;edge=1;z=2}; edtSt={cls="richedit";text="RichEdit";left=20;top=67;right=742;bottom=458;edge=1;hscroll=1;multiline=1;vscroll=1;z=3} ) /*}}*/ winform.button2.oncommand = function(id,event){ var tab = parse(winform.edtSensor.text) winform.edtSt.text = web.json.stringify(tab,true) } import console; mouseTypes={"move";"click"; "down"; "up"}; pointerTypes={[3]="down";[4]= "up"}; touchTypes={"move"; "start"; "end"; "cancel"}; keyboardTypes={"down"; "up"; "press"}; visibleTypes={[2]= "隐藏";[3]="显示"}; function parse(sensordata){ sensordata = string.split(sensordata,'<-1,2,-94,>'); var id2name = { ['-70']="字体和canvas指纹"; ['-80']="字体和canvas指纹加密"; ['-100']="ua信息"; ['-101']="硬件信息"; ['-102']="页面表单"; ['-103']="窗口隐藏显示事件"; ['-105']="页面表单1"; ['-106']="ajax信息"; ['-108']="键盘事件"; ['-109']="设备运动事件"; ['-110']="鼠标事件"; ['-111']="设备方向事件"; ['-112']="页面URL"; ['-114']="pointer事件"; ['-115']="用户操作等信息"; ['-116']="根据技术参数加密时间"; ['-117']="pointer事件1"; ['-118']="sensordata前段加密"; ['-119']="各数学方法耗时计算"; ['-121']="尾部"; ['-122']="Webdriver信息"; ['-123']="技术参数1"; ['-124']="技术参数2"; ['-126']="技术参数3"; ['-127']="navigatorPermissions信息"; ['-129']="显卡音频信息及加密"; } var tab={}; for(i=1;#sensordata;1){ var tmp = string.split(sensordata[i],',',2); var name = id2name[tmp[1]]; if(name){ var info={}; tab[name]=info select(tmp[1]) { case '-70' { var arr=string.split(tmp[2],';'); info["canvas指纹1"]=arr[1]; info["canvas指纹2"]=arr[2]; info["字体指纹"]=arr[3]; info["插件信息"]=arr[4]; info["sessionStorage支持"]=arr[5]; info["localStorage支持"]=arr[6]; info["indexedDb支持"]=arr[7]; info["时区"]=arr[8]; info["webrtc支持"]=arr[9]; info["颜色深度"]=arr[10]; info["像素深度"]=arr[11]; info["cookie支持"]=arr[12]; info["java支持"]=arr[13]; info["防跟踪支持"]=arr[14]; } case '-100' { var arr=string.split(tmp[2],'<,uaend,>',2); info["UA"]=arr[1]; arr = string.split(arr[2],','); info["window指纹"]=arr[1]; info["navigator版本号"]=arr[2]; info["navigator语言"]=arr[3]; info["navigator内核"]=arr[4]; info["navigator插件数量"]=arr[5]; info["phantom支持"]=arr[6]; info["webdriver支持"]=arr[7]; info["domAutomation支持"]=arr[8]; info["时间校验"]=arr[9]; info["时间校验1"]=arr[10]; info["screen_availWidth"]=arr[11]; info["screen_availHeight"]=arr[12]; info["screen_width"]=arr[13]; info["screen_height"]=arr[14]; info["body_width"]=arr[15]; info["body_height"]=arr[16]; info["outer_height"]=arr[17]; var i; for(c=1;#arr;1){ arr1 = string.split(arr[c],':',2); if(#arr1==2){ select(arr1[1]) { case 'loc' { info["loc"]=arr1[2]; } case 'cpen' { info["callPhantom支持"]=arr1[2]; } case 'i1' { info["ActiveXObject支持"]=arr1[2]; } case 'dm' { info["documentMode支持"]=arr1[2]; } case 'cwen' { info["chrome商店"]=arr1[2]; } case 'non' { info["是否在线"]=arr1[2]; } case 'opc' { info["opera浏览器"]=arr1[2]; } case 'fc' { info["安装插件"]=arr1[2]; } case 'sc' { info["函数劫持"]=arr1[2]; } case 'wrc' { info["webRTC支持"]=arr1[2]; } case 'isc' { info["老浏览器属性"]=arr1[2]; } case 'vib' { info["震动支持"]=arr1[2]; } case 'bat' { info["电量查询"]=arr1[2]; } case 'x11' { info["forEach支持"]=arr1[2]; } case 'x12' { info["FileReader支持"]=arr1[2]; } else { } } } } info["UA加密"]=arr[#arr-4]; info["随机数校验"]=arr[#arr-3]; info["开始时间除2"]=arr[#arr-2]; info["brave浏览器"]=arr[#arr-1]; } case '-101' { var arr=string.split(tmp[2],','); info["设备方向/定位支持"]=arr[1]; info["设备运动/手势支持"]=arr[2]; info["触摸支持"]=arr[3]; } case '-115' { var arr=string.split(tmp[2],','); info["键盘事件检验"]=arr[1]; info["鼠标事件检验"]=arr[2]; info["触摸事件检验"]=arr[3]; info["设备方向事件检验"]=arr[4]; info["设备运动事件检验"]=arr[5]; info["pointer事件检验"]=arr[6]; info["事件检验和"]=arr[7]; info["初始耗时"]=arr[8]; info["服务器时间"]=arr[9]; info["初始化时间"]=arr[10]; info["指纹耗时"]=arr[11]; info["神秘参数"]=arr[12]; info["键盘事件次数"]=arr[13]; info["鼠标事件次数"]=arr[14]; info["pointer事件次数"]=arr[15]; info["触摸事件检验"]=arr[16]; info["神秘参数1"]=arr[17]; info["耗时1"]=arr[18]; info["所有事件时差和"]=arr[19]; info["abck是否存在"]=arr[20]; info["abck"]=arr[21]; info["abck加密"]=arr[22]; info["canvas随机值"]=arr[23]; info["canvas随机值指纹"]=arr[24]; info["navigator指纹"]=arr[25]; info["PiZtE"]=arr[26]; info["初始化时间加密1"]=arr[27]; info["初始化时间加密2"]=arr[28]; info["爬虫校验"]=arr[29]; info["Webdriver检验"]=arr[30]; } case '-106' { var arr=string.split(tmp[2],','); info["ajax类型"]=arr[1]; info["ajax序号"]=arr[2]; } case '-129' { var arr=string.split(tmp[2],','); info["字体指纹"]=arr[1]; info["像素比"]=arr[2]; info["声卡指纹"]=arr[3]; info["wbgl_vendor"]=arr[4]; info["wbgl_render"]=arr[5]; info["wbgl插件指纹"]=arr[6]; info["wbgl插件数量"]=arr[7]; } case '-124' { var arr=string.split(tmp[2],';'); info["随机数"]=arr[1]; info["耗时"]=arr[2]; info["序号"]=arr[2]; info["明细"]=arr[2]; } case '-121' { var arr=string.split(tmp[2],';'); info["sensordata耗时"]=arr[2]; info["Tracking耗时"]=arr[3]; info["尾部耗时"]=arr[4]; } case '-110' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "序号"=evt[1]; "类型"=mouseTypes[tonumber(evt[2])]; "时间"=evt[3]; "X"=evt[4]; "Y"=evt[5]; "目标"=evt[6]; "源"=evt[7]; }) } } case '-103' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "类型"=visibleTypes[tonumber(evt[1])]; "时间"=evt[2]; }) } } case '-111' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "序号"=evt[1]; "时间"=evt[2]; "alpha"=evt[3]; "beta"=evt[4]; "gamma"=evt[5]; }) } } case '-109' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "序号"=evt[1]; "时间"=evt[2]; "X"=evt[3]; "Y"=evt[4]; "Z"=evt[5]; "X1"=evt[6]; "Y1"=evt[7]; "Z1"=evt[8]; "alpha"=evt[9]; "beta"=evt[10]; "gamma"=evt[11]; }) } } case '-108' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "序号"=evt[1]; "类型"=keyboardTypes[tonumber(evt[2])]; "时间"=evt[3]; "keyCode"=evt[4]; "固定值"=evt[5]; "keySign"=evt[6]; "目标"=evt[7]; }) } } case '-117' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "序号"=evt[1]; "类型"=touchTypes[tonumber(evt[2])]; "时间"=evt[3]; "X"=evt[4]; "Y"=evt[5]; }) } } case '-114' { var arr=string.split(tmp[2],';'); for(j=1;#arr;1){ if(!#arr[j]) continue; var evt = string.split(arr[j],',') table.push(info,{ "序号"=evt[1]; "类型"=touchTypes[tonumber(evt[2])]; "时间"=evt[3]; "X"=evt[4]; "Y"=evt[5]; }) } } else { tab[name]=tmp[2] } } }else { //table.push(tab, sensordata[i]) } } return tab; } winform.show() return win.loopMessage();
{ "Webdriver信息":"0,0,0,0,1,0,0", "navigatorPermissions信息":"11321144241322243122", "sensordata前段加密":"192976", "各数学方法耗时计算":"20,40,20,20,40,20,20,20,20,0,0,0,0,140,", "字体和canvas指纹加密":"5426", "技术参数1":"", "技术参数3":"", "根据技术参数加密时间":"83071845", "窗口隐藏显示事件":[ { "时间":"2278", "类型":"隐藏" }, { "时间":"6148", "类型":"显示" } ], "设备方向事件":[ { "alpha":"-1", "beta":"-1", "gamma":"-1", "序号":"0", "时间":"69" } ], "设备运动事件":[ { "X":"-1", "X1":"-1", "Y":"-1", "Y1":"-1", "Z":"-1", "Z1":"-1", "alpha":"-1", "beta":"-1", "gamma":"-1", "序号":"0", "时间":"69" } ], "页面URL":"https://www.ti.com.cn/zh-cn/ordering-resources/buying-tools/quick-add-to-cart.html", "页面表单":"0,0,0,0,-1,-1,0;", "页面表单1":"", "鼠标事件":[ { "X":"566", "Y":"677", "序号":"94", "时间":"5791", "类型":"move" }, { "X":"564", "Y":"677", "序号":"95", "时间":"5792", "类型":"move" }, { "X":"563", "Y":"677", "序号":"96", "时间":"5793", "类型":"move" }, { "X":"560", "Y":"677", "序号":"97", "时间":"5794", "类型":"move" }, { "X":"559", "Y":"677", "序号":"98", "时间":"5795", "类型":"move" }, { "X":"557", "Y":"676", "序号":"99", "时间":"5797", "类型":"move" }, { "X":"114", "Y":"628", "序号":"301", "时间":"6150", "目标":"-1", "类型":"down" } ], "ajax信息":{ "ajax序号":"2", "ajax类型":"1" }, "pointer事件":{ }, "pointer事件1":{ }, "ua信息":{ "ActiveXObject支持":"0", "FileReader支持":"1", "UA":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "UA加密":"8279", "body_height":"307", "body_width":"1536", "brave浏览器":"0", "callPhantom支持":"0", "chrome商店":"0", "documentMode支持":"0", "domAutomation支持":"0", "forEach支持":"0", "loc":"", "navigator内核":"Gecko", "navigator插件数量":"5", "navigator版本号":"20030107", "navigator语言":"zh-CN", "opera浏览器":"0", "outer_height":"1536", "phantom支持":"0", "screen_availHeight":"832", "screen_availWidth":"1536", "screen_height":"864", "screen_width":"1536", "webRTC支持":"1", "webdriver支持":"0", "window指纹":"12147", "函数劫持":"0", "安装插件":"0", "开始时间除2":"817401538369", "时间校验":"402239", "时间校验1":"3076738", "是否在线":"1", "电量查询":"1", "老浏览器属性":"0", "随机数校验":"0.658068536329", "震动支持":"1" }, "字体和canvas指纹":{ "canvas指纹1":"273720021", "canvas指纹2":"-851345892", "cookie支持":"true", "indexedDb支持":"true", "java支持":"false", "localStorage支持":"true", "sessionStorage支持":"true", "webrtc支持":"true", "像素深度":"24", "字体指纹":"dis", "插件信息":",7", "时区":"-480", "防跟踪支持":"-1", "颜色深度":"24" }, "尾部":{ "Tracking耗时":"10", "sensordata耗时":"6", "尾部耗时":"0\"" }, "技术参数2":{ }, "显卡音频信息及加密":{ "wbgl_render":"ANGLE (Intel", "wbgl_vendor":"Google Inc. (Intel)", "wbgl插件指纹":" Intel(R) HD Graphics 4600 Direct3D11 vs_5_0 ps_5_0", "wbgl插件数量":" D3D11-20.19.15.5058)", "像素比":"1.25", "声卡指纹":"e6a6b62042f2333998b8357baa6fe8b776aaad3c0b1692df334f2afaf3954baf", "字体指纹":"00b366f8d0fa8a7efed3765a374ea6928c185a2ee2ce562f04a8ab8722b4ceff" }, "用户操作等信息":{ "PiZtE":"PiZtE", "Webdriver检验":"-1", "abck":"401201F20A3D547F87DB40971D5FEF19~-1~YAAQbJ7C3QrRep18AQAANkzboQYxpb4ShsDn+XS+l+j+rCGhEou+Bb6CRC7bxvqc3pygGnrtmtNOa257/pBpAetj5ARVNUhmJcuTDoyD+WplKAuigVNqXamgE7LCjoUbpVVEUnAdZo13+uBDXs5D9WGPxjT0Uagtwcd4TG7vxpYIRye3c9agoKRzrqXycBKpoHVVau36LFnS8E8q+8hRwfdx3c//LG6rmJnNgnEYakGnrNWnDlaBlv06VqctzFyaWM8SfZIpA/HdR/TGh6DSKk8M2ZJO/4Xlgumw5mzU12+oxjakol6qVVkfBQNqCKYKjAwJfihupmX4qoSFq2weu+a6pWhjfwqrGxHNfdl9FQytYHWvIa7gfJpk6idjg32GWBCcB6e3XDyK9DszxB6cB8UkcDaPjlaq4aTs+3IbTQsHrNGbBhm4ws8VZqk=~-1~-1~-1", "abck加密":"41573", "abck是否存在":"0", "canvas随机值":"315", "canvas随机值指纹":"1458496679", "navigator指纹":"30261693", "pointer事件检验":"0", "pointer事件次数":"2914", "事件检验和":"671469", "初始化时间":"1634803076738", "初始化时间加密1":"101617", "初始化时间加密2":"76", "初始耗时":"6150", "所有事件时差和":"554385", "指纹耗时":"27", "服务器时间":"0", "爬虫校验":"0", "神秘参数":"17488", "神秘参数1":"0", "耗时1":"6151", "触摸事件检验":"1", "设备方向事件检验":"69", "设备运动事件检验":"69", "键盘事件检验":"1", "键盘事件次数":"0", "鼠标事件检验":"671363", "鼠标事件次数":"302" }, "硬件信息":{ "触摸支持":"t_en", "设备方向/定位支持":"do_en", "设备运动/手势支持":"dm_en" }, "键盘事件":{ } }
登录后方可回帖