Skip to content

Commit 472be5a

Browse files
committed
add more verbosity
1 parent 92206c8 commit 472be5a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

nxc/protocols/rdp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,12 @@ async def execute_shell(self, payload, get_output, shell_type):
422422

423423
try:
424424
if get_output:
425-
self.logger.debug("Waiting for clipboard to be ready...")
425+
self.logger.success("Waiting for clipboard to be ready...")
426426
clipboard_ready = False
427427
await asyncio.sleep(self.args.cmd_delay)
428428

429429
timeout_counter = 0
430-
while not clipboard_ready and timeout_counter < 200: # 10 second timeout
430+
while not clipboard_ready and timeout_counter < 300: # 30 second timeout
431431
try:
432432
data = await asyncio.wait_for(self.conn.ext_out_queue.get(), timeout=0.1)
433433
if hasattr(data, "type") and data.type.name == "CLIPBOARD_READY":
@@ -449,6 +449,8 @@ async def execute_shell(self, payload, get_output, shell_type):
449449
if not clipboard_ready and get_output:
450450
self.logger.fail("Clipboard cannot be initialized, no output can be retrieved")
451451
return ""
452+
else:
453+
self.logger.success("Clipboard is ready, proceeding with command execution")
452454

453455
# Wait for desktop to be available
454456
await asyncio.sleep(self.args.cmd_delay)

0 commit comments

Comments
 (0)