Upgrade and addtion to this great plugin
-
Feel free to evaluate these additions iv made and if you like them feel free to roll them into your next build.
adding around line 1231 (after
return $result;}
)// WSP ADDED // Start Trace function generateCallTrace() { $e = new Exception(); $trace = explode("\n", $e->getTraceAsString()); // reverse array to make steps line up chronologically $trace = array_reverse($trace); array_shift($trace); // remove {main} array_pop($trace); // remove call to this method $length = count($trace); $result = array(); for ($i = 0; $i < $length; $i++) { $result[] = ($i + 1) . ')' . substr($trace[$i], strpos($trace[$i], ' ')); // replace '#someNum' with '$i)', set the right ordering } return "\t" . implode("\n\t", $result); } // WSP END
Add output around line 2351 after
$fails['total'], $this->options['login_fail_minutes']) . '\n\n"
// WSP Edit . sprintf(__("The URL Trace is \n\n ")). $this->generateCallTrace() . "\n\n" . "End Trace \n\n" // WSP End
Back in vr 4.X adding this would tell me exactly what URL they were trying to use to process a login. Maybe someone can come up with a better trace solution report.
Hope you all find this useful. Iv been able to plug up a few wp leaks because of it.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Upgrade and addtion to this great plugin’ is closed to new replies.