1
1
mirror of https://github.com/wader/fq.git synced 2024-12-02 12:45:53 +03:00
Commit Graph

1384 Commits

Author SHA1 Message Date
Pavel Safonov
edb565028d postgres: pg_control refactoring 2022-09-21 13:14:57 +03:00
Pavel Safonov
00de0a96e3 postgres: pg_heap refactoring 2022-09-21 12:49:40 +03:00
Pavel Safonov
efda7b3299 postgres: btree handle full file 2022-09-20 18:32:18 +03:00
Pavel Safonov
f3f259af2d postgres: btree add free space 2022-09-20 17:19:01 +03:00
Pavel Safonov
87b7acf39a postgres: btree impl 2022-09-20 16:57:24 +03:00
Pavel Safonov
d370f5d925 postgres: btree impl 2022-09-20 10:11:10 +03:00
Pavel Safonov
22a6cfa572 postgres: pg_btree add opaque flags 2022-09-19 17:10:18 +03:00
Pavel Safonov
dd84d3218c postgres: pg_btree begin impl 2022-09-19 15:45:54 +03:00
Pavel Safonov
f122f72373 Merge branch 'wader_master' into postgres 2022-09-16 17:18:30 +03:00
Pavel Safonov
d7bcca0a4a postgres: refactoring 2022-09-16 17:15:56 +03:00
Mattias Wadman
ee7b9f4186
Merge pull request #426 from wader/csv-tsv-doc
csv: Add tsv and header example
2022-09-15 01:27:54 +02:00
Mattias Wadman
fe64530e11 csv: Add tsv and header example
Also fix string esacpe in fuzz options parser
2022-09-15 01:16:45 +02:00
Mattias Wadman
88009ee9a3
Merge pull request #425 from wader/wasm-doc
wasm: Add some documentation
2022-09-13 09:59:17 +02:00
Pavel Safonov
067f8d569d postgres: pgwal checks 2022-09-12 14:01:16 +03:00
Pavel Safonov
e66baa75f3 postgres: add wal checks 2022-09-12 13:40:59 +03:00
Pavel Safonov
e311434b8f postgres: wal decoding implement 2022-09-12 13:19:32 +03:00
Mattias Wadman
1385b5d0ba wasm: Add some documentation 2022-09-12 11:53:48 +02:00
Mattias Wadman
1a2cee94b7
Merge pull request #424 from wader/mp4-more-codec-names
mp4: More codec names (from mp4ra.org)
2022-09-12 11:42:10 +02:00
Mattias Wadman
2655ba09c5 mp4: More codec names (from mp4ra.org) 2022-09-12 11:25:43 +02:00
Mattias Wadman
ac93da62c2
Merge pull request #423 from wader/doc-formats-sections
doc: Fix format sections a bit
2022-09-11 10:08:24 +02:00
Mattias Wadman
abd19ed89b doc: Fix format sections a bit 2022-09-11 09:55:56 +02:00
Mattias Wadman
577ea7665c
Merge pull request #422 from wader/markdown
Move format documentation to markdown again
2022-09-11 00:59:49 +02:00
Mattias Wadman
87b2c6c10c help,doc: Use markdown for format documentation again
Markdown is used as is in online documentation and in cli the markdown decoder
is used to decode and the some jq code massages it into something cli friendly.

Was just too much of a mess to have doc in jq.
2022-09-11 00:53:29 +02:00
Mattias Wadman
00a50662ea markdown: Add decoder 2022-09-10 18:26:45 +02:00
Pavel Safonov
8e27e30f89 Merge branch 'wader_master' into postgres 2022-09-09 17:30:33 +03:00
Pavel Safonov
dc6ed54437 Merge branch 'master' into postgres 2022-09-09 17:18:20 +03:00
Pavel Safonov
8f57ebf00b Merge remote-tracking branch 'github/master' 2022-09-09 17:18:09 +03:00
Pavel Safonov
6281b50ddd postgres: exclude wal tests for now 2022-09-09 17:14:30 +03:00
Mattias Wadman
e98adfaa03
Merge pull request #421 from wader/elf-notes
elf: Basic program header notes decoding
2022-09-09 14:48:02 +02:00
Mattias Wadman
5382d46a9a elf: Basic program header notes decoding
Used in coredump to record various statees but also used in executables.

Next step would be to decode the note descriptions, like register info, file mappings etc.
Maybe a bit tricky as it is os/abi specific.
2022-09-09 14:35:35 +02:00
Pavel Safonov
1d9ef300b9 postgres: first correct read of WAL file 2022-09-09 15:16:48 +03:00
Mattias Wadman
2a5a53447c
Merge pull request #420 from piggynl/patch-1
test: Skip go test with -race by default
2022-09-09 09:40:38 +02:00
Piggy NL
808202fa34
test: Skip go test with -race by default 2022-09-09 15:15:18 +08:00
Pavel Safonov
586c803fa5 postgres: try to implement wal 2022-09-09 07:55:36 +03:00
Mattias Wadman
ee6691728f
Merge pull request #419 from wader/bump-github-go-version-1.19.1
Update github-go-version from 1.19.0, 1.19.0, 1.19.0 to 1.19.1
2022-09-07 18:15:01 +02:00
Mattias Wadman
4096de99bd
Merge pull request #418 from wader/bump-docker-golang-1.19.1
Update docker-golang from 1.19.0 to 1.19.1
2022-09-07 18:11:40 +02:00
bump
c47c3866c4 Update github-go-version from 1.19.0, 1.19.0, 1.19.0 to 1.19.1 2022-09-07 16:03:48 +00:00
bump
84ca1010e3 Update docker-golang from 1.19.0 to 1.19.1 2022-09-07 16:03:45 +00:00
Pavel Safonov
c2591ac80a postgres: add test data with specific values 2022-09-07 14:14:11 +03:00
Pavel Safonov
85c042289d postgres: fix linter 2022-09-06 12:55:15 +03:00
Mattias Wadman
f617f39a9a
Merge pull request #417 from wader/elf-more-robust
elf: Treat missing string tables as empty to be more robust
2022-09-06 11:40:38 +02:00
Mattias Wadman
12105d8c1d elf: Treat missing string tables as empty to be more robust
Makes it possible to decode shellcode snippets etc:

$ fq -n '"f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAeABAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAOAABAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAIAAAAAAAsDxmvwYADwU=" | frombase64 | elf | d'
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: (elf)
    |                                               |                |  error: elf: BitBufRange: failed at position 0 (read size 4294967296 seek pos 0): outside buffer
    |                                               |                |  header{}:
    |                                               |                |    ident{}:
0x00|7f 45 4c 46                                    |.ELF            |      magic: raw bits (valid)
0x00|            02                                 |    .           |      class: 64 (2)
0x00|               01                              |     .          |      data: "little_endian" (1)
0x00|                  01                           |      .         |      version: 1
0x00|                     00                        |       .        |      os_abi: "sysv" (0)
0x00|                        00                     |        .       |      abi_version: 0
0x00|                           00 00 00 00 00 00 00|         .......|      pad: raw bits (all zero)
0x10|02 00                                          |..              |    type: "exec" (0x2)
0x10|      3e 00                                    |  >.            |    machine: "x86_64" (0x3e) (AMD x86-64)
0x10|            01 00 00 00                        |    ....        |    version: 1
0x10|                        78 00 40 00 00 00 00 00|        x.@.....|    entry: 4194424
0x20|40 00 00 00 00 00 00 00                        |@.......        |    phoff: 64
0x20|                        00 00 00 00 00 00 00 00|        ........|    shoff: 0
0x30|00 00 00 00                                    |....            |    flags: 0
0x30|            40 00                              |    @.          |    ehsize: 64
0x30|                  38 00                        |      8.        |    phentsize: 56
0x30|                        01 00                  |        ..      |    phnum: 1
0x30|                              00 00            |          ..    |    shentsize: 0
0x30|                                    00 00      |            ..  |    shnum: 0
0x30|                                          00 00|              ..|    shstrndx: 0
    |                                               |                |  program_headers[0:1]:
    |                                               |                |    [0]{}: program_header
0x40|01 00 00 00                                    |....            |      type: "load" (1) (Loadable segment)
    |                                               |                |      flags{}:
0x40|            05                                 |    .           |        unused0: 0
0x40|            05                                 |    .           |        r: true
0x40|            05                                 |    .           |        w: false
0x40|            05                                 |    .           |        x: true
0x40|               00 00 00                        |     ...        |        unused1: 0
0x40|                        00 00 00 00 00 00 00 00|        ........|      offset: 0x0
0x50|00 00 40 00 00 00 00 00                        |..@.....        |      vaddr: 0x400000
0x50|                        00 00 40 00 00 00 00 00|        ..@.....|      paddr: 0x400000
0x60|00 00 00 00 01 00 00 00                        |........        |      filesz: 4294967296
0x60|                        00 00 00 00 01 00 00 00|        ........|      memsz: 4294967296
0x70|00 00 20 00 00 00 00 00                        |.. .....        |      align: 2097152
0x70|                        b0 3c 66 bf 06 00 0f 05|        .<f.....|  unknown0: raw bits
$ fq -n '"f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAeABAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAOAABAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAIAAAAAAAsDxmvwYADwU=" | frombase64 | . as $b | elf | $b[.header.entry-.program_headers[0].vaddr:]' | ndisasm -b 64 -
00000000  B03C              mov al,0x3c
00000002  66BF0600          mov di,0x6
00000006  0F05              syscall
2022-09-06 11:31:48 +02:00
Pavel Safonov
f224ed000e postgres: refactoring 2022-09-06 10:23:08 +03:00
Pavel Safonov
ff4b6fdf14 postgres: refactoring - remove GetHeapD 2022-09-06 10:19:52 +03:00
Pavel Safonov
5eea605f12 postgres: remove duplicate tests 2022-09-06 09:27:40 +03:00
Pavel Safonov
1e24d70e45 postgres: move SeekAbs(0) to Probe 2022-09-06 09:27:04 +03:00
Pavel Safonov
ccf2edb526 postgres: better versions probing in pg_control, fix holes, better tests 2022-09-06 09:20:10 +03:00
Pavel Safonov
3e09f9f12d postgres: change tuple struct in heap 2022-09-05 15:01:59 +03:00
Pavel Safonov
ba8b90ba81 postgres: fill gap alignment in heap tuple 2022-09-05 14:54:42 +03:00
Pavel Safonov
666bbfba29 postgres: fix some unknown, chanche tests tovalue -> dv 2022-09-05 12:50:59 +03:00