Proxmark3 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 2020-01-07 16:04:35

art445
Contributor
Registered: 2020-01-02
Posts: 5

own version of stand-alone mode

Hi

In standalone mode, I use the following code to emulate EM410:

CmdEM410xdemod(1, &Hi, &Lo, 0);
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
d = BigBuf_get_addr();
memconv(d, bits/8);
SimulateTagLowFrequency(bits/8, 0, 0);
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);


void memconv(void *dest, int len) {
    uint8_t *d = dest;
    uint8_t c = 0;
    while ((len--) > 0) {
        c  = *d ;
        c =  c >> 7  ;
        *d = c  ;
        d++;
    }
    return;
}

Someone has tips and comments?

Offline

#2 2020-01-11 12:00:39

art445
Contributor
Registered: 2020-01-02
Posts: 5

Re: own version of stand-alone mode

I did what I wanted - my version of the standalone mode. I made it from the  lf_icerun.с template and connected it as it is written in the manual. Thanks to iceman.

Here's what happened. https://drive.google.com/open?id=1_gQEnRLCqgiLHsm1_-Z_S7rjEZVR4Jlt

Offline

#3 2020-01-11 12:15:57

iceman
Administrator
Registered: 2013-04-25
Posts: 6,076
Website

Re: own version of stand-alone mode

Awesome progress!
Looking forward to a pull request smile


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

modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#4 Today 12:23:26

art445
Contributor
Registered: 2020-01-02
Posts: 5

Re: own version of stand-alone mode

Hi

There is an option to simulate EM410 to create data on the PM3 side, and not on the client side. This can come in handy when building bruteforce for EM410. This code works, at least for me:)

            FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
            // EM410x ID = 0d3406789c
            uint8_t code[10] = {0x0,0xd,0x3,0x4,0x0,0x6,0x7,0x8,0x9,0xc};
            uint8_t *dv = 0;
            uint8_t *dd = BigBuf_get_addr();
               // create a stream
            dv = StreamHdr(dd);
            dv = StreamBody(dv,code);
            dv = SteamTail(dv,code);
              // play the stream
            SimulateTagLowFrequency(5376, 0, 0);
            FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);

file with functions here: https://drive.google.com/open?id=1y1rz4XVB8P4eZd-TRX7JQFs-DjVpje1i
Anyone have any clever thoughts on this?

Offline

#5 Today 14:42:51

iceman
Administrator
Registered: 2013-04-25
Posts: 6,076
Website

Re: own version of stand-alone mode

since you are not using Github for your code,  there is little interest since it makes comparing and following it harder,  don't expect much from ppl.


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

modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#6 Today 15:35:38

art445
Contributor
Registered: 2020-01-02
Posts: 5

Re: own version of stand-alone mode

Thanks for the answer.  I don’t know how to use github in this case. This code only works in the context of your code.

Offline

Board footer

Powered by FluxBB