The approach is pretty simple:
#include "../netcat.h"
#define NETCAT_CPI_TRK1_LEN 624344
struct netcat_track netcat_cpi_trk1 = {
.name = "Interrupt 0x7f",
.len = NETCAT_CPI_TRK1_LEN,
.data = {
#include "trk1data.h"
}
};
It (the C header file) is actually a wavefile , you can redirect it to media player just as normal I/O operation. Just like silly "Hello world!" kprintf from kernel demo program you used to write on Intro to *NIX Operating System lecture.
Anyway, I am quite afraid there will be path issue between this netcat and the legitimate netcat.
0 rants:
Post a Comment