1.

Solve : Hardware and ASM?

Answer»

Due to some reasons, I had to LEARN Assembly urgently.

So I would like to know the way to:

  • Open/Close the CD drive.
  • Turn/Reboot the router connected to the Ethernet port.

with ASM.

I would like to have example code.

Thanks in advance.
Sure looks like school work. Why USE ASM?
How do I MAKE you guys believe that it is not school work. If it was school work, why would I take the PITA to get here, was it not simpler to refer the textbook? (AND.. AND.. WE ARE JUST TAUGHT S**KING QBASIC IN SCHOOL)

I went forward to C/C++, and Assembly just because of my interest.

Have I made it sure that it iS NO SCHOOLWORK??



If you display such an attitude, you will get very little help.
a school that teaches QBASIC?

the Open/CloseCD can be done through MCI commands. of course you'll need to set up the parameters and so forth and call the procedure itself in mmsystem or whatever the dll is.

the second one is impossible in any language as far as I know. I imagine being able to disable a router remotely would be a fairly big security flaw even if it only COULD occur from within the local LAN.Sorry for getting late.

Dias De Verano: Sorry, I was too irritated (due to some other people around in here) while making that post.

BC_Programmer:
Thanks for help.

I can reboot the router from its configuration page. So I thought that it should be possible to do so with Assembly as well.


Quote from: Ashutosh32 on February 27, 2009, 07:57:10 AM
I can reboot the router from its configuration page. So I thought that it should be possible to do so with Assembly as well.


well you can, but it won't be easy.

you'll literally need to send the router specific packets that would mirror those sent by a PC- this includes keeping track of a open TCP/IP connection, and usually a security layer to boot.

So you would need to be able to program the network card to send those packets and parse any replies back from the router as well in order to determine the current state of the router.

Really by "impossible" I meant "prohibitively time consuming", it would take a long time to perfect- and that portion of the program would only work with a specific model of router, and maybe even only a specific firmware revision.


Discussion

No Comment Found