コード例 #1
0
 def test_help_contents(self):
     shell = ExecShell(MockVuln(), None, None)
     _help = shell.help(None)
     
     self.assertIn('execute', _help)
     self.assertIn('upload', _help)
     
コード例 #2
0
ファイル: rfi.py プロジェクト: daemon13/w3af
    def __init__(self, vuln, uri_opener, worker_pool, exploit_dc):
        '''
        Create the obj
        '''
        PortScanShell.__init__(self, vuln, uri_opener, worker_pool)
        ExecShell.__init__(self, vuln, uri_opener, worker_pool)

        self._exploit_dc = exploit_dc
コード例 #3
0
ファイル: rfi.py プロジェクト: HamzaKo/w3af
    def __init__(self, vuln, uri_opener, worker_pool, exploit_dc):
        '''
        Create the obj
        '''
        PortScanShell.__init__(self, vuln, uri_opener, worker_pool)
        ExecShell.__init__(self, vuln, uri_opener, worker_pool)

        self._exploit_dc = exploit_dc
コード例 #4
0
 def test_help_format(self):
     shell = ExecShell(MockVuln(), None, None)
     _help = shell.help(None)
     
     self.assertFalse(_help.startswith(' '))
     
     self.assertIn('    help', _help)
     # Note that I add an extra space
     self.assertNotIn('     help', _help)