예제 #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 프로젝트: zhangqin/w3af-module
    def __init__(self, vuln, uri_opener, worker_pool, exploit_mutant):
        """
        Create the obj
        """
        PortScanShell.__init__(self, vuln, uri_opener, worker_pool)
        ExecShell.__init__(self, vuln, uri_opener, worker_pool)

        self._exploit_mutant = exploit_mutant
예제 #3
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)
예제 #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)
예제 #5
0
파일: rfi.py 프로젝트: webvul/webfuzzer
 def __init__(self, vuln, uri_opener, worker_pool, exploit_mutant):
     PortScanShell.__init__(self, vuln, uri_opener, worker_pool,
                            exploit_mutant)
     ExecShell.__init__(self, vuln, uri_opener, worker_pool)
예제 #6
0
    def test_help_contents(self):
        shell = ExecShell(MockVuln(), None, None)
        _help = shell.help(None)

        self.assertIn('execute', _help)
        self.assertIn('upload', _help)
예제 #7
0
파일: rfi.py 프로젝트: 0x554simon/w3af
 def __init__(self, vuln, uri_opener, worker_pool, exploit_mutant):
     PortScanShell.__init__(self, vuln, uri_opener, worker_pool,
                            exploit_mutant)
     ExecShell.__init__(self, vuln, uri_opener, worker_pool)