Jump to content

Extra spaces on specific characters when in function


Recommended Posts

Hey Hak5 team:

Think I may have happened on something that may cause future issues. When using STRING in functions with specific characters, an extra space will be added. I've seen it on open parenthesis, dashes, and pipes - which will throw off PowerShell.

Wanted to ensure you guys saw it as well as anyone working to developed advanced payloads.

To reproduce:
 

FUNCTION ATTACK_IN_FUNC()
  DELAY 2000
  GUI r
  DELAY 300
  STRINGLN notepad
  DELAY 1000
  STRING This sentence has extra spaces on (s and -s and |s
END_FUNCTION

REM Main()
ATTACKMODE HID STORAGE
WAIT_FOR_BUTTON_PRESS
DELAY 2000
GUI r
DELAY 300
STRINGLN notepad
DELAY 1000
STRING This sentence types normally for (s and -s and |s
WAIT_FOR_BUTTON_PRESS
ATTACK_IN_FUNC()

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...