安卓 kuaishou 设备did和egid 学习分析

did和egid注册

接口 https://gdfp.ksapisrv.com/rest/infra/gdfp/report/kuaishou/android

did 是本地生成的16进制 或者 获取的 android_id

public static final Random f16237a = new Random(System.currentTimeMillis());
public static long m19668a() {    return f16237a.nextLong(); }
private static String m16457g() {
        try {
            return C4314az.m19633a(Long.toHexString(C4316bb.m19668a()), 16, '0');
        } catch (Throwable th) {
            th.printStackTrace();
            return null;
        }
    }

接口传输数据:

productName	KUAISHOU
ts	1595073602059
deviceInfo	3sCt3iAAMjE5NTY0Njg5AAIQAJ2ewbEC7J3ooFAJAAAkGUqVzgq%2B6ZBgbBLpGRojaWBHvg21P%2FEF%0A0iN01YrwCwIZSPntw6DoUwMzXr8oppoRkz7AGlYqAgwjxP1PhD6%2FZhgTnOZYiTXFyJ79ZTUFq30a%0Ai7elU%2Bppe3lEBOLxl3rzYZ6ZB2tARglqG2XiWRfVu5yrdI%2FiENYDLTbBqfVqJfcKxi0ESCSjbwZQ%0AsiK%2FRMw6MPwoRt60%2BEuORU5yAs6Rws0hYMe7eqs6sEEkQlcdShmtvj2yBTWV%2FRYf5DUXtpqTzWbJ%0Ahy4pS2meEEO9%2F73RpOKatCGhGg%2Foo1uK%2FaKNlZzNb0yIIh9alXI8OWIvTpuJ6paK2fuXxlf2W7wd%0AekGhEK3BrsSkkLpcanUslw9Dq5pMAJnlTl5C9CFK8PNk7B6pRzElnsntHFRHINLSZINLUbrcae4Z%0AfH0IHj78tSp569Isv%2Fsdc98fcQbaDofJOH0aBBYyzwg47HEqunqzVIWb3GmQF9unUwMYEtEOupiL%0Adj4WlCsfXwHnalMvVSPsmeaKCPjm%2FC3kt8SuIS7Q%2FQG7zvvEkX2TgLD%2BrGTkBynAlyaTLbSdhOBV%0AkjsZyomfwxJKYcg4jqpQESgAB%2F%2F5DlPiSKpY54U9os0y%2FyP0jfxmPPR2MGJlEHhF4wIvPjWwtb82%0A38nCeJGod0PwRo%2BWcB1xL2FQdw4POXISIarsC99Ah4F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DlYIzIRBGVCBXsE8D6wPlWvAHYQz7BwZDUz8%2By1grZO7wYl4hMtbyZErgzI%0AIV4ktl7JrZ9nzV4bUhACmXEysdzdAn%2BM4I6C%2FBUzhyRw33WPK%2FoQGyPcQQ3A3RyZfSDfN0rnMgyE%0AsV655ANcWFaSyweqHdZK15PUM3kmDFVZZCWbXgdSWOfzrS04tOouKAx7OCF3B149%2Fw8Tl4am1q%2Bb%0AO0A770K9HXhOv4eId6JwRgds%2BnrcD3u%2BglChj6KkfcjmBoAYzlhS7IP%2FWcASrwmldIi207p3XMmv%0AkS3LcFy68W2en4JluUpfxhYZdm70oMVxRHBm6Oysz5XdU4J58AZ%2FtQ%2FFxbe0VIgefv3qtwY0iAv%2B%0AatUB%2BwbE%2FAvi4frlrK6iYwJ7F5yKxE%2FVZwu2Nh%2BAwYrsAgSbrVSUT8K6rpg1hUA%2B%2FR9zEC%2BdPnpM%0AOYSNqmNhclXeyixErKpUlSceJHSsIvgModdynT8%2BJma1eC33u9NA6j5IYBJICe0zf3jlYCNakjuh%0A6iQgnN4Oal%2FEsP7gFGt%2B8cXh1r1SGQ%3D%3D%0A
sign	2195646899cf1cc7a6d51bfbff3cfd31e6d9930c37
sv	2
{k31=fuels:wZ2fk8aflZefxsefl5CfxJQ=, k30=Flyme 7.1.7.1A, k33=notExist, k32=KWE_NC, k35=8.1.0, k34=[3.0,1080,2124,3.0,318.976,320.386], k37=OPM1.171019.026, k36=1.1.7.5.1, k39=1594992720872, k38=KWE_NC, k40=Meizu/meizu_M1852_CN/M1852:8.1.0/OPM1.171019.026/1540458566:user/release-keys, k42=KWE_NC, k41=KWE_N, k44=release-keys, k43=KWE_PN, k46=3885793280, k45=KWE_NC, k48=KWE_NC, k47=unknown, k49=0, k51=2c951907b69eb332, k50=KWE_NC, k53=KWE_NC, k52=meizu_M1852_CN, k55=a2:25:cb:02:6c:d8, k54=notExist, k57=KWE_PN, k56=KWE_NC, k59=1, k58=M1852, k60=unknown, k62=KWE_NC, k61=Meizu, k64=852QLDV924G42, k63=flyme, k66=56c4bf75e79c15c6, k65=KWE_NC, k68=KWE_PN, k67=KWE_N, k69=KWE_NC, k71=KWE_NPN, k70=KWE_NC, k73=KWE_NPN, k72=KWE_NC, k75=KWE_PN, k74=KWE_PN, k77=KWE_PN, k76=KWE_NC, k79=KWE_NC, k78=KWE_NC, k80=KWE_NU, k82=[1,BMI160_ACCELEROMETER Accelerometer Non-wakeup,50463488,BOSCH,19.6133,2500,0.18,5.9820566E-4:1,BMI160_ACCELEROMETER Accelerometer Wakeup,50463488,BOSCH,19.6133,2500,0.18,5.9820566E-4:35,BMI160_ACCELEROMETER Accelerometer-Uncalibrated Non-wakeup,50463488,BOSCH,19.6133,2500,0.18,5.9820566E-4:35,BMI160_ACCELEROMETER Accelerometer-Uncalibrated Wakeup,50463488,BOSCH,19.6133,2500,0.18,5.9820566E-4:4,BMI160_GYROSCOPE Gyroscope Non-wakeup,50463488,BOSCH,2.1815972,5000,0.9,6.6577064E-5:4,BMI160_GYROSCOPE Gyroscope Wakeup,50463488,BOSCH,2.1815972,5000,0.9,6.6577064E-5:16,BMI160_GYROSCOPE Gyroscope-Uncalibrated Non-wakeup,50463488,BOSCH,2.1815972,5000,0.9,6.6577064E-5:16,BMI160_GYROSCOPE Gyroscope-Uncalibrated Wakeup,50463488,BOSCH,2.1815972,5000,0.9,6.6577064E-5:27,Device Orientation  Non-wakeup,1,qualcomm,1.0,0,0.025,0.1:27,Device Orientation  Wakeup,1,qualcomm,1.0,0,0.025,0.1:15,Game Rotation Vector  Non-wakeup,1,qualcomm,1.0,5000,0.515,0.1], k81=KWE_NC, k84=27b63c793f46a83a, k83=KWE_FIRST, k86=KWE_N, k85=32622d8245dfe338, k88=noexsist, k87=3043341723, k89=1618696036, k91=1436926309, k90=KWE_NC, k93={"1":"0","0":6,"2":"false","8":"9","10":"KWE_N"}, k92=1595075739488, k95=0|183528f283c77d0cd0546206b607f638|7, k94=KWE_N, k97=09a0509a749e5304b670aabc548d508e, k96={"0":"1594988383000","1":"1"}, k99=KWE_NS, k98=KWE_NS, k1=KWE_NC, k2=WiFi, k3=com.smile.gifmaker, k4=KWE_NC, k5=54134046720, k6=0, k7=ANDROID_56c4bf75e79c15c6, k8=user, k9=3960YSZb8eGSEQuHyyHWM00lA2-UbYhFYDRRpstfiVo, k100=d7b7d042-d4f2-4012-be60-d97ff2429c17, k11=1, k10=0, k13=KWE_NC, k12=notExist, k15=KWE_NC, k14=AND:3193040869, k17=192.168.51.169, k16=Mz-Builder-L21, k19=sdm710, k18=isContent, k20=KWE_NC, k22=7.2.0.12758, k21=KWE_NC, k24=KWE_NC, k23=Meizu, k26=armeabi-v7a,armeabi, k25=0, k28=qcom, k27=M1852, k29=Dalvik/2.1.0 (Linux; U; Android 8.1.0; M1852 Build/OPM1.171019.026)}

研究某手的时候,会发现某手接口中存在两个参数至关重要,一个did,另外一个是egid

它们也就是快手的双参设备,如果从charles抓个设备包的话,请求频率过多,就会遇到请求太快访问频繁的问题

先抓个设备参数:

did: ANDROID_7c65a948b18ba4t5
egid:DFPB24F4EA19896D552C3C9578A09565335CDD5T20CF8991BECFDB15C69D974B

安卓 kuaishou 设备did和egid 学习分析_第1张图片

安卓 kuaishou 设备did和egid 学习分析_第2张图片

解决办法就是模拟请求,批量注册设备,效果如下:

刚注册出来的设备是不能直接使用的,还需要发送xxx 等相关接口日志激活。

安卓 kuaishou 设备did和egid 学习分析_第3张图片

这里放几个设备,有需要的小伙伴自取:

{'egid': 'DFPC681A0395B4984FB539014DB3493926FBBEA31961EE2E8FB428B881B3744F', 'did': '56ca8cbecec16c77'}
{'egid': 'DFPE862C9C29EB683AAA1CE7C9F01973E62C39E922E744F20954D4D6B3553DDC', 'did': 'f7a84c04051e6ec7'}
{'egid': 'DFPB6828D54C5C2CFA87C71834C175990B9E45E70DB066EFB29B463BEE7FD165', 'did': 'dc281d3be2e0c75a'}

经过测试,像搜索接口,视频评论,视频列表,用户主页等接口都可以应用。

你可能感兴趣的:(安卓逆向分析,android,学习)