Adding short cli parameter
This commit is contained in:
parent
e0c878b8a2
commit
dc2abedde9
4 changed files with 16 additions and 16 deletions
|
@ -46,11 +46,11 @@ using namespace libNetwork;
|
|||
int main ( int argc, char **argv ) {
|
||||
options_description desc ( "Cigarette - Network Packet Parser" );
|
||||
desc.add_options()
|
||||
( "help", "prints this" )
|
||||
( "ipv4", "expand IPv4 info" )
|
||||
( "tcp", "expand TCP info" )
|
||||
( "icmp", "expand ICMP info" )
|
||||
( "payload", "print payload dump" )
|
||||
( "help,h", "prints this" )
|
||||
( "ipv4,4", "expand IPv4 info" )
|
||||
( "tcp,t", "expand TCP info" )
|
||||
( "icmp,i", "expand ICMP info" )
|
||||
( "payload,p", "print payload dump" )
|
||||
;
|
||||
|
||||
variables_map vm;
|
||||
|
|
|
@ -163,8 +163,8 @@ void scribe ( std::list<stream*> *packet_stream ) {
|
|||
int main ( int argc, char **argv ) {
|
||||
options_description desc ( "Pursuer - Network TCP Follower" );
|
||||
desc.add_options()
|
||||
( "help", "prints this" )
|
||||
( "tofile", "redirect payload to file (a file for each stream)" )
|
||||
( "help,h", "prints this" )
|
||||
( "tofile,f", "redirect payload to file (a file for each stream)" )
|
||||
;
|
||||
|
||||
variables_map vm;
|
||||
|
|
|
@ -164,8 +164,8 @@ int main ( int argc, char **argv ) {
|
|||
|
||||
options_description desc ( "Ranging - Network Passive Scanner" );
|
||||
desc.add_options()
|
||||
( "help", "prints this" )
|
||||
( "ttl", value<int>(), "sets the deadline (in seconds) for each match (default = 50)" )
|
||||
( "help,h", "prints this" )
|
||||
( "ttl,t", value<int>(), "sets the deadline (in seconds) for each match (default = 50)" )
|
||||
;
|
||||
|
||||
variables_map vm;
|
||||
|
|
14
Riddle.cpp
14
Riddle.cpp
|
@ -46,14 +46,14 @@ using namespace boost::program_options;
|
|||
int main ( int argc, char **argv ) {
|
||||
options_description desc ( "Riddle - Network Sniffer" );
|
||||
desc.add_options()
|
||||
( "help", "prints this" )
|
||||
( "dump", "enable dump mode" )
|
||||
( "iface", value<string>(), "interface to sniff from (not set = default device)" )
|
||||
( "input", value<string>(), "reads packets from a pcap file (disable iface input)" )
|
||||
( "filter", value<string>(), "use to filter packet with bpf" )
|
||||
( "limit", value<int>(), "set max number of packet" )
|
||||
( "help,h", "prints this" )
|
||||
( "dump,d", "enable dump mode" )
|
||||
( "iface,i", value<string>(), "interface to sniff from (not set = default device)" )
|
||||
( "input,I", value<string>(), "reads packets from a pcap file (disable iface input)" )
|
||||
( "filter,f", value<string>(), "use to filter packet with bpf" )
|
||||
( "limit,l", value<int>(), "set max number of packet" )
|
||||
#ifdef __linux__
|
||||
( "secure", "Drop root privileges after initialization." )
|
||||
( "secure,s", "Drop root privileges after initialization." )
|
||||
#endif
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue