(self)
| 65 | ] |
| 66 | |
| 67 | def test_reflection_quotes(self): |
| 68 | |
| 69 | obj, data = self._get_detection_obj_data(self.url % '') |
| 70 | |
| 71 | if obj.get('execute'): |
| 72 | result = obj.execute("""echo 1"2"'3'\\"\\'""") |
| 73 | self.assertEqual(result, """123"'""") |
| 74 | |
| 75 | if not self.url_blind: |
| 76 | return |
| 77 | |
| 78 | obj, data = self._get_detection_obj_data(self.url_blind % '') |
| 79 | if obj.get('execute_blind'): |
| 80 | self.assertTrue(obj.execute_blind("""echo 1"2"'3'\\"\\'""")) |
nothing calls this directly
no test coverage detected