Skip to content

Commit

Permalink
Version 1.6 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
samdenty committed Jul 27, 2017
1 parent 98773ae commit 80d31d0
Show file tree
Hide file tree
Showing 13 changed files with 256 additions and 151 deletions.
Binary file modified arduino/Wi-PWN/Wi-PWN.ino.nodemcu.bin
Binary file not shown.
24 changes: 12 additions & 12 deletions arduino/Wi-PWN/data.h

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web_server/html/ClientScan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
1 change: 1 addition & 0 deletions web_server/html/ClientScanTime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
15
2 changes: 1 addition & 1 deletion web_server/html/attack.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="row">
<div class="col-6">
<div class="input-container">
<input placeholder=" " type="number" required="" id="num" min="0" max="48" value="1">
<input placeholder=" " type="number" required="" id="num" min="0" max="48" value="48">
<label for="num">Number of clones</label>
</div>
</div>
Expand Down
102 changes: 59 additions & 43 deletions web_server/html/dark.css
Original file line number Diff line number Diff line change
@@ -1,138 +1,154 @@
#logo-img {
background: none;
background: none
}
#nav {
background: #1b1b21;
background: #1b1b21
}
body {
color: #fff;
background: #28282e !important;
background: #28282e !important
}
nav .main-header {
background: #1b1b21 !important;
background: #1b1b21 !important
}
button, .reboot {
background: #61616f;
background: #61616f
}
button:hover, .reboot:hover {
background: #6c6c79;
background: #6c6c79
}
.secondary, .card-action a {
color: #bfbfbf !important;
color: #bfbfbf !important
}
.secondary:hover, .card-action a:hover {
color: #e4e4e4 !important;
color: #e4e4e4 !important
}
.secondary:hover {
background: rgba(255, 255, 255, .1);
background: rgba(255, 255, 255, .1)
}
*, .input-container label {
color: #dadada;
color: #dadada
}
.settingsHeader, .settingsHeader *, .main-wrap, .WiFi span, td, th, .input-container input:valid + label, .input-container input:invalid:not(:placeholder-shown) + label, .input-container input:focus + label {
color: #dadada !important;
color: #dadada
}
#apMAC {
background: rgba(255, 255, 255, .1);
background: rgba(255, 255, 255, .1)
}
.card, .card-small {
background: #37373d;
background: #37373d
}
.WiFi svg {
fill: #fff;
fill: #fff
}
.WiFi span:nth-child(1) {
box-shadow: inset 0 0 15px rgba(0, 0, 0, .15), 0 0 4px rgba(0,0,0,.15)
}
.WiFi span:nth-child(2) {
-webkit-filter: none;
filter: none;
opacity: 1;
text-shadow: 0px 0px 7px rgba(0,0,0,.5);
font-weight: 400
}
label.checkbox {
border-color: #e1e1e1;
border-color: #e1e1e1
}
input[type='checkbox']:checked + label {
border-color: #8b8b92;
background: #8b8b92;
background: #8b8b92
}
#spinner-container {
background: #3e3e3e;
background: #3e3e3e
}
.edit {
color: #dadada;
color: #dadada
}
.edit svg {
fill: #dadada;
fill: #dadada
}
.input-container input:placeholder-shown {
border-color: #dadada;
border-color: #dadada
}
.input-container input:focus {
border-color: #fff !important;
border-color: #fff !important
}
footer {
background: #2a2a31;
background: #2a2a31
}
h1 {
color: rgba(255, 255, 255, .66);
color: rgba(255, 255, 255, .66)
}
a {
color: #8aa0d4;
color: #8aa0d4
}
:root {
--theme-color: #1b1b21;
--theme-color: #1b1b21
}
@media (min-width:520px) {
::-webkit-scrollbar {
width: 14px;
background-color: #1d1d23;
background-color: #1d1d23
}
::-webkit-scrollbar-thumb {
background-color: #4b4b54;
background-color: #4b4b54
}
::-webkit-scrollbar-thumb:hover {
background-color: #51515a;
background-color: #51515a
}
::-webkit-scrollbar-thumb:active, ::-webkit-scrollbar-thumb:disabled {
background-color: #393942;
background-color: #393942
}
::-webkit-scrollbar-button {
display: none;
width: 0;
height: 0;
height: 0
}
::-webkit-scrollbar-corner {
background-color: transparent;
background-color: transparent
}
}
.input-container input:valid, .input-container input:placeholder-shown, .input-container input:invalid:focus {
border-bottom: 2px solid #47474e !important;
border-bottom: 2px solid #47474e !important
}
nav #links a.active::before {
background: #dadada;
background: #dadada
}
.green {
color: #4caf50 !important;
color: #4caf50 !important
}
.red {
color: #f5716e !important;
color: #f5716e !important
}
.s-s {
background: #709bbd;
background: #709bbd
}
.s-s .row * {
color: #d5edff;
color: #d5edff
}
hr {
border: 1px solid rgba(0, 0, 0, .1);
border: 1px solid rgba(0, 0, 0, .1)
}
#notification {
background: #61616f;
background: #61616f
}
.glitch {
color: red !important;
color: red !important
}
.glitch:after {
color: red !important;
background: #37373D !important;
text-shadow: -4px 0 green !important;
text-shadow: -4px 0 green !important
}

.glitch:before {
color: red !important;
background: #37373D !important;
text-shadow: 4px 0 blue !important;
text-shadow: 4px 0 blue !important
}
.samddAttrib span {
color: #ffdccc !important
}
.samddAttrib span a {
font-weight: bold;
color: #ffbea1 !important
}
19 changes: 12 additions & 7 deletions web_server/html/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,25 @@
<br>
<br>
<b>This software is intended for trained professionals!</b>
<br>It can perform deauth attacks on unprotected <i>802.11</i> Wi-Fi networks, <i>which could be perceived as using an illegal 'Wi-Fi Jammer'.</i>
<hr> Wi-PWN is updated and maintained by:
<br>
<b style="font-size: 1.1em">
<a href="https://samdenty99.github.io/about" target="_blank">@samdenty99</a> (Sam Denty)</b>
<br>
<br>It can perform deauth attacks on unprotected <i>802.11</i> Wi-Fi networks, <i>which could be perceived as using an illegal 'Wi-Fi Jammer'.</i><hr>
<a class="samddAttrib" href="https://samdenty99.github.io/about" target="_blank">
<span>Wi-PWN was designed by <b>samdd design</b>:</span>
<br>
<p>
<button>@samdenty99</button> (Sam Denty)
</p>
</a>
</div>
<div class="card-action">
<a href="https://samdenty99.github.io/r?report-bug-wi-pwn" target="blank_">Report bug</a><a href="https://samdenty99.github.io/projects" class="right" target="blank_">Other projects</a>
</div>
</div>
</div>
<div class="card-container">
<div class="settingsHeader">Contributors</div>
<div class="card">
<div class="card-content">
<a href="https://github.com/spacehuhn/esp8266_deauther"><b>@spacehuhn</a> (Stefan Kremser)</b>
<a href="https://github.com/spacehuhn/esp8266_deauther"><b>@spacehuhn</b></a> (Stefan Kremser)
<br>
<a href="https://github.com/N0vaPixel" target="_blank">@N0vaPixel</a> (Aur&eacute;lien Hernandez)
<br>
Expand Down
2 changes: 1 addition & 1 deletion web_server/html/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function vibrate() {
document.getElementsByTagName('head')[0].appendChild(link);

/* Dynamically add footer */
document.getElementsByTagName("footer")[0].innerHTML = "<div class=footer><ul><li><a href=https://github.com/samdenty99/Wi-PWN target=blank_ style=color:#fff;font-weight:400><b>Wi-PWN</b> &copy; 2017</a><li><a href=https://github.com/samdenty99/Wi-PWN target=blank_>GitHub</a><li><a href=https://github.com/Wi-PWN/Wi-PWN/blob/master/README.md target=blank_>Documentation</a></ul></div><a href=https://samdenty99.github.io/about target=blank_ class=sub-section-attribution>Designed by Sam Denty - @samdenty99</a>";
document.getElementsByTagName("footer")[0].innerHTML = "<div class=footer><ul><li><a href=https://samdenty99.github.io/r?https://github.com/samdenty99/Wi-PWN target=blank_ style=color:#fff;font-weight:400><b>Wi-PWN</b> &copy; 2017</a><li><a href=https://samdenty99.github.io/r?https://github.com/samdenty99/Wi-PWN target=blank_>GitHub</a><li><a href=https://samdenty99.github.io/r?https://discord.gg/X2NjhYK target=blank_>Discord</a><li><a href=https://samdenty99.github.io/r?https://github.com/samdenty99/Wi-PWN/wiki target=blank_>Guide</a></ul></div><a href=https://samdenty99.github.io/about target=blank_ class=sub-section-attribution>Designed by Sam Denty - @samdenty99</a>";

/* Dynamically add spinner */
document.getElementById("spinner-container").innerHTML = "<svg class=spinner viewBox='0 0 66 66'><circle class=path cx=33 cy=33 fill=none r=30 stroke-linecap=round stroke-width=6></circle></svg> <svg class=success-svg viewBox='0 0 1000 1000'><path d=M908.3,132.5L336.7,704.2l-245-245L10,540.8l326.7,326.7l81.7-81.7L990,214.2L908.3,132.5z /></svg> <svg class=failed-svg viewBox='0 0 19 19'><line stroke-width=2 x1=1 x2=18 y1=1 y2=18></line><line stroke-width=2 x1=18 x2=1 y1=1 y2=18></line></svg>"
Expand Down
25 changes: 24 additions & 1 deletion web_server/html/js/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,29 @@ function getResults() {
}

var signalPercent = Math.round((1-((res.aps[i].r+30)/-70))*100);
tr += '<td class="WiFi"><div>' + eval(wifiIndicator) + '</div><div><span style="background:linear-gradient(135deg, rgba(0,0,0,0.3) '+signalPercent+'%,rgba(0,0,0,0.07) '+signalPercent+'%)"></span><span>' + res.aps[i].r + '</span></div></td>';
if (i == 0) {var tdID = ' id="resizeEventTD"'} else {var tdID = ''}
tr += '<td class="WiFi"'+tdID+'><div>' + eval(wifiIndicator) + '</div><div><span style="background:linear-gradient(135deg, '+getColor(signalPercent)+' '+signalPercent+'%,rgba(0,0,0,0.15) '+signalPercent+'%)"></span><span style="color:'+getColor(signalPercent, true)+'">' + res.aps[i].r + '</span></div></td>';
tr += '<td>' + res.aps[i].ss + '</td>';
tr += '<td>' + getEncryption(res.aps[i].e) + '</td>';
tr += '<td>' + res.aps[i].c + '</td>';
tr += '</tr>';
}
table.innerHTML = tr;
checkSize()
});
}

function getColor(value, lighten){
var lightness = 50;
var saturation = 75;
if (lighten == true) lightness = 90
if (value > 120) value = 100
if (value > 90) saturation = 60;
value = 100 - value;
var hue=((1-(value/87))*100).toString(10);
return ["hsl(",hue,","+saturation+"%,"+lightness+"%)"].join("");
}

function scan() {
toggleScan(false);
getResponse("APScan.json", function(responseText) {
Expand Down Expand Up @@ -108,5 +121,15 @@ function selAll() {
}
}

window.onresize = function(event){checkSize()}

function checkSize() {
var w = document.getElementById('resizeEventTD').clientWidth;
if (w <= 99) {
document.getElementById('apscan').className = 'pointUp'
} else {
document.getElementById('apscan').className = ''
}
}

getResults();

0 comments on commit 80d31d0

Please sign in to comment.