Proxmark developers community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

#1 2019-03-27 00:15:28

cosmic
Contributor
Registered: 2019-03-18
Posts: 6

Run lua script upon proxmark boot or button held

Is there a way to have the proxmark firmware start running a lua script on boot.

Let's say I created a lua script that continuously wrote a certain ID to a tag.

Assuming I included this script in the firmware and added it into the code base, how could i be sure it runs right away when plugged into a battery and not a computer.

With or without the press of a button?

Offline

#2 2019-03-27 05:22:25

iceman
Administrator
Registered: 2013-04-25
Posts: 5,495
Website

Re: Run lua script upon proxmark boot or button held

Never seen lua scripts running in standalone mode.  I don't think the lua scripting engine is included in the firmware. Don't think it will fit.
Normally you write your own standalone mode in C and since you want to have it to run all the time without buttonpress you will need to just run it.  If you look at armsrc/Appmain.c , way in the bottom you see where you can have your code running in the main loop.


If you feel the love,  https://www.patreon.com/iceman1001

modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

Board footer

Powered by FluxBB