From 12a700f8903eedeba03d3aba7990b9d660410045 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 05 May 2003 14:57:54 +0000 Subject: prepare for major configuration overwhoul --- (limited to 'noncore/net/wellenreiter/gui') diff --git a/noncore/net/wellenreiter/gui/configbase.ui b/noncore/net/wellenreiter/gui/configbase.ui index ba4de32..a8b55bb 100644 --- a/noncore/net/wellenreiter/gui/configbase.ui +++ b/noncore/net/wellenreiter/gui/configbase.ui @@ -11,7 +11,7 @@ 0 0 - 236 + 232 342 diff --git a/noncore/net/wellenreiter/gui/configbasenew.ui b/noncore/net/wellenreiter/gui/configbasenew.ui new file mode 100644 index 0000000..1307f00 --- a/dev/null +++ b/noncore/net/wellenreiter/gui/configbasenew.ui @@ -0,0 +1,814 @@ + +Form1 + + QDialog + + name + Form1 + + + geometry + + 0 + 0 + 280 + 382 + + + + caption + Form1 + + + layoutMargin + + + layoutSpacing + + + + margin + 5 + + + spacing + 3 + + + QTabWidget + + name + interface + + + layoutMargin + + + layoutSpacing + + + QWidget + + name + tab + + + title + Interface + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel1_2 + + + enabled + true + + + text + Name: + + + + QComboBox + + name + name + + + enabled + true + + + whatsThis + Choose the interface used for sniffing. + + + + QLabel + + name + TextLabel2_3 + + + enabled + true + + + text + Driver: + + + + QComboBox + + + text + <select> + + + + + text + cisco + + + + + text + wlan-ng + + + + + text + hostap + + + + + text + orinoco + + + + + text + <manual> + + + + + text + <file> + + + + name + driver + + + enabled + true + + + whatsThis + Choose the type of driver used for sniffing. + + + + QCheckBox + + name + CheckBox18 + + + text + Hop Channels + + + checked + true + + + + QLabel + + name + TextLabel1 + + + text + every + + + + QSpinBox + + name + hopInterval + + + enabled + true + + + suffix + ms + + + maxValue + 2000 + + + minValue + 100 + + + lineStep + 100 + + + value + 1000 + + + whatsThis + Choose the channel hop interval. + + + + QGroupBox + + name + GroupBox1 + + + title + Scan on channel + + + + margin + 11 + + + spacing + 6 + + + QCheckBox + + name + channel6 + + + text + 6 + + + + QCheckBox + + name + channel8 + + + text + 8 + + + + QCheckBox + + name + channel2 + + + text + 2 + + + + QCheckBox + + name + channel9 + + + text + 9 + + + + QCheckBox + + name + channel1 + + + text + 1 + + + + QCheckBox + + name + channelAll + + + text + All + + + + QCheckBox + + name + channel11 + + + text + 11 + + + + QCheckBox + + name + channel10 + + + text + 10 + + + + QCheckBox + + name + channel7 + + + text + 7 + + + + QCheckBox + + name + channel3 + + + text + 3 + + + + QCheckBox + + name + channel5 + + + text + 5 + + + + QCheckBox + + name + channel4 + + + text + 4 + + + + QCheckBox + + name + channel12 + + + text + 12 + + + + QCheckBox + + name + channel13 + + + text + 13 + + + + QCheckBox + + name + channel14 + + + text + 14 + + + + + + + name + Spacer4 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QCheckBox + + name + usePrismHeader + + + text + Use additional PRISM header + + + + + + QWidget + + name + tab + + + title + Capture + + + + margin + 5 + + + spacing + 3 + + + ProtocolListView + + name + MyCustomWidget1 + + + sizePolicy + + 7 + 7 + + + + + QCheckBox + + name + writeCaptureFile + + + enabled + true + + + text + Write Capture Files To + + + + QToolButton + + name + getCaptureFileName + + + enabled + false + + + text + ... + + + + QLineEdit + + name + captureFileName + + + enabled + false + + + + + + QWidget + + name + tab + + + title + Parse + + + + margin + 5 + + + spacing + 3 + + + ProtocolListView + + name + parsePackets + + + sizePolicy + + 7 + 7 + + + + + + + QWidget + + name + tab + + + title + Intrusion + + + + margin + 11 + + + spacing + 6 + + + QGroupBox + + name + GroupBox3 + + + enabled + false + + + title + Link Level + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel1_5 + + + text + Fake Mac: + + + + QCheckBox + + name + sendProbeRequests + + + text + Send proble requests + + + + QComboBox + + + text + 44:44:44:44:44:44 + + + + + text + <automatic> + + + + name + fakeMac + + + sizePolicy + + 7 + 0 + + + + editable + true + + + autoCompletion + true + + + + QCheckBox + + name + tryToAuthenticate + + + text + Try to authenticate + + + + + + QCheckBox + + name + enableActiveScanning + + + enabled + false + + + text + Enable active scanning + + + + QGroupBox + + name + GroupBox4 + + + enabled + false + + + title + IP Level + + + + margin + 11 + + + spacing + 6 + + + QCheckBox + + name + CheckBox24 + + + text + Request DHCP Address + + + + QLabel + + name + TextLabel1_5_2 + + + text + Fake IP: + + + + QComboBox + + + text + 192.168.125.1 + + + + + text + <automatic> + + + + name + ComboBox10 + + + sizePolicy + + 7 + 0 + + + + + + + + + + + + + ProtocolListView +
protolistview.h
+ + 100 + 100 + + 0 + + 3 + 3 + + image0 +
+
+ + + image0 + 789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758 + + + + + CheckBox18 + toggled(bool) + hopInterval + setEnabled(bool) + + + CheckBox18 + toggled(bool) + TextLabel1 + setEnabled(bool) + + + enableActiveScanning + toggled(bool) + GroupBox3 + setEnabled(bool) + + + enableActiveScanning + toggled(bool) + GroupBox4 + setEnabled(bool) + + +
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 716618e..92715b4 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp @@ -138,3 +138,9 @@ void WellenreiterConfigWindow::getCaptureFileNameClicked() } } + +bool WellenreiterConfigWindow::usePrismHeader() +{ + return true; + //return interface->usePrismHeader(); +} diff --git a/noncore/net/wellenreiter/gui/configwindow.h b/noncore/net/wellenreiter/gui/configwindow.h index c7c70a6..11ae5b8 100644 --- a/noncore/net/wellenreiter/gui/configwindow.h +++ b/noncore/net/wellenreiter/gui/configwindow.h @@ -43,6 +43,8 @@ class WellenreiterConfigWindow : public WellenreiterConfigBase const QString soundOnBeacon() const { return beaconSound->currentText(); }; static WellenreiterConfigWindow* instance() { return _instance; }; + bool usePrismHeader(); + public slots: void changedDeviceType(int); void getCaptureFileNameClicked(); diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro index 62e1d9a..a11698f 100644 --- a/noncore/net/wellenreiter/gui/gui.pro +++ b/noncore/net/wellenreiter/gui/gui.pro @@ -29,7 +29,7 @@ SOURCES = main.cpp \ INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -INTERFACES = configbase.ui +INTERFACES = configbase.ui #configbasenew.ui TARGET = wellenreiter !contains( platform, x11 ) { diff --git a/noncore/net/wellenreiter/gui/protolistview.cpp b/noncore/net/wellenreiter/gui/protolistview.cpp new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/noncore/net/wellenreiter/gui/protolistview.cpp diff --git a/noncore/net/wellenreiter/gui/protolistview.h b/noncore/net/wellenreiter/gui/protolistview.h new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/noncore/net/wellenreiter/gui/protolistview.h diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 9e1010b..705aab6 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -331,12 +331,14 @@ void Wellenreiter::startClicked() // set monitor mode + bool usePrism = configwindow->usePrismHeader(); + switch ( cardtype ) { - case DEVTYPE_CISCO: iface->setMonitoring( new OCiscoMonitoringInterface( iface ) ); break; - case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface ) ); break; - case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface ) ); break; - case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface ) ); break; + case DEVTYPE_CISCO: iface->setMonitoring( new OCiscoMonitoringInterface( iface, usePrism ) ); break; + case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface, usePrism ) ); break; + case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface, usePrism ) ); break; + case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface, usePrism ) ); break; case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break; default: assert( 0 ); // shouldn't reach this -- cgit v0.9.0.2