NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2005   #1 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Generate Graphs from summary files, using PHP

UPDATE:

Images of what this script creates when its done:
http://icefreez.com/files/pictures/G...iechan.php.gif
http://icefreez.com/files/pictures/G...vendor.php.gif
http://icefreez.com/files/pictures/G...piewep.php.gif

Release 2:
Got a new update
I need some feedback though Post what you think of the script please

Download Summary Stats Version 2

NEW:

Added Channels pie chart

Added WEP vs NO WEP pie chart

Added ability to set a GPS grid to get your results from.

More info posted here

Release 1:
Currently it does just creates a customizable pie chart of the venders for all the AP's you output into a Net Stumbler Summary file. (I will add more graphs and information over time)

Download Package 1 of Summary file to Vendor Pie Chart Script

Don't forget you need a server capable of PHP and a mySQL database set up for this script to work.

----------------------------Original post-------------------------
I am working on a project to generate interesting information about NS Summary files.

I want to be able to see things like How many AP's have WEP VS no WEP, how many AP's are on what channels, What is the percentage of my AP's are Cisco routers.

Some of this stuff NS can do, but it lists it out for you not numbers it and percents it.

I will post the files here when I have completed them, but the reason I posted is to ask if anyone else has some ideas on what kind of stats might be interesting to generate.

Script currently requires (PHP Server, 1 mySQL database)

Last edited by icefreez : 02-28-2005 at 09:22 PM.
icefreez is offline   Reply With Quote
Old 02-15-2005   #2 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,837
Quote:
Originally Posted by icefreez
I am working on a project to generate interesting information about NS Summary files.

I want to be able to see things like How many AP's have WEP VS no WEP, how many AP's are on what channels, What is the percentage of my AP's are Cisco routers.

Some of this stuff NS can do, but it lists it out for you not numbers it and percents it.

I will post the files here when I have completed them, but the reason I posted is to ask if anyone else has some ideas on what kind of stats might be interesting to generate.

Script currently requires (PHP Server, 1 mySQL database)
You mean stats like this?

Database Size 3.29mb
Total Entries: 8125
Data Files 116
Default SSID's 4456
Unique SSID's 2887
Single Hits 3336
Multiple Hits 4789
Infrastructure 7716 94.97%
Ad-Hoc: 409 5.03%
Open Points: 5896 72.57%
Closed Points: 2229 27.43%
802.11b: 5658 69.64%
802.11g: 2467 30.36%
Channel 01: 606 7.46%
Channel 02: 80 0.98%
Channel 03: 138 1.70%
Channel 04: 61 0.75%
Channel 05: 70 0.86%
Channel 06: 4275 52.62%
Channel 07: 86 1.06%
Channel 08: 72 0.89%
Channel 09: 99 1.22%
Channel 10: 372 4.58%
Channel 11: 1668 20.53%
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-15-2005   #3 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Yes

Hopefully there is not already a script out that does that :P If there is I will probably still develope my script taylored to my wants though

Right now I play on having the info displayed like this:

VENDORS:
Linksys: 45 (40%)
NetGear 30 (34%)
Cisco 3 (2%)

(MAYBE PUT PIE CHART HERE, maybe)

Channel 1: 4%
Channel 2: 20%
Channel 3: 6%
Channel 4: 7%
Channel 5: 3%
Channel 6: 50%
icefreez is offline   Reply With Quote
Old 02-15-2005   #4 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,837
Those stats are generated from my own script that I wrote for my own website here I keep all my own personal wardriving info.

It really isn't hard to do what you want to do. Just need to know how to enter data into a database and then tabulate it.
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-15-2005   #5 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Ya it hasn't been to hard to do. The hardest thing I had to do was parse the oui.txt file to strip out the vender names and mac address beginnings.

BTW whats the address to your script? I didn't see a link to it off your site and im curious to see what it looks like.
icefreez is offline   Reply With Quote
Old 02-15-2005   #6 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,837
Quote:
Originally Posted by icefreez
Ya it hasn't been to hard to do. The hardest thing I had to do was parse the oui.txt file to strip out the vender names and mac address beginnings.

BTW whats the address to your script? I didn't see a link to it off your site and im curious to see what it looks like.
Ya shoulda asked, I already have it parsed out to an XLS and in an Access Database.
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-16-2005   #7 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Ok I'm having a bit of a problem parsing the mac address's out of the summary file. It works fine untill i hit an entry with no address like this.

N 43.9791333 W 96.8158483 ( ) BSS ( 00:02:2d:a5:94:6c ) 03:13:15 (GMT) [ 25 74 49 ] # ( ) 0011 00000040 100 110 6

I am currrently doing this to the file

$fcontents = file ('./sum2.txt'); // File name of stumble summary


for($i=1; $i<sizeof($fcontents); $i++) // Cycles though each line of the code
{
$line = trim($fcontents[$i]);
$line = explode("\t", $line); // Strips up line by Tabs


any tips on how to overcome this?
icefreez is offline   Reply With Quote
Old 02-16-2005   #8 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,837
Do you mean no SSID?

In my script which was done in Vbscript, if the SSID is blank then I just have it set the SSID to "NO BROADCAST" which then gets entered in to my database that way.
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-16-2005   #9 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Id 10 T

LOL ya umm... sorry :P it was an ID 10 T error :P

I axidently corrupted the tab structure in my test file. So big supprise that tab parsing wasn't working right :P

Everything is working again now.
Close to getting beta 1 of the script up
icefreez is offline   Reply With Quote
Old 02-17-2005   #10 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Well I got my pie chart of my brand names working, but the php pie chart function I am using tends to glitch after a certain number of divisions

http://icefreez.com/temp/statscript/stats.php

I will keep working on it. If anyone is intested in the source I will post it, but if not I will wait till I perfect it a bit more.
icefreez is offline   Reply With Quote
Old 02-17-2005   #11 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,837
Quote:
Originally Posted by icefreez
Well I got my pie chart of my brand names working, but the php pie chart function I am using tends to glitch after a certain number of divisions

http://icefreez.com/temp/statscript/stats.php

I will keep working on it. If anyone is intested in the source I will post it, but if not I will wait till I perfect it a bit more.
that's exactly why I never bothered with pie charts on my system. Once you have large amounts of data, the chart is meaningless. Probably the only data that would be worth charting would be channel distribution, Open/closed Ap's and Ad-Hoc/Infrastructure modes. Charting SSID's and vendors you're goin to have a pie chart with hundreds and thousands of slices.
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-17-2005   #12 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Ahh I just got an idea. I could set a minimum percentage, so only the top 4 or 5 are listed and the rest are dropped into a Other category

EDIT: Now I fixed it to have a min number for a company to be displayed Looks nice now

http://icefreez.com/temp/statscript/stats.php

Last edited by icefreez : 02-17-2005 at 09:28 AM.
icefreez is offline   Reply With Quote
Old 02-17-2005   #13 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,837
Quote:
Originally Posted by icefreez
Ahh I just got an idea. I could set a minimum percentage, so only the top 4 or 5 are listed and the rest are dropped into a Other category
There ya go, now you're cooking with gas.
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-17-2005   #14 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Finally

Ok finally here is my first release of this script. I am pretty happy with how it performs.

Currently it does just creates a customizable pie chart of the venders for all the AP's you output into a Net Stumbler Summary file. (I will add more graphs and information over time)

Download Package 1 of Summary file to Vendor Pie Chart Script

Don't forget you need a server capable of PHP and a mySQL database set up for this script to work.

Please report any bugs you notice.

Last edited by icefreez : 02-19-2005 at 04:35 PM.
icefreez is offline   Reply With Quote
Old 02-19-2005   #15 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
I have been having abit of trouble getting the pie chart function to display correctly everytime. It seems that every once in a while the function is not able to draw a certain section and ends up coloring the background as well as the section its supposed to.

This function is a bit to advanced for me to assess the problem, and I was wondering if anyone could spot any potential problems with or, or just refer me to different pie chart functions they know of.

I also am modifying my script to now allow you to get statistics from a certain GPS square grid This should be intesting to see how various parts of your data compair to other parts of your data
Attached Files
File Type: zip pie2inc.zip (3.3 KB, 21 views)

Last edited by icefreez : 02-19-2005 at 03:01 PM.
icefreez is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 11:00 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.