Jump to content

Recommended Posts

Posted

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

Posted
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

 

 

Posted

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.

Posted
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

 

Posted

Thanks for reply but it was just a test to see what is displayed.

The real script is

STRING $env:DropboxAccessToken="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS"

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