Skip to content

NoPowerShell for rundll32 crashes when input is too long #1

Open
@bitsadmin

Description

@bitsadmin

Input:
gwmi "Select ProcessId,Name,CommandLine From Win32_Process" | ? Name -Like *PowerShell* | select ProcessId,CommandLine

Crashes at:
Bottom of ReadLine function in ProgramDll.cs:
Console.CursorLeft = cursorCurrent + 1;

Error:
System.ArgumentOutOfRangeException: 'The value must be greater than or equal to zero and less than the console's buffer size in that dimension. Parameter name: left Actual value was 80.'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions