Jump to content

Archived

This topic is now archived and is closed to further replies.

denisit

pb powershell variable

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

 

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

 

Share this post


Link to post
Share on other sites

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

The real script is

STRING $env:DropboxAccessToken="K0cj0mKMchAAAAAAAAAAC0MHOM6B-qtOB9zszza03NGx21eRsaKiurS"

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...