Go Down

Topic: Run exe file from teensy SD card (Read 6145 times) previous topic - next topic

w3llw0rk

Hi all,
How can run exe file from teensy SD card without open cmd or run?

Can i run exe file by framework?

PaulS

Quote
How can run exe file from teensy SD card without open cmd or run?

You can't.

Quote
Can i run exe file by framework?

What does this mean?
The art of getting good answers lies in asking good questions.

w3llw0rk

#2
Jun 18, 2013, 06:39 am Last Edit: Jun 18, 2013, 06:49 am by w3llw0rk Reason: 1
I want to run exe file with c++ library through open process or thread, Can I do this?

Grumpy_Mike


w3llw0rk

can i copy file to internal hard disk(without open cmd)?

Grumpy_Mike

Look you will have to give more detail than just asking random questions. What code is running on the teensy? How are you communicating with it?
You need to get straight the relationship between what is running on your PC and what is on the micro. The only communication between the two is the serial port, that can't do the sort of things you ask without custom code on both ends.

w3llw0rk

Tanks for response,

I want to show one application when i plug the teensy device to the computer.

when i read document and forum posts, i sometimes saw users use c++ library (for example strcpy and ...).

I think to myself,I can run this application when plug teensy to the computer.

Grumpy_Mike

Your words are very mixed up and your meaning is not clear.

When a teensy is plugged in to a PC nothing runs automatically except the code on the teesey.

You might want to have a application on the PC look for a teensy to be plugged in, but I am stil not sure what you want to run and from where.

w3llw0rk

I want to run application form teensy SD adapter when , teensy plug in to computer.

For example when you plug WD(western digital) hard disk to computer, a WD application runs for get security code to unlock hard disk.

Grumpy_Mike

So you have to read my last reply.
This is not something that is easy to do.
I think youbdon't know enough about computers to do this, it will involve running your application in the background on your PCc waiting for it to be plugged in, or hacking you existing drivers.

w3llw0rk

#10
Jun 18, 2013, 11:04 am Last Edit: Jun 18, 2013, 12:36 pm by w3llw0rk Reason: 1
I am work 7 years in IT Company :D.

I saw different example with teensy library, for example write and read file from teensy SD adapter, and i saw how to create connection from victim computer and how to download exe file and rum it with FTP from CMD.

I think we can write file and run file to the computer after plug teensy.

Now i can open cmd and run exe file from teensy SD card.

KirAsh4


I am work 7 years in IT security Company :D.

I've been in IT (security) for over 20 years.  What's your point?


I saw different example with teensy library, for example write and read file from teensy SD adapter, and i saw how to create connection from victim computer and how to download exe file and rum it with FTP from CMD.

Natively, it can not do that.  As Mike pointed out, you need something running on the PC, waiting for the Arduino to get plugged in.  You mentioned a hard drive as an example.  That only works because your computer has drivers that are listening for a connection.  Without those drivers, your hard drive will be a dead brick when you plug it in.  I repeat, NATIVELY IT CAN NOT DO ANYTHING WITH THE COMPUTER.  Emphasis on the word 'natively' or 'native'.  If you don't know what that means, look it up.


I think we can write file and run file to the computer after plug teensy.
Now i can open cmd and run exe file from teensy SD card.

You go right ahead.  After all, you have '7 years in IT security Company'.  Start by writing your own Windows drivers that will listen for an Arduino device getting plugged in.  Then write your own code for the AVR on the Arduino to interact with that driver and do whatever it is you want it to do, whether it's copying a file, or build you a house.  When you accomplish that, let us know.

w3llw0rk

#12
Jun 18, 2013, 12:36 pm Last Edit: Jun 18, 2013, 12:40 pm by w3llw0rk Reason: 1
Thank you for your help, for the last question , Please help me for understand how strcpy function work in teensy?

PaulS

Quote
Please help me for understand how strcpy function work in teensy?

Just like it does on the PC. You have access to the source code. Look it up yourself.
The art of getting good answers lies in asking good questions.

Grumpy_Mike

Quote
I saw different example with teensy library, for example write and read file from teensy SD adapter, and i saw how to create connection from victim computer and how to download exe file and rum it with FTP from CMD.


It sounds like you are trying to develop a thing that will automatically infect a computer with a virus when you plug it in.
Is that what you are up to?

Go Up