momika233 / Joomla-3.4.6-RCE

Joomla 3.4.6 – Remote Code Execution
109 stars 28 forks source link

利用的时候运行到[*] Getting CSRF Token ..就错误,是不是我的环境有问题 #1

Open doubleee opened 5 years ago

doubleee commented 5 years ago

报错如下: Traceback (most recent call last): File "Joomla-3.4.6-RCE.py", line 159, in exploit(url, args['lhost'], args['lport']) File "Joomla-3.4.6-RCE.py", line 139, in exploit make_req(target_url, get_backdoor_pay()) File "Joomla-3.4.6-RCE.py", line 75, in make_req csrf = get_token( url, cook) File "Joomla-3.4.6-RCE.py", line 40, in get_token csrf = csrf.get('name') UnboundLocalError: local variable 'csrf' referenced before assignment

lornlee commented 5 years ago

你挂代理看看,可能是没有‘index.php/component/users’这个页面

ClassBluer commented 4 years ago

我也遇到了这个问题,把最后的操作添加了try except就可以了,望借鉴。报错的原因的确好像是因为没有哪个页面