四川金榜路招生计划的数据爬虫获取

调试分析

首先登录到该网站,点击下面的招考数据->招考计划。当我们想对下面的大学招生计划数据进行获取时,打开F12进行调试

没看见我们想要的大学内容,唯一一条可疑数据是这样的:

js AES 256位 加密 js加密怎么破_js逆向


从它的返回内容中可以看出,数据返回data, encry:true,encry一般是加密的意思,返回数据说明对内容进行了加密,那么我们接下来就是分析js,找到加密的算法

js AES 256位 加密 js加密怎么破_js python爬虫_02

找到JS

应该怎么查找这个JS呢,首先从加密这里进行解密,加密的关键字一般都是encry,或者encrypt,所以我们可以尝试全局搜索encry, 最终在app的js中找到这样的一段js

js AES 256位 加密 js加密怎么破_js python爬虫_03


直接就得到了这样可疑的JS,这时候我们应该大胆猜测。

AesEncrypt.可以知道这里就是AES的加密函数,其中密钥key是m1x2!3p4js AES 256位 加密 js加密怎么破_js逆向_04,偏移量iv是1234567890000000

接下来再打个断点调试一下,在这里的encry打上断点

js AES 256位 加密 js加密怎么破_js python爬虫_05

再按下F11进去,发现到了解密函数这里,然后我们执行下,可以看到最终返回的结果就是我们需要的大学信息

js AES 256位 加密 js加密怎么破_js AES 256位 加密_06

进行解密

看看这个js的解密时怎么样的
最终的这个r呢,是s.toString()得来,而s呢就是AES的对i的解密算法
i 是对a进行base64得来,a呢又是对t进行Hex得到的
那么我们的思路就得到了,只需要按照这段js对返回内容进行解密即可
首先对网站进行请求,返回的是一段16进制的字符串,对16进制的字符串进行Hex(), 在对结果进行Base64,最后解密

python实现

简单的写一个python来实现

def decrypt(text, key, mode):
    cryptor = AES.new(key, mode, b'1234567890000000')
    plain_text = cryptor.decrypt(base64.b64decode(text))
    print(plain_text.decode('utf8'))
    return plain_text

if __name__ == '__main__':
    import base64
    from Crypto.Cipher import AES
    from binascii import b2a_hex, a2b_hex
    key = b'm1x2!3p4$567890000000123456789@$'
    mode = AES.MODE_CBC
    t = "C3ACE7AEE9007DB8377BFAF216BA9977D4E839323236B7FFAD513F12C9F5CDAE4D439A8640011D64251B4C168AC5B2AC9B6F64448768A41FBD7256051D7973DB0FCF2A96C5563FE1F4B1223B2EEC15686595EABF06360A37035B1233D64D3B4DF521E8ED53B2F3638C36B26CF344E840E6AFFE2C36EB40F473F5B7F9DF3106F84DC3E22E1ADC24D044D2C2283AB66DB8DAAD34FB3F33B1AEF85332836709D3068984D17A6FABB15F6818A972FCB4CBBAA96C68D0A892D5C5C29FC7C7DDDFA3290F0483C082CEB8EE49947BCF0010CEBF5F9B2F49B4922ABA9F296B9B53C3147ABB136B7AFF9781C1A3A09C86E2A589952E0F89A382BDA3F4FED5E0C9D0B30327ED00034E98D67314A05328865166D531C3BA2E25B4674BCACED14B8DA88C0F6956EB1285AC83049E28952BC26C7B7CEFFB4A94EF598E8FE90CBB36A45489DDD6679EE300635159F8F084C72528ABFCA9ED8820F77C23A9A5E9C58C8A181C2173D4790326AACDE9A1D06E48CB78B2C723E486F2B72ECCF15B42BCC263A77DC347F1083849E3D67D1A1106AD0873DE0A3A26FD706F8A3AFE3650EAD88CDC103C8BE229F67CCF0DA358035323D94F9A56ED7291A7DE597C8D2AFC0CAD36AE1F5B235EE3DC236ACCF34BF3A84473F6797B8C6CA1801CF221F798BD31D9E8C98C99075ED103D1D5A4B95518833206BC56A133F03807C964F45B7FFCAF6BC906A63A625CBDCB8C5B9BA1B34EBE23C4C78C619B4181FECC65D401F1994A05937C08FF133BF1C84B95359421C62F9C6D98FAC23D2877CC2690A5B6A9C87DB22AA9E3894B940001435E231A07ADD2EDEFD3A775DE85D0660FBC0368C74B3326913776BA14C0A938DBEA370D085BA930CA931C983D7184DD3B9C3707AA2BE8A316AD7D0EA62EF63D9A6314DB9606FBDDFD578D2EA0E9A0A1E9AD60B21DDD2DA555B0AE45E2A0A097BE40E1058C13EB0091F79A62154DD0F00FA36DE866652DB8D1D101A7F2C4B236B7760B61F2BAFD45F72AAEF6B8CCF06B45B55A94E7855DF51C03067F5A62E8793BA2FD488967DF1D9436F5EB121016034266B931255CDD5617D00AA929B2E00B61ECA88956E51E24BB30ABB7E2CC32D7AE1BED9B25439C7ADDCE958BCC9687EF6B43B82089C0B8DD1A63DAF58BC0B1CC95C562FDAABDCBE5394B510F4B7AF26C8849BC37E1F6D63A8785999A6425D4276B4B18635AA88BB55EE6E2D30EE53223DE3464ADDFB49EAE40087662832BB49A7FAEE5FE17D94147AAFF51C50C098D3B28493B175E3AA18340F4FADE2C2028CE774CC022292BE56EE98D2C21B2D31442EF77400DF5EB7995EC20D585BFE82E97E9BFFBD8EB18D118223AF86E8733E70063EFFA609A2328DC65433E85B536BC13D255D704461EB3AAEE8A84B8416ED0B247652E061FB1396E93F5DF9510FF17DC0CD1B4E9CB6709C2A564320697BA5A534C4A2C4A33F0C292669DB67FD52955D3B05F1DB52075DC17DE53E819727296E05105CE83BF3AC32AA9E089F9970C7E31685D51BB25A9BEAB0FE3982169F06688046CFB38C5499B9FC8405046A12A0861D5E2E79680F47ACB2C070268DC920AFD6B119B330FA9973B3E551968D2E464AA12A71B40D1844DF8C999B0775810B085881A1AC81C7E24AA359FAEEC3E58992659D8EE0235BC258BC0EDA03FAAF77C85A6E566834EC35684D2318F9DE655A232197BB0B338F531A77ED8698C33E88BB4A3E2364828EBC5F477A972E5E05DAC090D3A50D3E0357102821B323D90BEF13BBCA9E232FBE95C80B88424C56A596D5797A616DF600E73FE5AC6005809492CD2D2690EEE7793218D04DD257DE0E4D7D9F8A791C39ED82D00E1D104CFA26C06A9627746040369166A4132B9E7CF45D559C391533A16E5B2BC63B7203BA6B34A15A0D15A27F331F2AEDDEBF1210863D5017A9B4F87A993912B46C8BBFCDE55BDBEDF13D7ABDE4780843103F47115FBE636ACC28BC29AD97054768B2098A6F8E53B4CFE7805128B8573441AD52C9E1E3A8228D3CE311C755744B7B2CED506B899064C8CB41DC6CA98E6999BF099F29FF92420E80DA6966AB7EF93CB64A01D159B1D0715A524F730E09FF7E575E005E4319B1433D38BF78C3AF9532E04EF4BB2148832728ED7BE58FF59B26313E66528D7B0B73DEEB62C71128F67245D5637383382E8B2C49108C623BC83EE460CF992F86419DF84765A03E7ACC8B2B3E83FCD50C3D19B4764A956D5A1FF1B7AD47BE97998BA36DCB3F910D5D5F03F2C0CA7FC5957B9CD1824500B09661AD37D8739029A1D8AC107E0ABEFA845C1810F5AA2208C9A32D5D895EF933426A33700239514BBB86DC77AD4E2E278B29E7E7BCA17CA0273C3D0E4C1B8D3EF8893912E5BDD74F96351C5A877DA2AAB7CF8D7CAFA9D3F11B61496C151712FBE8976CD90F456E28E5821DAC365B96D30B1CE2328FEEDD073499CD638B3877A148917B930685576E44D7E8925D65C5B4C38D810875C8329C8CEBB6A35411E7FE74CA71C17C70CE161814B2E1D286EE5B20B24E618E2A7FA9BAC3D646206D235DB3EEF47A353EEC6D0E1FBBC854EC4D492C7B0154A013758ACE6B62200A6E0B7B8AFD1568A232C0E7CFEB012F61EB132299CC5D1B4974225330D2E18098291D345F9D994E77DFE5426E316684284709D3122783FF5C82FDF7F0D9AAC8D27CB1186B858CE0063AFE125D3622813524F7DB2EF1B50043DD591AD8276253367DC4DA7548B7A6AB26EA478011BE46853D85E11C5F7BA667DBBDDB15E759AD83B84CFBE653A1F67CD6A0A33718AB4E6FB93897C68AB3511403F5F68C193EBBA8065D3A99B9070845E9222E64418B3BABA0538BAC72858CE9227976359B04721C3D2CC2B08896ABEEB5746F1C1205AAE9FB34841C08354846EBD8D68CC29A08014ADFD21FFF37E6D408DC16770B949FC00C884B24D3A2705DBF45CB0CFC0477D1C485A7933D353A0C7C9FFB64D024ABC6149EBA12306E84EF8ED6E6AF3100BA99F077B39D010B7F2AB79E9D859ABEB5DA86556FC35E65C61F412684F17420C05C03121CDA6F54D159ECDFE1524C2519ED498637AD8CFE19A34484E8427692B3531E659788EB9D2ECB1DF13CBEC3CE7DA4269F4ADB720A2581AA530B931112FBB86E3B95C04650FBEA0A57B001A4054EAD7983FC20EBDCF8B051354700AC58F1E6F9E99E13FC214F98628097FE5E3CD81E8106933B4E1EC776C35C5ABFE74FBA23DBB1B2DEA4CBD62254D781C144877BE87C7C101511F0BE8EEE3DB951808B148BD884FFDD2B98E8E9354537D4C026B309A6D68F443577EA6C245436A42D844075E109774025B7269AD2F90A5146F76274EE3786F04426D9F5F1FD01DE42DA1732795D056B8BEA39C4028BC4E7CD20748749A133B7B4C304EFB9C0A9B2F90947072DBA99253DAB5F680761FB5DC10578A3C47AD5B5CF6D626DE2FDC63361B7ACA262424F266384AB35BFF6EBA636E7804A9229DE994256B2EA0429EBC1C63C12F56E2A554B5CBF3565F6AEEABB5A9580CB398D98EB9B4FA450E7BDE2507324A67F3FAB8E74F2FE346DCB026DA95D994E653171705EB4A6EA6F6D78014B747FD51763F0AAE39773893D53B8C643DCB85D8E70684468151DC55B281E397FD5C56580CF21F637A96D28F6947E64E4D0DB59408D929A6E63307E17EEE99FF2493C933D7E05E7A45A5B4F84D7594D2D16EDF67484B3EC9D9B5EF35D4804C8B827BEA4A13C6FA699B4206FADDA7FB3E06C19E40031BB82885F989AB4E5C098989C16781A8D2896C24E56027A9FA54369B6A7372D9B22ADB97BD9B3B2B7E805AAC377C882440E54BC0BF950E39134323C69DCAEC8D64D09BC5DE80AC641A5AB6C697F3460BCA024D72A30659953F2F3124EEEEF78347C6E87D09EEC2B2A62287B2CC6B88BA5BB00B5192C6A2BF2DC5047E3209090A130D85C24A48ACAFE89EC43A613B8BBF2DEAD3155C8BCFE09F06BE7F0D888362A8BCFC97065A03B3AB0A35FB459081B94D2B6C789D585FB99D0961E431AEE2FA516971E31937D90798A553D6F5FECAFE5CFECB862D90E032A62E8C5195EE78151A86B470043972556B5511FA6629B1A55E21BFFBEBCD4ED68AD50EE9202A3BA63D71612CC0BC21D8678BB264BE3495B8C8CFE8D73F3850DC1085E60293E6B4AF9D242126E88E3D5F8E39AA79F4A1274769BF11714127D2A83B85118267FD1B35403AB6E987450EC00123244A16D765998C1D77154FFF6692E3316C2A04C64EEAD85004E4ED5C858F008B99EE1FC87F3323B903DE96F9404425BF0348BDA5C35FC3E295DDA371D93081B2F8C768CBD191F2943F0C8CC334855EF6C3D2AD4CB19B6E32956AAD2649D5AB04D7905260B8AD0B7B51D256064C1590F8E48E38493106A5BD8F7EFF26075EFF966F4058CB407D1802D29B22033D597A179E9FA1BE62BBCAFC94C24CFC125CB53FDB207A12759B0F5C5674B2D07FD5F2509609A80842B3FE477CB22B0DAD73021A841C6094DBA2776A5C94FB01E9F8961AF06E9E537AACA2D8536288B2637CF0115459ED7A5D93AEFDB23483EF03C8DBE27E8867F33C5CE335FCE4632479547887C8F081634501D009945C15D4A851F3BB3907BFA41B1936C1DF0ACCACE77E9FF33F90300ADFA44BF69E0CFBDB24DDE7651401BB76F71C99EEEBDFF0CC79B06BD94854B0C139023D48C9678212E5CE0FB1DCE07E34226857A7085FE8A75F91054DDACB053FC09D50634FD07DD92EEC4F434E1496F31428925A3DF3B6B1CF3136208FF34D4D06F3D812A94F21385CBD2FC79D3B9C9065F2B06D6F3AE02C7F336D949515C55D42B61908BCACCB22F90D36903D72A2BDA9D4879AFA2D0C9E144A01AD6FB577D8A2BC00E1919B2CF6FE812D10E78681C002D8CEC62ACA9504B14AE9237E4C39003B3713AF3E193E75BC23674185BB22EDB1A93E508875265A8AC04B396F503D33E2E1BE823A84CB0487E5F8C31366195E2133843C69969C404DB30B90E1782CE33B3D7E9E4B4ED0303B2828EEBC1F13F902A52AA763027A359310290A3396C1C6590EE6030DC2A41DFB0DE80027B1B50C993333BDD500DAD5BA28BD80C2827C69E76D30165D9B60E5505FA196862593A52FD71DC54D02DB593F21A06E0CD909C2928C851B3A6F730F58E0BB479EB6B90783878A5420D78B974197D179701BEE034F2A98F5EF09BEE0198E8756545D2D417F36A3E81FF6BC6E54D3420EB3F5B49746C7DA76FBBDBE683107805313415D3CB274B858CA4310EA49DAB27ED1D7630819C8F1FE543CC3537785F3B09723703A9F14452BB11367E8EE3A00CB0F5E6D5FB17840A6AB601CB748C6BB035BBAC3A283F5738E7CFE6D2D2EA74D82B9BB6D69E9DBB36AF1CABF0D6BF4BF030617BB281EFD3EC6265658DC3BBFEAF185726052D9BCEC47F3E6F0A87C40D4B5E32BD81CA2129806FC21FB955A1892E056D695EE048E2437FBFF5E4D76FC1A35BE9502A8FC35FD2BFC8B0A8D61D18805606760791DD1C8D717E6F8C013F199CAF4EEFE1BD0C1634B4D3967789444FF23502B7871F553FBB0EF59C07B585BE06F63B28CCC04715B989217F91549A5BD7ACC3DCD04D6B818A7C3490B94A3C26F22BBD84AD565BC717B4B034ECEA16BFF3BCEBAABE85F611B5BF517559D953E036CFE6E21D873718916CACA35DC3248134C76D885B9A3981082DD2E9EDA0AE1DFAD8802089E67A7CC8230F8D21B7F32CC2E6AD3DDF192C9EF15473F8D7CCE6CEBF6D4136A46094496ACDA54BFDB35A2BF15912FB02756A8F4EABB4703102313B3AD345A8C62F60759F8B014BEF930AE2DD9D9C435FADACFF0CE72797E03A071078037AA7F8AC57F94E6C2FB5CD35DE735C1B85D03D98742E21E4919AB861485E92A4E559B1666104FD06D2B944F1E1B4C90C69F9B55497BE9AAC7E46379EFD26E732ED859EFC41CF24D91DADE2782D31F96EB5613486415E834705685C40393036CF605F0FF62C1889EA849AFB151952EF2D8B11E1529900BEB5AA6DA47E35E18529F49D3F107C0FCDDA32CEE01BA755AD0C5717E072F009BE3106D05F6835B9653D7ECB24173F648064A584AC516DF0B760E8F007F2B021891884512EA205BAEA65B8002566ED6F098E8051203B4FF0D834297C1962D97E09301F7DF164A7391DCE1F88C718504D965107730E1E01F1B26A9A9FB22B47EA365CF196926205F7130E7B3126D5E2DF45B5BED79470F178A37AB33B0A15354A678306BE6239717FBD92D7C79ACDE85E8FC45135899609B8684F01DF282D5DD09023BC32C31DA59DB8B3235D259EAC73712CF0A0EE060D17E86C40272EC0CF0D7EC10130614BA948C7815A5692622D8CA1EA9509CC6DF2C5A030E13431C78AFEE32314291721C9D3FEB660C7D490DDD7A718181960B9D22896FB59D2F792E140230B2239887CCF5F1366327C30CCA46AE65F09B2EC8D79EFEC25C2E3AAEC8EA768FA37306A0455BD2EB7232EA6DB48F850EA3C73DE86FCEA05AC350EFD49F43B8DBCC149CB4D53CD6E6339D465939AD4727EE2917174109C5A9665D779055F2DCE7E4C863D441B6A3AD6AF65E0FE5C0B031BDB7DACEFFE95989BA8FF8731640F55EC913158B4F393F6FBE353F0BA32E16AD74D6B28F231EBDFAF667CF5BD3E4A4097657225288A202EF407787D324F9FA22C1520C90A62F71DD946BF70B9D2A6C075C7188DD6224370A941F975ACB466DD411E553C2D391B792434FCA8C2F68BAE74A2198EEBFC30293F6FC59EC9C70557C84F1D249A0B67D2D4FE6EDB168E7F6E159953B07B54D37A808BC00C412C8A8371511EE61A5454433E0B744449E6624282364EFC2BD3C285618658F9BAEA20F493D43625267FB80BDB69C55FA0CA2DE76D6D78EF27FBDCD936762FE2CF5D8D9F83E5AD2C26FB05BAF7D29B9A9F24322BBFEB04E44980BD4CAF69071B41453DA6227D0FC6B5E2014F49D2DEE23B6DA3AED8D05B10A9CBA8481F4D7131BD53ADAE5208CC7588BAFF3CFB4F49420BAF08E5258CAFF07339C02E9C7E2842374D17F3384651E3EE446F1501D04763AA8809116F38909E9699A687B5D7D2BE5ADF7DCEE8E6B435C9F121751B87769DA11014AC8F769B19312592FFFBAE2EABD5DF6907A955C630515EA2FC08836E98DB2E4092847780DB3A885806F4B88D75529E7E7A17BC2DFB7048B71AA9CC9F8FFF3C0E48EF89395C478AE3C4063C492DD5C09C6CC65C256D66C1146B467BE0080883A1E0EECBEE725615ACE32D16CFB84E2326C370149C42A2EEFD9591A4773C7E9114A12000C35C75F9B79A4D297456144545AC603A8139D1000024A698C0FD4D33B43AF91EE321BDF9A8EE27C5E087999EA44E08BF33E6D73D5112273038CC20E202AAF55DF6289C8C02B6BC68CA4A1F8DD78D96A6522E5B62DE8AAA3F488F9C7CFE91846EA512893C40E12C04F3CBA68AF03DBF411941590B738E2B46A5FB60A02658C184B997C9ACBC1A313229CCAA8C0F1978FCD7484FFFE4CB3BD220684681919F3FC7A31290442E41086B1ECD539646DDA6920405E115968334B89EE82B94F88FDBA771062395D70272D3703C4CDDE9F3D58E190D9627A98B16DBF2E69713E6DE9879A37C6A9BE064AA75F6C0B6A9B95FEDB1F5CDB74D0699FBBF942F4E9C1A2C3791C2A92BD3E739A7D953A5BCB526B60E50D8F8A1C2D67F3350827D738F9856789B5F5138D99C0149AC1656AD4528130B0F848E4A318F624F0A411873703CBF2DA9A5E64C5A813B2C4483CBEB2292B303CA8BB5A519FD5178CE269638423C4D9B0160B74F3F43C716B9AFF9F951A09220605BF58A76EFD23EB259EA470588AEF9B264BE4FDDA862BA01EB4271A1401DF19BB2F619BD972954ABE4693F4891EB1346FA86910B6FA72657D5D490598A60B1C7ED6521C5F40DFB89630CCB5CFC806DC1B6FC08B01C4C4670497C6EFCAA76D892B2E9680A6CBDD9E426380F9227D6CEEB1C0BCDDC2A28D9A97C1A35252E5AAAE688CA9DE2C69C1AD3320722C26669380DF7FFE4153A29244CB91676E26FA70BBD34B088E51E776B7E13CBF536B17526E153DB72B64A19827680097425C7BE12F51A26255CAD1422D5EC0F3FE94112A4E95350E6D82FC5AF747012A4D5AC163EBE12767604588DBC01812F92182FD77CF48D173F6B17D15C5EF5809141F7BB56303E30D9D3BB279F9389A10B84AB7BD08787B7D14AC66052D98FA97B6C5C7379C4619086C89638297517D8F821BDCAB6706FCF401CC6F459B0FAF1B3AECF69D22BCCB4F0F95499DCF69ADDA7C04120A1D8268A26FD9D7522C4998085C2BB8A0AF7434BF6BFD70743F2A551C7F288F2C607614A59DD8E5C0D2C2FC19985149BAC625EB7677076657B9C57BB6881218E2009D7E08CEEA30947A950D2FFCA9533FDAD46062BF01987776B05A4FAF37905DD022AE5813EBF8C61DE566AF7BC6E69F856F774DA3F6736B01356A42C125E1BA7F22E2E49E240198D4B37E355955EF612436F03AA1DD3DA519A9FCB67B0112DB39EC78EADAE5A48D717CE4AAA3BE57A7A64DCDF5DC13DEA3F752204FEC6258201A664DAE8515F57F851878A8B42332B6B9D0F1A89635DEA6033920F3D201CBB4DDBB148E038FD54D37628E54FF48B426BCA42EBB10A78684D8BB8312E4EACA5A92366FC64C69AE9946AF387C92EA2B85996EED80DEEA9A04661485C7A5CF8E13FB17A04058F8DFA00763F26ED662D5D5B5004CC80122F4EE6866E17870B4DA58DFB3A27A75FA941E0831C428B11341B8BF91800E90C764D3B31EC7647018E7709A797E6E7BC8AC231D6B0C158A8E89FDA27D250980C4E7658F8767BDEC508C751102B0471774BE6EC995BF7360B5FFE4D85B774A078E6E14A0174AAFFF090E9DAFB534F465C6F7CF1ABD1986256C7105D3711BCF01A3FB9920E6AAEE871C8C64B908B541DA829F57A1647748303A4E3990C47BAF95B68420FC0BC66FFFC0071A8B0450B2E32592935C10C2B29D9ED2F6046D74EF441C75F374EB79E8A38C20F7EB7C6CCE353917360FDD650D54F482DA018ADA3FF92C587833248387ABB06FE503E2B3DCADB3BE52C1E76D958D6C1BB838F2E025E5D970C3C2072E05DA5BC6A31917705FDD107E8EA6E8F60B2ECFAE4933D977D30E0829C300A0DC6BB09FA7E0BCE4CE022BF6A642742E869206F13039E67AA2CCCEA1EE44158B2F99D8BC43592CD26296D0739D5E0578D1AD9541CBB088E117CA06B03F52922C5B44F355DF7DF4153B15F07F873B174B4CC123BFCB53BDA3F31CA138F52B61B877D9045A8105D252361A8C055319FBF81DB8D96CFFFD2A793EAF867DABB16B91D5FF65EE88EACEBC81C088F2A91CF2943F6F64F1760758AF324A993B09D79F44F7ABB2EADEF59A0257860C817B7041A788CFBA5323F490BCEEAEBD11E8791D2930A78DACA1DDC4DFE977CC9F9AE8C90368518D8C746CE58F2DD16057F15685D7E61085BAF7759D8FAE82F2FFD363B15581F799229D034056F4DE1312148D1989DE30FF3E65DB48764F8DCAFF634BA4D9522404ACAF1F1B2CEC38219B4489BFDD368FBA38A44FC1818AA78BEADD12AA447296A9BF56058EBCFA511739D77B1B3B1B74BEBA75E600BF02F94FA1DCE1E6666908C8EA8D41DA7707B8E64E213838AB073D45D9DF2F44ECCB3C9386C86C515ADC6020CABBE93989BC5EAF40570BF39E28880D0E4E421B345EB9772AC0EE1F0E574A60A8E02A011DB9AC75877BC38C4A5756FBC8653D5CC90E5A03F0921E57974DE4514A2D03AC94E21BAFB92D0789A70FC86F927F55F55148DC28AF6464E833574859251443B400917AF864209C8AE4C287D9ABD5F5B912C72511BA47943A3F2B592E17E77D176FB19E2044FD57F5337FE295278143F4D2AD39305BAD6157582E6B270E0BD864282256451312235AD694B13CE652481C19B9B54AC96082048907E6EF2A5C33ED140F94971A1557ACCCDF34F67CF6A43634FEB2D32C440F88DF26288CE56E7D1A67E9794451A4AC5EE18B71032100DDDE7318FE707A1ED6C740C25100022428CEDA18DF5DBD988EFAD60954B6C20E3FF07849EDC4A0BF3EA8A0471B79D8856869442396078AC429B6C1B1C058FD034CB77B4E0A5FC39A0B0ED5949577B0F637B46965BB30B287"
    a = a2b_hex(t)
    i = base64.b64encode(a)
    decrypt(i, key, mode)

成功得到结果

js AES 256位 加密 js加密怎么破_js逆向_07

写在最后

安装AES的方法

pip3 uninstall crypto
pip3 uninstall pycrypto
pip3 install pycrypto
pip3 install pycryptodome
我反正是这么成功的

如果不知道搜索encry该怎么解决这种js,全局搜索也不知道搜索什么关键字呢,其实还可以一步步调式下去

js AES 256位 加密 js加密怎么破_js AES 256位 加密_08


再source里面勾选对鼠标单击事件的监听,当你点击下一页的时候,程序就会debug,这样的话,最终也可以到加密解密那里,只不过需要耐心。。。