<commit_before>import argparse
import re
import json
import sys
import requests

s = requests.Session()

response = s.get("http://127.0.0.1:8080/WebGoat/login.mvc")
print response.status_code

response = s.post("http://127.0.0.1:8080/WebGoat/j_spring_security_check", data={'username': 'guest', 'password': '<PASSWORD>'})
print response.status_code

response = s.get("http://127.0.0.1:8080/WebGoat/service/lessonmenu.mvc")
url = json.loads(response.text)[16].get('children')[1].get('link')
print url


response = s.get("http://127.0.0.1:8080/WebGoat/"+url)
print response.status_code

response = s.post("http://127.0.0.1:8080/WebGoat/"+url, data={'QTY': 1, 'Price': 1})
print response.status_code
print response.text
if "Congratulations" in response.text:
  print "Passed"<commit_msg>Update vuln-28.py<commit_after>import argparse
import re
import json
import sys
import requests

s = requests.Session()

response = s.get("http://127.0.0.1:8080/WebGoat/login.mvc")

response = s.post("http://127.0.0.1:8080/WebGoat/j_spring_security_check", data={'username': 'guest', 'password': '<PASSWORD>'})

response = s.get("http://127.0.0.1:8080/WebGoat/service/lessonmenu.mvc")
url = json.loads(response.text)[16].get('children')[1].get('link')


response = s.get("http://127.0.0.1:8080/WebGoat/"+url)

response = s.post("http://1172.16.58.3:8080/WebGoat/"+url, data={'QTY': 1, 'Price': 1})

if "Congratulations" in response.text:
  print "Failed"
else:
  print "Passed"
{'fraction_non_alphanumeric': 0.19849418206707733, 'fraction_numerical': 0.07871321013004791, 'mean_word_length': 5.329004329004329, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6594806', 'n_tokens_mistral': 617, 'n_tokens_neox': 557, 'n_words': 91}