SADBED(1)

NAME
sadbed - Manage SAdoor database files

SYNOPSIS
sadbed sash.db [-dhnsv]

DESCRIPTION
sadbed is a simple editor for SAdoor database files generated with mksadb(8) or sadbcat(1) which helps you to split or merge files as well as copy or dump specific entries.

sadbed loads the encrypted (or unencrypted if -d option is specified) SAdoor database file sash.db into memory and then enters interactive mode where the following commands are available

INTERACTIVE COMMANDS
autosave [yes|no]
    Automatically write all entries to the file specified on the commandline upon exit. If the file is unencrypted, a key is prompted for and the file is overwritten with the encrypted entries. If it is encrypted, the key used for decryption is used when writing the file.
copy source_ip dest_ip [-p]
    Copy the entry with key source_ip to a new entry with key dest_ip. Default action when copying is to traverse the list of required packets in the new entry, and if a destination address matching source_ip is encountered, this IPv4 address is changed to dest_ip. This is useful if the target machine has changed its IPv4 address, but not the key and required packets. If -p option is specified, the packets are left untouched.
del ip [ip..]
    Delete entry or selected entries
dump file [ip..]
    Create a new SADB file by writing all entries, or a selection of entries to the file file.
help [command]
    Print summary of interactive commands, or help for command command.
import file [-de ip]
    Import all entries, or entry specified with -e option from SADB file file. If -d options is used, the target file is assumed to be unencrypted.
list
    List all entries
print [ip] [-kp]
    Print information about all entries, or entry with key ip. -k
        Print the Blowfish key (in hex)
    -p
        Print packets
resolve [yes|no]
    Set resolving of hostnames when printing IP addresses, or print state.
quit
    Quit. If autosave is set to yes, the entries are saved to the file specified on the commandline.
save
    Write all entries to file specified on command line using the same key, or a new key if the file is unencrypted.
verbose [yes|no]
    Enable/disable verbose output or print state.

COMMAND LINE OPTIONS
-d
    Target file is not encrypted
-h
    Print summary of commandline options
-n
    Do not attempt to resolve hostnames
-s
    Enable autosave to file specified on commandline on exit
-v
    Verbose mode

AUTHOR
Claes M. Nyberg
    <cmn@darklab.org> or <md0claes@mdstud.chalmers.se>

SEE ALSO
sadump(1), sadbcat(1), sash(1), mksadb(8), sadoor(8)