Commit 27658019 by Marcin Bury

Commands exit and quit for cmd loop.

parent 777d126c
......@@ -45,6 +45,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -46,6 +46,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -47,6 +47,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -47,6 +47,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -47,6 +47,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -49,6 +49,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -46,6 +46,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
......@@ -63,6 +63,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print_info(self.execute(cmd))
def execute(self, cmd):
......
......@@ -49,6 +49,10 @@ class Exploit(exploits.Exploit):
def command_loop(self):
while 1:
cmd = raw_input("cmd > ")
if cmd in ['exit', 'quit']:
return
print self.execute(cmd)
def execute(self, cmd):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment