From 45d3c1d6287f8e2272436ed99109ff5dd1774254 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 21 Dec 2015 20:50:21 +0000 Subject: Added project pages --- md/writeup.md | 9 ++++++ md/writeup/datamatch.md | 85 +++++++++++++++++++++++++++++++++++++++++++++++++ md/writeup/h64e.md | 41 ++++++++++++++++++++++++ md/writeup/kconf2h.md | 69 +++++++++++++++++++++++++++++++++++++++ md/writeup/radiola.md | 40 +++++++++++++++++++++++ 5 files changed, 244 insertions(+) create mode 100644 md/writeup/datamatch.md create mode 100644 md/writeup/h64e.md create mode 100644 md/writeup/kconf2h.md create mode 100644 md/writeup/radiola.md (limited to 'md') diff --git a/md/writeup.md b/md/writeup.md index d37efde..6960029 100644 --- a/md/writeup.md +++ b/md/writeup.md @@ -9,6 +9,15 @@ [QEMU usage](writeup/qemu_usage.md) +### Projects + +| Project | Description | +| --- | --- | +| [DataMatch](writeup/datamatch.md) | data matching language for binary files | +| [Radiola](writeup/radiola.md) | rtlsdr sdr experiments | +| [Kconf2h](writeup/kconf2h.md) | convert kernel Kconfig to *.h files | +| [h64e](writeup/h64e.md) | mini hexdump like hex dumper | + # Archive [Create ELF file from scratch](http://archive.main.lv/writeup/create_elf_file_from_scratch.html) [ASCIITex ascii text formating utility](http://archive.main.lv/writeup/asciitex_ascii_text_formating_utility.html) diff --git a/md/writeup/datamatch.md b/md/writeup/datamatch.md new file mode 100644 index 0000000..d538296 --- /dev/null +++ b/md/writeup/datamatch.md @@ -0,0 +1,85 @@ +# DM - data match mini data language + +mini language to match some data in files it could be just binary file or +it could be some bookmarks and when data is found script output some info +about that + +## Examples + +### Print about position in file + +Here how looks scripts to bookmark some position +``` +0x01 "byte one" +0x02 "byte two" +``` +This could be used to bookmark stuff in files + +### Check bytes in position + +Here is example where output will tell if its 32/64bit file and with kind of +file type it is relocatable/executable/shared/core elf. + +``` +0x0-0x3 + "magic number" +0x4 + if (0x01) "32 bit elf" + if (0x02) "64 bit elf" +0x5 + if (0x01) "little endian" + if (0x02) "big endian" +0x10 + if (0x1) "relocatable ELF" + if (0x2) "executable ELF" + if (0x3) "shared ELF" + if (0x4) "Core ELF what that" + +``` + +## Compiling + +just make should work + +``` +make +``` + +if not then probably you dont have ragel just remove it from makefile and it +should work fine as ragel generated *.c file is allready included + +## Source + +``` +git clone http://git.main.lv/cgit.cgi/dm.git +``` + +or + +``` +git clone https://github.com/FreeArtMan/dm.git +``` + +main development site is http://main.lv and main git repo is http://git.main.lv + +## Tested + +| OS | Arch | +|---|---| +| Linux | 32/64bit intel | +| NetBSD | 32bit intel | + +## Future + +Future features will be added if there will practical demand for them if there +will be some moment when they will be really needed. + +Could be added +* support for if's in the row +* add binary masks +* generation of csv table +* genrate c struct to embed in programms +* genrate other languages (lua/python/sh) +* work with pipe could cat some /dev/random or so +* support streamed data +* support comments \ No newline at end of file diff --git a/md/writeup/h64e.md b/md/writeup/h64e.md new file mode 100644 index 0000000..4c56a1d --- /dev/null +++ b/md/writeup/h64e.md @@ -0,0 +1,41 @@ +# h64d - hexdump analog + +small hexdumpl like tool currently supports: + +```text +./h64d: invalid option -- '-' +Usage: ./h64d [OPTS] + + -a - asciimode + -b - show offset adress + -o - file offset + -i - output hex + -l - length of output + +Version: 0.1beta +``` + +more stuff will be added if there will be some nice use cases. + +## Tested + +| OS | Arch | +|---|---| +| Linux | 32/64bit intel | +| NetBSD | 32bit intel | + +## Source + +``` +git clone http://git.main.lv/cgit.cgi/h64.git +``` + +## Compile + +just + +``` +make +``` + +should be enought \ No newline at end of file diff --git a/md/writeup/kconf2h.md b/md/writeup/kconf2h.md new file mode 100644 index 0000000..41f573d --- /dev/null +++ b/md/writeup/kconf2h.md @@ -0,0 +1,69 @@ +# kconf2h - kernel config transltion to C headers + +Kernel menuconfig is cool way how to configure files and enable/disable some +flag/constants inside source here is small tool that converts files like + +```text +CONFIG_CORE=y +CONFIG_OS_LINUX=y +# CONFIG_OS_NETBSD is not set +# CONFIG_FUTURE is not set +CONFIG_DRAW=y +CONFIG_GL=y +CONFIG_SDL2=y +CONFIG_TUI=y +CONFIG_HW=y +CONFIG_HW_LIB_ORIG=y +# CONFIG_HW_LIB_R820T is not set +CONFIG_HW_ALSA=y +# CONFIG_HW_NO_AUDIO is not set +CONFIG_MOD=y +CONFIG_MOD_FM_DEMOD=y +# CONFIG_PROTO is not set +``` + +to just c headers + +```text +#define CONFIG_CORE +#define CONFIG_OS_LINUX +#define CONFIG_DRAW +#define CONFIG_GL +#define CONFIG_SDL2 +#define CONFIG_TUI +#define CONFIG_HW +#define CONFIG_HW_LIB_ORIG +#define CONFIG_HW_ALSA +#define CONFIG_MOD +#define CONFIG_MOD_FM_DEMOD +``` + +doesnt support anything else except yes/no + +## Tested + +| OS | Arch | +|---|---| +| Linux | 32/64bit intel | + +## Source + +``` +git clone http://git.main.lv/cgit.cgi/kconfig2h.git +``` + +or + +``` +git clone https://github.com/FreeArtMan/kconfig2h.git +``` + +## Compile + +just + +``` +make +``` + +should be enought \ No newline at end of file diff --git a/md/writeup/radiola.md b/md/writeup/radiola.md new file mode 100644 index 0000000..f59b6e2 --- /dev/null +++ b/md/writeup/radiola.md @@ -0,0 +1,40 @@ +# Radiola - rtlsdr expermintal SDR + +Experimental rtlsdr software to play with small and nifty tv-tuner dongle. + +Now implemetend SDL2 waterfall diagramm, terminal waterfall diagramm also +is possible to demodulate wbfm and listen to radio stations. + + +## Tested + +| OS | Arch | +|---|---| +| Linux | 32/64bit intel | +| NetBSD | 32bit intel | + +## Source + +``` +git clone http://git.main.lv/cgit.cgi/radiola.git +``` + +or + +``` +https://github.com/FreeArtMan/radiola.git +``` + +## Compile + +For Linux should work out of the box with NetBSD needed some small tweaks. + +``` +make +``` + +for NetBSD (or any other *BSD, MacOS could work as well) just try + +``` +make bsd +``` \ No newline at end of file -- cgit v1.2.3