Skip to content

Make C/S/X exploitation prompt case-insensitive - #106

Closed
p0dalirius with Copilot wants to merge 2 commits into
masterfrom
copilot/make-prompt-case-insensitive
Closed

Make C/S/X exploitation prompt case-insensitive#106
p0dalirius with Copilot wants to merge 2 commits into
masterfrom
copilot/make-prompt-case-insensitive

Conversation

Copilot AI commented Apr 23, 2026

Copy link
Copy Markdown

The interactive exploitation prompt rejected lowercase input (c, s, x), forcing users to re-enter their answer in uppercase.

Changes

  • coercer/core/tasks/execute.py: Replaced the while … not in loop (which required pre-initialized state) with a cleaner while True / break pattern that strips, uppercases, and validates the first character in one pass — accepting both cases transparently.
# Before
next_action_answer = None
while next_action_answer not in ["C", "S", "X"]:
    next_action_answer = input("Continue (C) | Skip this function (S) | Stop exploitation (X) ? ")
    if len(next_action_answer) > 0:
        next_action_answer = next_action_answer.strip()[0].upper()

# After
while True:
    next_action_answer = input("Continue (C) | Skip this function (S) | Stop exploitation (X) ? ")
    if next_action_answer:
        first = next_action_answer.strip()[0].upper()
        if first in ["C", "S", "X"]:
            next_action_answer = first
            break

Empty input (bare Enter) continues to re-prompt. Any trailing characters after the first valid key are silently ignored.

Copilot AI changed the title [WIP] Fix C/S/X prompt to be case-insensitive in exploitation actions Make C/S/X exploitation prompt case-insensitive Apr 23, 2026
Copilot AI requested a review from p0dalirius April 23, 2026 20:24
@p0dalirius
p0dalirius marked this pull request as ready for review April 24, 2026 07:59
@p0dalirius p0dalirius closed this Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make C/S/X prompt case-insensitive in exploitation actions

2 participants