/
home.php
211 lines (162 loc) · 5.56 KB
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php
include_once "config.php";
$ClassDbObj = new ClassDb();
$csvFile = 'csvfile/data.csv';
$csv = $ClassDbObj->readCSV($csvFile);
//echo '<pre>';
//print_r($csv);
//echo '</pre>';die;
$num = count($csv);
//print_r(array_count_values($num));
?>
<style>
#networks
{
background-color:rgb(26, 188, 156);
}
.menu #networks a:hover
{
color:white !important;
}
</style>
<div class="row">
<div class="col-md-12">
<div class="col-md-6">
</div>
<div class="col-md-6">
<div class="div_right">
<p class="para">Total:<?php echo $num; ?></p>
<!--<div class="icon2 b_r icons_hover">
<h5 class="probed"><i class="fa fa-filter probed_icon"></i> Probed SSIDs</h5>
</div>-->
<div class="icon1 b_r icons_hover">
<a id="icon1_show" href="#" onClick="showbox()" style="color:white;"><i class="fa fa-edit pd_left"></i></a>
<a id="icon1_hide" href="#" onClick="hidebox();" style="display:none; color:white;"><i class="fa fa-edit pd_left"></i></a>
</div>
<!--<div class="icon1 b_r icons_hover">
<i class="fa fa-trash pd_left"></i>
</div>
<div class="icon1 b_r icons_hover">
<i class="fa fa-file pd_left"></i>
</div>-->
<!--<div class="icon1 b_r icons_hover">
<i class="fa fa-camera pd_left"></i>
</div>-->
</div>
</div>
</div>
</div>
<div id="edit_box_1" class="edit-box">
<input type="checkbox" value="ESSID" checked onChange="checkbx('check1',this);"> ESSID
<br/>
<input type="checkbox" value="BSSID" checked onChange="checkbx('check2',this);"> BSSID
<br/>
<input type="checkbox" value="channel" checked onChange="checkbx('check3',this);"> Channel
<br/>
<input type="checkbox" value="Privacy" checked onChange="checkbx('check4',this);"> Privacy
<br/>
<input type="checkbox" value="Cipher" checked onChange="checkbx('check5',this);"> Cipher
<br/>
<input type="checkbox" value="Authentication" checked onChange="checkbx('check6',this);"> Authentication
<br/>
<input type="checkbox" value="Packets" checked onChange="checkbx('check7',this);"> Packets
<br/>
<input type="checkbox" value="Signals" checked onChange="checkbx('check8',this);"> Signals
<br/>
<input type="checkbox" value="Clients" checked onChange="checkbx('check9',this);"> Clients
<br/>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-border table-response">
<div class="table-responsive">
<table id="table-striped" class="table table-bordered table-hover table-striped">
<tr>
<td>
<table class="table table-bordered table-hover" id="table_heading">
<!--<thead>-->
<tr>
<th class="check1 shadow"><i class="fa fa-filter filter_icon"></i> ESSID</th>
<th class="check2 shadow"><i class="fa fa-filter filter_icon"></i> BSSID</th>
<!--<th>First time seen</th>
<th>Last time seen</th>-->
<th class="check3 shadow" style="width:8%;"><i class="fa fa-filter filter_icon"></i> channel</th>
<!--<th>Speed</th>-->
<th class="check4 shadow"><i class="fa fa-filter filter_icon"></i> Privacy</th>
<th class="check5 shadow"><i class="fa fa-filter filter_icon"></i> Cipher</th>
<th class="check6 shadow"><i class="fa fa-filter filter_icon"></i> Authentication</th>
<th class="check7 shadow"><i class="fa fa-filter filter_icon"></i> Packets</th>
<th class="check8 shadow"><i class="fa fa-filter filter_icon"></i> Signal</th>
<!--<th>Power</th>
<th># beacons</th>
<th># IV</th>
<th>LAN IP</th>
<th>ID-length</th>
<th>Key</th>-->
</tr>
</table>
</td>
</tr>
<!--</thead>-->
<tr>
<td>
<div class="div_scroll">
<table class="table table-bordered table-hover" id="table_body">
<?php for ($c=2; $c < $num; $c++){?>
<tr>
<td class="check1"><?php echo isset($csv[$c][13])?$csv[$c][13]:'';?></td>
<td class="check2"><?php echo isset($csv[$c][0])?$csv[$c][0]:'';?></td>
<?php // echo isset($csv[$c][1])?$csv[$c][1]:'';?>
<?php //echo isset($csv[$c][2])?$csv[$c][2]:'';?>
<td class="check3"><?php echo isset($csv[$c][3])?$csv[$c][3]:'';?></td>
<?php //echo isset($csv[$c][4])?$csv[$c][4]:'';?>
<td class="check4"><?php echo isset($csv[$c][5])?$csv[$c][5]:'';?></td>
<td class="check5"><?php echo isset($csv[$c][6])?$csv[$c][6]:'';?></td>
<td class="check6"><?php echo isset($csv[$c][7])?$csv[$c][7]:'';?></td>
<?php // echo isset($csv[$c][8])?$csv[$c][8]:'';?>
<?php //echo isset($csv[$c][9])?$csv[$c][9]:'';?>
<td class="check7"><?php echo isset($csv[$c][10])?$csv[$c][10]:'';?></td>
<td class="check8"><?php echo isset($csv[$c][8])?$csv[$c][8]:'';?></td>
<?php //echo isset($csv[$c][11])?$csv[$c][11]:'';?>
<?php //echo isset($csv[$c][12])?$csv[$c][12]:'';?>
<?php //echo isset($csv[$c][14])?$csv[$c][14]:'';?>
</tr>
<?php }
?>
</table>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<!-- </div>-->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
function showbox()
{
jQuery("#edit_box_1").show().addClass("dis");
jQuery("#icon1_hide").show().addClass("dis");
jQuery("#icon1_show").hide().addClass("dis");
}
function hidebox()
{
jQuery("#edit_box_1").hide().addClass("dis");
jQuery("#icon1_hide").hide().addClass("dis");
jQuery("#icon1_show").show().addClass("dis");
}
function checkbx(cls,obj)
{
if(obj.checked)
{
jQuery("."+cls).show().addClass("dis");
}
else
{
jQuery("."+cls).hide().addClass("dis");
}
}
</script>