mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 06:59:03 +00:00
Merging r4494 from my branch. A couple NmapFE changes. Add --packet-trace and change sensitivity setting for -r (it can be used when non-root)
This commit is contained in:
@@ -47,6 +47,9 @@ o The IPProto Scan should be more accurate when scanning protocol 17 (UDP).
|
||||
o The --scanflags option now also accepts "ECE", "CWR", "ALL" and "NONE" as
|
||||
arguments. [Kris]
|
||||
|
||||
o The --packet-trace option was added to NmapFE. The Ordered Ports (-r)
|
||||
option in now available to non-root users on NmapFE as well. [Kris]
|
||||
|
||||
o Applied some internal bugfix patches from Eddie Bell.
|
||||
|
||||
4.21ALPHA1
|
||||
|
||||
@@ -1370,8 +1370,6 @@ GtkAdjustment *adjust;
|
||||
opt.useOrderedPorts = gtk_check_button_new_with_label("Ordered Ports");
|
||||
g_signal_connect(GTK_OBJECT(opt.useOrderedPorts), "released",
|
||||
GTK_SIGNAL_FUNC(validate_option_change), NULL);
|
||||
if (!opt.isr00t)
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(opt.useOrderedPorts), FALSE);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), opt.useOrderedPorts, FALSE, TRUE, 0);
|
||||
gtk_widget_show(opt.useOrderedPorts);
|
||||
|
||||
@@ -1381,6 +1379,12 @@ GtkAdjustment *adjust;
|
||||
gtk_box_pack_start(GTK_BOX(vbox), opt.randomizeHosts, FALSE, TRUE, 0);
|
||||
gtk_widget_show(opt.randomizeHosts);
|
||||
|
||||
opt.packetTrace = gtk_check_button_new_with_label("Packet Trace");
|
||||
g_signal_connect(GTK_OBJECT(opt.packetTrace), "released",
|
||||
GTK_SIGNAL_FUNC(validate_option_change), NULL);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), opt.packetTrace, FALSE, TRUE, 0);
|
||||
gtk_widget_show(opt.packetTrace);
|
||||
|
||||
gtk_widget_show(vbox);
|
||||
gtk_widget_show(frame);
|
||||
|
||||
|
||||
@@ -300,6 +300,7 @@ struct NmapFEoptions {
|
||||
GtkWidget *useIPv6;
|
||||
GtkWidget *useOrderedPorts;
|
||||
GtkWidget *randomizeHosts;
|
||||
GtkWidget *packetTrace;
|
||||
};
|
||||
|
||||
GtkWidget* create_main_win (void);
|
||||
|
||||
@@ -498,6 +498,10 @@ int command_size = 2560;
|
||||
GTK_TOGGLE_BUTTON(opt.randomizeHosts)->active)
|
||||
strcat(command, "--randomize-hosts ");
|
||||
|
||||
if (GTK_WIDGET_SENSITIVE(opt.packetTrace) &&
|
||||
GTK_TOGGLE_BUTTON(opt.packetTrace)->active)
|
||||
strcat(command, "--packet-trace ");
|
||||
|
||||
if (GTK_WIDGET_SENSITIVE(opt.useInputFile) &&
|
||||
GTK_TOGGLE_BUTTON(opt.useInputFile)->active) {
|
||||
const char *val = gtk_entry_get_text(GTK_ENTRY(opt.inputFilename));
|
||||
|
||||
Reference in New Issue
Block a user