File: _rafind2

package info (click to toggle)
radare2 6.0.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 77,536 kB
  • sloc: ansic: 889,435; sh: 8,299; javascript: 7,675; makefile: 5,194; python: 1,929; cpp: 789; perl: 438; lisp: 122; sed: 85; asm: 57; cs: 37; xml: 32; ruby: 29; java: 21
file content (39 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#compdef rafind2
local context state state_descr line

_rafind2() {
  local -a options=(
  '-a+[only accept aligned hits]:align'
  '-b+[set block size]:size'
  '*-e+[search for regular expression string matches]:regex'
  "-f+[start searching from address 'from']:from"
  '-h[show this help]'
  '-i[identify filetype (r2 -nqcpm file)]'
  '-m[magic search, file-type carver]'
  '-M+[set a binary mask to be applied on keywords]:str'
  '-n[do not stop on read errors]'
  '-q[quiet]'
  '-r[print using radare commands]'
  '*-s+[search for a specific string (can be used multiple times)]:str'
  '*-S+[search for a specific wide string (can be used multiple times)]:str'
  "-t+[stop search at address 'to']:to"
  '-v[print version and exit]'
  '*-x+[search for hexpair string (909090) (can be used multiple times)]:hex'
  '-X[show hexdump of search results]'
  '-z[search for zero-terminated strings]'
  '-Z[show string found on each search hit]'
  )

  _arguments -S -s : $options '*:file:_files'
}

_rafind2 "$@"

# Local Variables:
# mode: shell-script
# coding: utf-8-unix
# indent-tabs-mode: nil
# sh-indentation: 2
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 sts=2 et