11;
22//获取WeChatAppEx.exe的基址
3- var base = Process . findModuleByName ( "WeChatAppEx.exe" ) . base
3+ var module = Process . findModuleByName ( "WeChatAppEx.exe" )
4+ var base = module . base
5+ // console.log("模块名称:",module.name);
6+ // console.log("模块地址:",module.base);
7+ // console.log("大小:",module.size);
48
59
610for ( let key in address ) {
@@ -56,6 +60,7 @@ Interceptor.attach(address.LaunchAppletBegin, {
5660 for ( var i = 0 ; i < 0x1000 ; i += 8 ) {
5761 try {
5862 var s = readStdString ( args [ 2 ] . add ( i ) )
63+ // console.log(s)
5964 var s1 = s . replaceAll ( "md5" , "md6" )
6065 . replaceAll ( '"enable_vconsole":false' , '"enable_vconsole": true' )
6166 . replaceAll ( '"frameset":false' , '"frameset": true' )
@@ -70,6 +75,9 @@ Interceptor.attach(address.LaunchAppletBegin, {
7075 }
7176} )
7277
78+
79+
80+
7381if ( address . WechatVersionSwitch ) {
7482
7583 Interceptor . attach ( address . WechatVersionSwitch , {
@@ -81,21 +89,34 @@ if(address.WechatVersionSwitch){
8189 } )
8290
8391} else {
84-
8592 Interceptor . attach ( address . WechatAppHtml , {
86-
87- onEnter ( args ) {
88- try {
89- var _adr = ptr ( "0x00007FF7920CE5BE" ) ;
90- const newData = [ 0x77 , 0x65 , 0x62 ] ;
91- Memory . protect ( _adr , 3 , 'rwx' ) ;
92- Memory . writeByteArray ( _adr , newData ) ;
93- Memory . readByteArray ( _adr , 3 ) ;
94- send ( "[+] 已还原完整F12" )
95- } catch ( error ) {
96- send ( "发生错误: " + error . message ) ;
97- }
98-
99- }
100- } )
93+
94+ onEnter ( args ) {
95+ const webhtml = "68 74 74 70 73 3A 2F 2F 61 70 70 6C 65 74 2D 64 65 62 75 67 2E 63 6F 6D 2F 64 65 76 74 6F 6F 6C 73 2F 77 65 63 68 61 74 5F 77 65 62 2E 68 74 6D 6C" ;
96+ var data ;
97+ Process . enumerateModules ( {
98+ onMatch : function ( module ) {
99+ var ranges = module . enumerateRanges ( 'r--' ) ;
100+ for ( var i = 0 ; i < ranges . length ; i ++ ) {
101+
102+ var range = ranges [ i ] ;
103+ var scanResults = Memory . scanSync ( range . base , range . size , webhtml ) ;
104+ if ( scanResults . length > 0 ) {
105+ data = scanResults [ 0 ] . address
106+ // console.log('Memory.scanSync() result for range ' + range.base + '-' + range.size + ':\n' + JSON.stringify(scanResults));
107+ }
108+ }
109+
110+ } ,
111+ onComplete : function ( ) {
112+
113+ }
114+
115+ } ) ;
116+
117+ this . context . rdx = data
118+
119+
120+ }
121+ } )
101122}
0 commit comments