Why Wireshark is not decrypting the captured wpa file even i have correct password and essid ?

I tried to capture a file where network using security as below: [WPA-PSK-CCMP-TKIP] i am trying to insert a WPA Pre-shared Key in wire shark preferences under the protocol of IEEE 802.11 but when i enter a correct key nothing happen anyway to identify and fix this problem?

Topic by NoumanM4 


Is a MAC whitelist more or less secure than WPA/WEP security? Answered

I currently have WPA security set on my home wireless network.  It works nicely to limit access only to those to whom I give the password.  However, it's a real pain to try getting Linux-running laptops to connect to it.  Same with my BlackBerry. I'm considering disabling security entirely and instead creating a "whitelist" of MAC addresses of the wireless devices I want to allow access.  Is this a bad idea?  Will I be leaving my network vulnerable in a way I'm not foreseeing?

Question by yoyology   |  last reply



internet help!

Ok, so I am at my friends house and i want to get on his wireless internet with my laptop, our problem is that, his wireless internet is password protected by a WPA Personal password and we do not know his IP address, I look at the spot where all his wireless things are set up and instead of router and modem, he has a cisco firewall box, cisco wireless acess point, a motorola modem and i am just baffled i called his service provider but they said i would have to call the third party router people can anyone help!?

Topic by astrozombies138   |  last reply


Data updating on thingspeak (cloude) only once

 I am trying to update Thingspeak using Edison. It updates thingspeak but only at once. If I have to update again I have to run the code again. #include #include // ThingSpeak Settings char thingSpeakAddress[] = "api.thingspeak.com";  //TS String writeAPIKey = "**************";    //TS const int updateThingSpeakInterval = 20 * 1000;      // Time interval in milliseconds to update ThingSpeak (number of seconds * 1000 = interval) char ssid[] = "*********";     //  your network SSID (name) char pass[] = "*********";  // your network password int status = WL_IDLE_STATUS;     // the Wifi radio's status // initialize the library instance: WiFiClient client; String stringVal = ""; // Variable Setup long lastConnectionTime = 0; boolean lastConnected = false; int failedCounter = 0; int a; float tempC; int B=3975; float resistance; void setup() {   //Initialize serial and wait for port to open:   Serial.begin(115200);    while (!Serial) {     } //  check for the presence of the shield: // if (WiFi.status() == WL_NO_SHIELD) {   //   Serial.println("WiFi shield not present");     // don't continue:     //while(true); //} // attempt to connect to Wifi network:   while ( status != WL_CONNECTED) {     Serial.print("Attempting to connect to WPA SSID: ");     Serial.println(ssid);     // Connect to WPA/WPA2 network:       status = WiFi.begin(ssid, pass);     // wait 10 seconds for connection:     delay(10000);      }     // you're connected now, so print out the data:   Serial.println("You're connected to the network");   // printCurrentNet();   // printWifiData(); }   void loop() { a = analogRead(0); resistance=(float)(1023-a)*10000/a; tempC=1/(log(resistance/10000)/B+1/298.15)-273.15; // converts temp  to string      stringVal += String(int(tempC))+ "."+String(getDecimal(tempC)); //char buf[16]; //String strTemp = floatToString(16 , cel , 5); //Serial.println(strTemp); // Print Update Response to Serial Monitor   while (client.available())   {     char c = client.read();     Serial.print(c);   }   // Disconnect from ThingSpeak   if (!client.connected() && lastConnected )   {     Serial.println("...disconnected");     Serial.println();        client.stop();     }   // Update ThingSpeak   if(client.connected() && (millis() - lastConnectionTime > updateThingSpeakInterval))   {     updateThingSpeak("field1="+stringVal);      Serial.print( stringVal);          Serial.println("C");      delay(1000);      Serial.println();         }   lastConnected = client.connected(); } //function to extract decimal part of float long getDecimal(float val) { int intPart = int(val); long decPart = 100*(val-intPart); //I am multiplying by 100 assuming that the foat values will have a maximum of 3 decimal places                                    //Change to match the number of decimal places you need if(decPart>0)return(decPart);           //return the decimal part of float number if it is available else if(decPart<0)return((-1)*decPart); //if negative, multiply by -1 else if(decPart=0)return(00);           //return 0 if decimal part of float number is not available } void updateThingSpeak(String  stringVal) {   if (client.connect(thingSpeakAddress, 80))   {            client.print("POST /update HTTP/1.1\n");     client.print("Host: api.thingspeak.com\n");     client.print("Connection: close\n");     client.print("X-THINGSPEAKAPIKEY: "+writeAPIKey+"\n");     client.print("Content-Type: application/x-www-form-urlencoded\n");     client.print("Content-Length: ");     client.print( stringVal.length());     client.print("\n\n");     client.print( stringVal);        lastConnectionTime = millis();        if (client.connected())     {       Serial.println("Connecting to ThingSpeak...");       Serial.println();            failedCounter = 0;     }     else     {       failedCounter++;       Serial.println("Connection to ThingSpeak failed ("+String(failedCounter, DEC)+")");        Serial.println();     }      }   else   {     failedCounter++;        Serial.println("Connection to ThingSpeak Failed ("+String(failedCounter, DEC)+")");      Serial.println();        lastConnectionTime = millis();   } } after running this code I get this(image attached)

Question by ANINDYAB5   |  last reply


Arduino WX code help for Weather Underground data upload?

Hello- I tried to recreate this WiFi Weather Station project using most of the same parts except for the Arduino WiFi101 shield.  I am having a problem with the data only being uploaded once.  The code tries again, but it seems the connection to WU fails after the first time.  I have to hit the reset button on the board or reload the code for it to upload again.   I am wondering if the connection to WU needs to be severed after each upload and the entire process needs to repeat after that.  I have no idea...  Someone else posted a comment in the comment section for the project with same issue and the author has never responded to the upload issue.  Any help would be great.   Here is the code: int DEBUG = 1; #include #include #include #include #include     //UV sensor #include #include #define DHTPIN 2 #define DHTTYPE DHT22 //DHT22 //Constants char ssid[] = "******";     //  your network SSID (name) char pass[] = "******";    // your network password int status = WL_IDLE_STATUS;     // the Wifi radio's status char SERVER[] = "rtupdate.wunderground.com";           // Realtime update server - RapidFire char WEBPAGE [] = "GET /weatherstation/updateweatherstation.php?"; char ID [] = "**********"; char PASSWORD [] = "*********"; DHT dht(DHTPIN, DHTTYPE); Adafruit_SI1145 uv = Adafruit_SI1145(); // UV Sensor Adafruit_BMP085 bmp; WiFiClient client; void setup(void) {   Serial.begin(9600);   Wire.begin();   dht.begin();   uv.begin();   bmp.begin();   Serial.println("Attempting to connect to WPA network...");   status = WiFi.begin(ssid, pass);    //if you're not connected, stop here:   if ( status != WL_CONNECTED) {     Serial.println("Couldn't get a wifi connection");     while(true);   }    //if you are connected, print out info about the connection:   else {     Serial.println("WiFi is a Go!!");     } } void loop(void){    //Get sensor data   float tempc = bmp.readTemperature();    float tempf =  (tempc * 9.0)/ 5.0 + 32.0;    float humidity = dht.readHumidity();   float baromin = bmp.readPressure()* 0.0002953;   float dewptf = (dewPoint(tempf, dht.readHumidity()));    float UVindex = uv.readUV();         UVindex /= 100.0;                               if (DEBUG) {     Serial.println("+++++++++++++++++++++++++");   Serial.print("temp= ");   Serial.print(tempf);   Serial.println(" *F");   Serial.print("baro= ");   Serial.print(baromin);   Serial.println(" inHg");   Serial.print("dew point= ");   Serial.println(dewptf);   Serial.print("humidity= ");   Serial.println(humidity);   Serial.print("UV: ");    Serial.println(UVindex);   }//End debug loop //Send data to Weather Underground if (client.connect(SERVER, 80)) {     if (DEBUG) {          Serial.println("Sending DATA ");       }     // Ship it!     client.print(WEBPAGE);     client.print("ID=");     client.print(ID);     client.print("&PASSWORD;=");     client.print(PASSWORD);     client.print("&dateutc;=");     client.print("now");     client.print("&tempf;=");     client.print(tempf);     client.print("&baromin;=");     client.print(baromin);     client.print("&dewptf;=");     client.print(dewptf);     client.print("&humidity;=");     client.print(humidity);     client.print("&uv;=");     client.print(UVindex);     client.print("&softwaretype;=Arduino%20UNO%20version1&action;=updateraw&realtime;=1&rtfreq;=2.5");//Rapid Fire     client.println();         if (DEBUG) {         Serial.println("Upload complete");       }          }//End send loop     else {       if (DEBUG) { Serial.println(F("Connection failed")); }       return;       }         delay(2500);     }//End loop /****************************************************************   Function Fun Time ****************************************************************/ double dewPoint(double tempf, double humidity) {   double A0= 373.15/(273.15 + tempf);   double SUM = -7.90298 * (A0-1);   SUM += 5.02808 * log10(A0);   SUM += -1.3816e-7 * (pow(10, (11.344*(1-1/A0)))-1) ;   SUM += 8.1328e-3 * (pow(10,(-3.49149*(A0-1)))-1) ;   SUM += log10(1013.246);   double VP = pow(10, SUM-3) * humidity;   double T = log(VP/0.61078);     return (241.88 * T) / (17.558-T); }

Question by rwcwx   |  last reply


Combing Arduino Sketches

Hello, I have a question. I need to combine my code for my Arduino Webserver with the code for my Parallax card reader. When I combine them only the RFID card part works? Can someone help me debunk this. I orginally wanted it to be when someone swiped a valid RFID card, that it would launch the webserver? I don't think that's possible though. Here's my code: #define RFID_ENABLE 2   //to RFID ENABLE #define CODE_LEN 10      //Max length of RFID tag #define VALIDATE_TAG 1  //should we validate tag? #define VALIDATE_LENGTH  200 //maximum reads b/w tag read and validate #define ITERATION_LENGTH 200 //time, in ms, given to the user to move hand away #define START_BYTE 0x0A #define STOP_BYTE 0x0D #include #include char ssid[] = "*******";      //  your network SSID (name) char pass[] = "*********";   // your network password char tag[CODE_LEN];  int readLed = 4; int invalidCardled = 5; int validCardled = 6; int ipCam = 7; int doorLock = 8; int alarm    = 9; int status = WL_IDLE_STATUS; WiFiServer server(1025); void setup() {   Serial.begin(2400);    Serial.println("Please Swipe Your Card.");   pinMode(RFID_ENABLE,OUTPUT);    pinMode(readLed, OUTPUT);   pinMode(validCardled , OUTPUT);   pinMode(invalidCardled, OUTPUT);   pinMode(ipCam, OUTPUT);   pinMode(doorLock, OUTPUT);   pinMode(alarm, OUTPUT);       if (WiFi.status() == WL_NO_SHIELD) {// check for the presence of the shield:     Serial.println("WiFi shield not present");     while(true);        // don't continue    // attempt to connect to Wifi network:   while ( status != WL_CONNECTED) {     Serial.print("Attempting to connect to Network named: ");     Serial.println(ssid);                   // print the network name (SSID);     // Connect to WPA/WPA2 network. Change this line if using open or WEP network:        status = WiFi.begin(ssid, pass);     // wait 10 seconds for connection:     delay(10000);   }   server.begin();                           // start the web server on port 80   printWifiStatus();                        // you're connected now, so print out the status   } }   void loop() {   //Start our main Arduino Loop   enableRFID();   //Enable the RFID card   getRFIDTag();   //Reads the tag   if(isCodeValid()) {  //Validates that the tag is good     disableRFID();  //Puts the RFID reader in to low power mode     sendCode();     //Sends the code read to the serial port     delay(ITERATION_LENGTH);  //Debounce?   } else {     disableRFID();  //Got a incomplete code..   }   Serial.flush();   clearCode();       WiFiClient client = server.available();   // listen for incoming clients   if (client) {                             // if you get a client,     Serial.println("new client");           // print a message out the serial port     String currentLine = "";                // make a String to hold incoming data from the client     while (client.connected()) {            // loop while the client's connected       if (client.available()) {             // if there's bytes to read from the client,         char c = client.read();             // read a byte, then         Serial.write(c);                    // print it out the serial monitor         if (c == '\n') {                    // if the byte is a newline character           // if the current line is blank, you got two newline characters in a row.           // that's the end of the client HTTP request, so send a response:           if (currentLine.length() == 0) {              // HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK)             // and a content-type so the client knows what's coming, then a blank line:                client.println("HTTP/1.1 200 OK");             client.println("Content-type:text/html");             client.println();                         client.println("");             client.println("");             client.println("Remote Security Solutions");             client.println("");                                     client.println("");             client.println("");                         client.println("");             client.println("");             client.println("Remote Door Control");             client.println("");             client.println("ATTENTION!!! SOMEONE IS TRYING TO ACCESS A SECURED DOOR!!!");                                                             // the content of the HTTP response follows the header:             client.println("");             client.print("PLEASE CHOOSE FROM ONE OF THE FOLLOWING OPTIONS BELOW.");             client.print("Unlock The Door:");             client.print("");             client.print("");             client.print("");             client.print("Lock The Door:");             client.print("");             client.print("");             client.print("");             client.print("Sound The Alarm:");             client.print("");             client.print("");             client.print("");                                               // The HTTP response ends with another blank line:             client.println();             // break out of the while loop:             break;                   }           else {      // if you got a newline, then clear currentLine:             currentLine = "";           }         }             else if (c != '\r') {    // if you got anything else but a carriage return character,           currentLine += c;      // add it to the end of the currentLine         }                 if (currentLine.endsWith("GET /1")) {           digitalWrite(ipCam, HIGH);                       }         if (currentLine.endsWith("GET /2")) {           digitalWrite(ipCam, LOW);                        }          if (currentLine.endsWith("GET /3")) {           digitalWrite(doorLock, HIGH);                       }         if (currentLine.endsWith("GET /4")) {           digitalWrite(doorLock, LOW);                       }          if (currentLine.endsWith("GET /5")) {           digitalWrite(alarm, HIGH);                       }         if (currentLine.endsWith("GET /6")) {           digitalWrite(alarm, LOW);                        }                        }     }     // close the connection:     client.stop();     Serial.println("client disonnected");   } }   /**  * Clears out the memory space for the tag to 0s.  */ void clearCode() {   for(int i=0; i     tag[i] = 0;   } }   /**  * Sends the tag to the computer.  */ void sendCode() {   //This is where I would add a return value (the code) to "validiate" or whatever at.     Serial.print("Valid Card ID Scanned:");      char full_tag[10];     for(int i=0; i       if (i == 9)  //Edits by riley porter         Serial.println(tag[i]);  //This checks to see if its the last byte       else                       //If it is it will print a "new line" so that the codes to jumble together         Serial.print(tag[i]);         } }   /**************************************************************/ /********************   RFID Functions  ***********************/ /**************************************************************/   void enableRFID() {    digitalWrite(RFID_ENABLE, LOW);    digitalWrite(validCardled, HIGH); }   void disableRFID() {    digitalWrite(RFID_ENABLE, HIGH); }   /**  * Blocking function, waits for and gets the RFID tag.  */ void getRFIDTag() {      byte next_byte;   while(Serial.available() <= 0) {}   if((next_byte = Serial.read()) == START_BYTE) {          byte bytesread = 0;     while(bytesread < CODE_LEN) {       if(Serial.available() > 0) { //wait for the next byte           if((next_byte = Serial.read()) == STOP_BYTE) break;                 tag[bytesread++] = next_byte;       digitalWrite(readLed, HIGH);       delay(25);       digitalWrite(validCardled, HIGH);       delay(25);       digitalWrite(invalidCardled, HIGH);       delay(25);       digitalWrite(readLed, LOW);       delay(25);       digitalWrite(validCardled, LOW);       delay(25);       digitalWrite(invalidCardled, LOW);       delay(25);       digitalWrite(validCardled, HIGH);       delay(25);       digitalWrite(validCardled, LOW);       delay(25);       digitalWrite(readLed, HIGH);           }     }                  }    }   /**  * Waits for the next incoming tag to see if it matches  * the current tag.  */ boolean isCodeValid() {   byte next_byte;   int count = 0;   while (Serial.available() < 2) {  //there is already a STOP_BYTE in buffer     delay(1); //probably not a very pure millisecond     if(count++ > VALIDATE_LENGTH) return false;   }   Serial.read(); //throw away extra STOP_BYTE   if ((next_byte = Serial.read()) == START_BYTE) {      byte bytes_read = 0;     while (bytes_read < CODE_LEN) {       if (Serial.available() > 0) { //wait for the next byte                if ((next_byte = Serial.read()) == STOP_BYTE) break;           if (tag[bytes_read++] != next_byte) return false;          digitalWrite(invalidCardled, HIGH);          delay(10);          digitalWrite(invalidCardled, LOW);                       }     }                  }   return true;     }   void printWifiStatus() {   // print the SSID of the network you're attached to:   Serial.print("SSID: ");   Serial.println(WiFi.SSID());   // print your WiFi shield's IP address:   IPAddress ip = WiFi.localIP();   Serial.print("IP Address: ");   Serial.println(ip);   // print the received signal strength:   long rssi = WiFi.RSSI();   Serial.print("signal strength (RSSI):");   Serial.print(rssi);   Serial.println(" dBm");   // print where to go in a browser:   Serial.print("To see this page in action, open a browser to http://");   Serial.println(ip); }

Topic by lonto81   |  last reply


I need some expert mac help!!

Okay, I got a bit of a story, and a bit of a question (Las Vegas, I know you can help me). I've been transfered to a new highschool (not that new to me, I've been to it before) and I've been there for about 3 weeks now. I was given a thinkpad R51 by the school board while I was out of school to use for school work and to take to school. That's all fine and dandy, but the restrictions on their disc image are unbelievable and it makes it next to useless to me other than a gigantic calculator with a shitty battery life. So I wiped it of course, repartitioned it with a 30 and 10 gig partition (respectivly both NTFS, the backup partition, the 10 gig one, is currently in fat32 as I forgot macs can't write to NTFS). So everything works fine, when I got transfered to the school, I asked the so-called "head" techy teacher person of my school for the wep key for the wireless network in my school so I can print my work out in class instead of waiting till I got home (teachers don't like that sometimes). Since I've been to school he's made up excuses like "I know I have the wep key wrote down somewhere, but I know it'll take me like an hour to find it so I can't right now - I've been told that on 4 different occasions on 4 different days. Funny thing is that both he and I know that their wireless isn't actually pure wep mode. It's a wpa enterprise mode of some sort with a required username/password combination to log into it (that's fine though, it'll still work if I have the password). Oh yeah I forgot how I took my ibook to school one day, then the next day (no not the day I was showing him my ibook) he tells me that the wireless will work on my ibook, but not the thinkpad, which, like every other fucking laptop in the school, is a model R51 type 1829 with the odd old R40 laying around. It's excuses after excuses, my mother wanted to call in and give them hell for leading me around but I told her no, I'm curious to see how dumb this teacher thinks I am (and so far I've been playing dumb). NOW he tells me that I need to now, re-image my thinkpad with their school disc image they use on their machines, which I don't have to agree to doing because the laptop didn't come from this school and so it's not theirs. There was absolutely no reason it would not work as I even used the exact same wifi drivers/software and even the same profile management software they use on theirs. Now, I'm almost done but let me explain the last bit of why I'm even posting this lenghty (and possibly waste of time) post. I recently re-reformated as somehow I contracted a nasty trojan downloader onto it, and it was due for a clean up anyways. Well wasn't that a rough ride, since the reinstall I've had to wrestle a video driver onto it, fiddle around with all the other drivers to get them installed, and I still can't get a wifi driver to install. Even if I force install one from the "manual" option when XP asks for drivers (yes XP does have generic Intel Wifi lan drivers for my card) and it wouldn't go, just gave me an error 10 code (device cannot startup). Okay, so the driver isn't compatible? Well Lenovo only has 3 different wifi driver packages for different wifi internal cards for my "one" model/type of laptop (the type "1829" is lenovo's numbering system basically for revisions, and when I went on their site for drivers, it askes me for this, model, and a specific 3 digit number on the bottom (order code I think). So why it can't just tell me the specific card in my revision (as I'm sure there's probably only one card for my revision) is beyond me. I downloaded all three, the first two were just small driver/utility packages (I think they were only 802b drivers too, at least one of them was). When I tried to install them, no luck, first appeared to install it, although the drivers never installed apparently. So I uninstalled what (still) there, and tried the second, same thing, except nothing installed, but it appeared to install. So I went on to the last one, it appeared to be succesful. Not, for some reason, windows could list me all the ap's around here, but couldn't connect to them, or mine, and I know I put the right key in. And when I tried to use Ibm's utilites to connect, it kept crashing, and it was even crashing the wireless zero config windows service thing every time I tried to power on the wifi or such. However I don't even care about windows right now at this particular time or fixing the drivers, for all I know there was a scratch on the install cd and it's botched (very unlikely as I know the install would halt and say it can't read) Now because my teacher has been literally screwing around with me (I'm not assuming here that he's lying to me and making excuses, I know he is because it's just too obvious, you guys tell me). Plan? Install mac os x on the thinkpad and ask him again if it'll work and if he says no, I will probably rip him a new asshole right there on the spot, seeing as he's told me multiple times it will work on my mac, but not the thinkpad, so if I have mac software on there, shouldn't be a problem (hehe). I really want to do this to get back at my teacher because he doesn't believe anything I tell him and he thinks he's pretty smart, just generally another guy with a too-big ego for one person to handle. I downloaded the iAtkos disc image as directed by instructions I found through google (yes, torrent, illegal, don't harp on me for it, jobs makes enough as it is with ipod sales). It's supposed to be pre-patched, and also supposed to include additional driver packages of some kind (that's a plus). And to boot, it's supposed to boot off the dvd (lawl) without any tricks (like usb drives and that smutz). It all seems pretty sweet, and it did boot when I popped it in, but It went to the mac loading screen (the white one with the grey spiny thing) and just sits there with absolutely no activity. I booted it with the -v/-s command(s) and this is what comes up when it stops loading and sits: "Extension "com.apple.driver.ACPI_SMC_PlatformPlugin" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style." My understanding is that the plist file might be missing some components the driver is calling for, but the "use only one style" part doesn't make sense so I know it's something else. Although it didn't say, I presume the kernal was already patched as it was supposed to be a pure pop-in-and-go image. I was hoping to try installing the EFI patch after too if I can get it going in the first place. And yes, I did quite a bit of googleing before I came to here. I could find information on R40's with mac os x installed on them (or was it x40?, I know those are newer, the r40's are old) and other models inbetween but nothing on thinkpad. I don't even care if it's fast or works 100%, I just want to do it, I do also know that the atheros chipset in my wifi card is native compatible with tiger apparently and should show up as a standard airport card. I don't know if I'll be amazed or not when I post this finally and see how many pages long it is, but I do really need a hand, because this will be the final step before I go to the VP and tell him that this guy has been screwing around with me and blowing me off. I deserve and education dammit!

Topic by Punkguyta   |  last reply