Exemplo n.º 1
0
def main():

    args = vars(cliparser.options)

    if not args.get('url'):
        cliparser.parser.error('URL is required. Run with -h for help.')

    checks.check_template_injection(Channel(args))
Exemplo n.º 2
0
def main():
    
    args = vars(cliparser.options)
    
    if not args.get('url'):
        cliparser.parser.error('URL is required. Run with -h for help.')
    
    checks.check_template_injection(Channel(args))
Exemplo n.º 3
0
    def test_detection(self):

        channel = Channel({'url': self.url, 'level': 5, 'injection_tag': '*'})
        check_template_injection(channel)

        # Delete OS to make the tests portable
        if 'os' in channel.data:
            del channel.data['os']

        # Delete any unreliable engine detected
        if 'unreliable' in channel.data:
            del channel.data['unreliable']

        self.assertEqual(
            channel.data,
            self.expected_data,
        )
Exemplo n.º 4
0
 def test_detection(self):
     
     channel = Channel({
         'url' : self.url,
         'level': 5
     })
     check_template_injection(channel)
     
     # Delete OS to make the tests portable
     if 'os' in channel.data:
         del channel.data['os']
         
     # Delete any unreliable engine detected
     if 'unreliable' in channel.data:
         del channel.data['unreliable']
         
     self.assertEqual(
         channel.data,
         self.expected_data,
     )