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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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