denisit Posted October 20, 2017 Posted October 20, 2017 Hi, I have a problem to set a variable in powershell. So, to find where is the pb I wrote this script : DELAY 2000 GUI r DELAY 500 STRING powershell ENTER DELAY 500 STRING ="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS" For info my variable in powershell w Quote
denisit Posted October 20, 2017 Author Posted October 20, 2017 Just now, denisit said: Hi, I have a problem to set a variable in powershell. So, to find where is the pb I wrote this script : DELAY 2000 GUI r DELAY 500 STRING powershell ENTER DELAY 500 STRING ="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS" For info my variable in powershell was $variable="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS" When I run the Usb rubber ducky this is the result in the powershell console :="K0cj0mKMch03NGx21eRsaKiurS"HOM6B-qtOB9zszza03NGx21eRsaKiurS" I think it's maybe the hyphen but I don't know how to escape it (my keyboard is FR ). Any ideas ? Thanks Quote
denisit Posted October 22, 2017 Author Posted October 22, 2017 anyone can help me ? I cannot change this variable because it-s the api key to use dropbox (not the real key of course). I try to use keylogger payload which upload keystrokes directly to dropbox. The powershell script work well, the pb just come from the rubber ducky. Thanks. Quote
ThoughtfulDev Posted October 27, 2017 Posted October 27, 2017 On 20.10.2017 at 2:23 PM, denisit said: STRING ="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS" this is wrong no quotes and = are needed to it should look like this: STRING K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS Quote
denisit Posted October 31, 2017 Author Posted October 31, 2017 Thanks for reply but it was just a test to see what is displayed. The real script is STRING $env:DropboxAccessToken="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS" Quote
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.