From 62232f0ec70c5a91fe84d6702f1478ae7cb6159d Mon Sep 17 00:00:00 2001 From: ysandler Date: Tue, 12 Sep 2017 18:08:39 -0500 Subject: [PATCH] minified changes --- app.js | 2 +- index.html | 2 +- style.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 05a0289..9b7d708 100644 --- a/app.js +++ b/app.js @@ -1 +1 @@ -(function(a,b){'function'==typeof define&&'object'==typeof define.amd&&define.amd?define(function(){return b(a)}):'object'==typeof module&&module&&module.exports?module.exports=b(a):a.Levenshtein=b(a)})(this,function(){function b(g,h){var j,k;for(j=-1,k=g.length;++jc;c++)a+=b.charAt(Math.floor(Math.random()*b.length));return a}function formatIP(a){let b=a;return b=b.slice(0,2)+'.'+b.slice(2),b=b.slice(0,6)+'.'+b.slice(6),b=b.slice(0,9)+'.'+b.slice(9),b}function randomInRange(a,b,c){return 1*(Math.random()*(b-a)+a).toFixed(c)}function createEntryHTML(a){let{value:b,status:c,machineType:d,hostName:f,lastResponse:g,systemLocation:h}=a,j=formatIP(b),k=' '+formatIP(b)+' '+c+' '+f+' '+d+' '+g+'MS '+h.long+'_'+h.lat+' ';return k}function createEntryHTMLArray(a){let b=[];return a.forEach(function(c){b.push(createEntryHTML(c))},this),b}function createRandomName(){let a='',b='0123456789QWERTYUIOP_-ASDFGHJKLZXCVBNM';for(var c=0;10>c;c++)a+=b.charAt(Math.floor(Math.random()*b.length));return a}function createEntryArray(){let a=[];for(i=0;27>i;i++)a.push(new Entry);return a}function concatEntryHTMLArray(a){let b='';return a.forEach(function(c){b+=c},this),b}function renderEntries(a){document.getElementById('entry_table').innerHTML=a}function extractIpAddressFromElement(a){return ipAddress=a.getAttribute('data-ip-value'),ipAddress}function selectTargetIpAddress(a){let b=a[randomInRange(0,a.length-1,0)].value;return b}function compareIpAddress(a){let b=new Levenshtein(a,targetIpAddress),c=10-b.distance;return c}function beginRound(){document.getElementById('entry_table').innerHTML='',ipAttempts=[];let a=createEntryArray(),b=createEntryHTMLArray(a),c=concatEntryHTMLArray(b),d=document.getElementsByClassName('entry');targetIpAddress=selectTargetIpAddress(a),renderEntries(c),assignClickEvent(d),renderSuccessPrecentage(100*score/winScore),renderAttempts(),console.log(targetIpAddress)}function beginClicked(){let a=document.getElementById('messege');a.innerHTML='',a.className='hidden',timeInterval=setInterval(countDown,10),beginRound()}function assignClickEvent(a){for(i=0;iwinScore-1?gameWin():beginRound()}function wrongEntrySelected(a,b){let c=extractIpAddressFromElement(a);++lockoutHits,saveAttempt(c),renderAttempts(),console.log(c+' was incorrect. Tries left: '+(lockoutMax-lockoutHits)),console.log(b+' characters were correct. Try Again!')}function renderSuccessPrecentage(a){let b=document.getElementById('precentage');b.innerHTML=Math.floor(a)+'%'}function renderLockout(){let a=document.getElementById('lockout');for(a.innerHTML='',i=0;i X '}function saveAttempt(a){ipAttempts.push(a)}function renderAttempts(){let a=document.getElementById('attempts_table');a.innerHTML='',ipAttempts.forEach(function(b){a.innerHTML+=''+formatIP(b)+' '+compareIpAddress(b)+' similar chars'},this)}function renderEndGame(){document.getElementById('entry_table').innerHTML='';let a=document.getElementById('messege');a.innerHTML='

You have found her! It was not easy, but your diligence paid off. Continue to send an anonyms tip to the F.B.I.

',a.className=''}function checkStatus(){lockoutHits>=lockoutMax&&gameLose()}function gameLose(){let a=document.getElementsByClassName('entry');lose=!0,timerElement.innerHTML=0,clearInterval(timeInterval),Array.prototype.forEach.call(a,function(c){c.className='entry error'},this),setTimeout(function(){window.location.reload(!0)},4e3)}function gameWin(){let a=document.querySelector('[data-ip-value="'+targetIpAddress+'"]');win=!0,a.className='win',clearInterval(timeInterval),timerElement.innerHTML=0,renderEndGame(),console.log('Game Win')}function countDown(){0c;c++)a+=b.charAt(Math.floor(Math.random()*b.length));return a}function formatIP(a){let b=a;return b=b.slice(0,2)+'.'+b.slice(2),b=b.slice(0,6)+'.'+b.slice(6),b=b.slice(0,9)+'.'+b.slice(9),b}function randomInRange(a,b,c){return 1*(Math.random()*(b-a)+a).toFixed(c)}function createEntryHTML(a){let{value:b,status:c,machineType:d,hostName:f,lastResponse:g,systemLocation:h}=a,j=formatIP(b),k=' '+formatIP(b)+' '+c+' '+f+' '+d+' '+g+'MS '+h.long+'_'+h.lat+' ';return k}function createEntryHTMLArray(a){let b=[];return a.forEach(function(c){b.push(createEntryHTML(c))},this),b}function createRandomName(){let a='',b='0123456789QWERTYUIOP_-ASDFGHJKLZXCVBNM';for(var c=0;10>c;c++)a+=b.charAt(Math.floor(Math.random()*b.length));return a}function createEntryArray(){let a=[];for(i=0;iwinScore-1?gameWin():beginRound()}function wrongEntrySelected(a,b){let c=extractIpAddressFromElement(a);++lockoutHits,saveAttempt(c),renderAttempts(),console.log(c+' was incorrect. Tries left: '+(lockoutMax-lockoutHits)),console.log(b+' characters were correct. Try Again!')}function renderSuccessPrecentage(a){let b=document.getElementById('precentage');b.innerHTML=Math.floor(a)+'%'}function renderLockout(){let a=document.getElementById('lockout');for(a.innerHTML='',i=0;i X '}function saveAttempt(a){ipAttempts.push(a)}function renderAttempts(){let a=document.getElementById('attempts_table');a.innerHTML='',ipAttempts.forEach(function(b){a.innerHTML+=''+formatIP(b)+' '+compareIpAddress(b)+' similar chars'},this)}function renderEndGame(){document.getElementById('entry_table').innerHTML='';let a=document.getElementById('messege');a.innerHTML='

You have found her! It was not easy, but your diligence paid off. The data you have collected has been sent to the F.B.I. Please help actually fight human trafficking by donating to one of several private organizations or report tips to goverment agencies that do just that!

',a.className=''}function checkStatus(){lockoutHits>=lockoutMax&&gameLose()}function gameLose(){let a=document.getElementsByClassName('entry');lose=!0,timerElement.innerHTML=0,clearInterval(timeInterval),Array.prototype.forEach.call(a,function(c){c.className='entry error'},this),setTimeout(function(){window.location.reload(!0)},4e3)}function gameWin(){let a=document.querySelector('[data-ip-value="'+targetIpAddress+'"]');win=!0,a.className='win',clearInterval(timeInterval),timerElement.innerHTML=0,renderEndGame(),console.log('Game Win')}function countDown(){0Lost

DISPLAY REPORT

TRACKING SUCCESS:

QUERY: KATLYEN HICKS

BRUTE FORCE LOCKOUT:

TIME LOCKOUT: MS


Several months ago, your loved one Katlyen Hicks went missing. You have connections to several deep and dark web users. They have informed you that they have seen websites, known for human trafficking, that have posted advertisements with her picture. These websites are only accessible by using the T.O.R network. A network designed to mask origins of internet connections to keep communications hidden. Like any system, it has its weak points. These dark web user friends of yours have taught you secrets of the trade of computer hacking and tracking. You have now built a tool to help you narrow down the I.P. addresses of these website owners. The T.O.R. network masks its users by bouncing their signals all across the globe so much so that they are almost impossible to track. You however are able to pinpoint the different nodes and find the roots of the signals. Your tool will allow you to select IP addresses and determine if it is a node being used. This tool will let you know how accurate your choice is so you can make a more precise selection to further your tracking. You only have so long before you are locked out of the system's vulnerabilities and only have so many attempts to analyze I.P. addresses as well. Use this time appropriately! You will need to lock onto several signals to find the captor of your loved one. Happy Hunting!

IP ADDRESSACTIVEHOST_NAMEMACHINE_TYPELAST_RESPONCESYSTEM_LOCATION

ATTEMPTSSHARED CHARS
\ No newline at end of file +Lost

DISPLAY REPORT

TRACKING SUCCESS:

QUERY: KATLYEN HICKS

BRUTE FORCE LOCKOUT:

TIME LOCKOUT: MS


Several months ago, your loved one Katlyen Hicks went missing. You have connections to several deep and dark web users. They have informed you that they have seen websites, known for human trafficking, that have posted advertisements with her picture. These websites are only accessible by using the T.O.R network. A network designed to mask origins of internet connections to keep communications hidden. Like any system, it has its weak points. These dark web user friends of yours have taught you secrets of the trade of computer hacking and tracking. You have now built a tool to help you narrow down the I.P. addresses of these website owners. The T.O.R. network masks its users by bouncing their signals all across the globe so much so that they are almost impossible to track. You however are able to pinpoint the different nodes and find the roots of the signals. Your tool will allow you to select IP addresses and determine if it is a node being used. This tool will let you know how accurate your choice is so you can make a more precise selection to further your tracking. You only have so long before you are locked out of the system's vulnerabilities and only have so many attempts to analyze I.P. addresses as well. Use this time appropriately! You will need to lock onto several signals to find the captor of your loved one. Happy Hunting!

IP ADDRESSACTIVEHOST_NAMEMACHINE_TYPELAST_RESPONCESYSTEM_LOCATION

ATTEMPTSSHARED CHARS
\ No newline at end of file diff --git a/style.css b/style.css index 4c1430e..159fe58 100644 --- a/style.css +++ b/style.css @@ -1 +1 @@ -.screen,button{border-width:1px;border-color:#0F0;font-family:monospace;margin:30px auto}.screen,button:hover{color:#fff;background-color:#000}.column,.screen,td{overflow:hidden}.hidden{display:none}.screen{width:900px;min-height:800px;border-style:solid;border-radius:26px}#messege{height:560px;text-transform:uppercase;font-size:16px}button{padding:10px 25px;color:#000;background-color:#0F0;border-style:none none solid;border-radius:0;display:block}#title{text-align:center}.green{color:#0F0}.error{background-color:red;color:#fff}.win,.win :hover{background-color:#fff;color:#0F0}.score-wrapper{padding:5px}.score-wrapper h3{margin:0}.score-wrapper .left{float:left;width:50%;margin:0}.score-wrapper .right{float:right;width:50%;margin:0}.response-wrapper{padding-bottom:8px}td,th{padding:0 4px}hr{border-color:#0f0;margin:6px 0}table{width:900px;font-size:14px}th{text-align:left}.column-titles{margin-bottom:2px}#play-wrapper{padding:0 2px;margin:0}.column{padding:0 1px;margin:0}.address-choice{margin:0;padding:0}.address-choice span{overflow:hidden;display:inline-block}.entry:hover{color:#000;background-color:#0f0;cursor:pointer}.lockoutMark{display:inline} \ No newline at end of file +.screen,button{border-width:1px;border-color:#0F0;font-family:monospace;margin:30px auto}.screen,button:hover{color:#fff;background-color:#000}.column,.screen,td{overflow:hidden}.hidden{display:none}.screen{width:900px;height:720px;border-style:solid;border-radius:26px}#messege{height:426px;text-transform:uppercase;font-size:16px;word-break:break-all}button{padding:10px 25px;color:#000;background-color:#0F0;border-style:none none solid;border-radius:0;display:block}#title{text-align:center}.green{color:#0F0}.error{background-color:red;color:#fff}.win,.win :hover{background-color:#fff;color:#0F0}.score-wrapper{padding:5px}.score-wrapper h3{margin:0}.score-wrapper .left{float:left;width:50%;margin:0}.score-wrapper .right{float:right;width:50%;margin:0}.response-wrapper{padding-bottom:8px}td,th{padding:0 4px}hr{border-color:#0f0;margin:6px 0}table{width:900px;font-size:14px}th{text-align:left}.column-titles{margin-bottom:2px}#play-wrapper{padding:0 2px;margin:0}.column{padding:0 1px;margin:0}.address-choice{margin:0;padding:0}.address-choice span{overflow:hidden;display:inline-block}.entry:hover{color:#000;background-color:#0f0;cursor:pointer}.lockoutMark{display:inline;font-size:16px} \ No newline at end of file