Esempio n. 1
0
 def get_wasc_urls(self):
     """
     :note: Call has_db_details before calling this, or you'll get exceptions
     """
     for wasc_id in self.get_wasc_ids():
         yield DBVuln.get_wasc_url(wasc_id)
Esempio n. 2
0
 def test_get_wasc_url(self):
     dbv = DBVuln(**self.DEFAULT_KWARGS)
     self.assertEqual(
         dbv.get_wasc_url(3),
         'http://projects.webappsec.org/w/page/13246946/Integer%20Overflows'
     )
Esempio n. 3
0
 def get_wasc_urls(self):
     """
     :note: Call has_db_details before calling this, or you'll get exceptions
     """
     for wasc_id in self.get_wasc_ids():
         yield DBVuln.get_wasc_url(wasc_id)
Esempio n. 4
0
 def test_get_wasc_url(self):
     dbv = DBVuln(**self.DEFAULT_KWARGS)
     self.assertEqual(dbv.get_wasc_url(3),
                      'http://projects.webappsec.org/w/page/13246946/Integer%20Overflows')