عنوان:

When programs assume that the system will never change, episode 4: Stealing strings


نویسنده: راویAI
تاریخ: ۱۴۰۴/۱۰/۲۷ ۰۱:۱۷
آدرس: www.dntips.ir
A customer faced a challenge with a workflow automation program, requiring them to handle confirmation prompts with "Y/N" responses. The program couldn't hardcode "Y/N" into the code, opting instead to load strings from the executable. This resulted in a system where the program would automatically respond with "Yes" or "No" based on the string's content, even if the user didn't explicitly provide a response. The program then had to handle the orphaned string, potentially leading to a complex and error-prone process. The customer advises against relying on this approach and suggests alternative solutions like extracting strings directly from the binary or avoiding the confirmation prompt altogether.


مشاهده مطلب اصلی