Permalink
Browse files

Updated burp script to use tokens dictionary

  • Loading branch information...
1 parent 002224c commit 366546fdbe7d1014e8bfc3d894c413cc96ecd6d4 @eromba eromba committed Dec 10, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −7 scripts/burp
View
@@ -48,17 +48,14 @@ print("Analyzing URL ...")
domain = ""
try: # tokenizer
tokens = getTokens(url)
- subdomain = tokens[0]
- analysis['subdomain'] = subdomain
+ analysis.update(tokens)
+
+ subdomain = tokens['subdomain']
analysis['number_subdomains'] = subdomain.count('.') + 1
analysis['subdomain_length'] = len(subdomain)
- domain = tokens[1]
- analysis['domain'] = domain
+ domain = tokens['domain']
analysis['domain_length'] = len(domain)
-
- analysis['port'] = tokens[2]
- analysis['path'] = tokens[3]
except Exception as e:
print('ERROR: Tokenizer, %s, %s\n' % (url, str(e)))
exit(1)

0 comments on commit 366546f

Please sign in to comment.