Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.117.249.37
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
buffer-indexof /
Delete
Unzip
Name
Size
Permission
Date
Action
test
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
.travis.yml
61
B
-rw-r--r--
2016-09-01 12:44
LICENSE
1.05
KB
-rw-r--r--
2015-08-10 18:47
README.md
729
B
-rw-r--r--
2016-08-29 13:24
bm.js
1.1
KB
-rw-r--r--
2016-08-30 13:02
index.js
1.5
KB
-rw-r--r--
2016-09-01 13:32
package.json
1.33
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
//boyer-moore? module.exports = function bm(buf,search,offset){ var m = 0, j = 0 var table = [] var ret = -1; for(var i=offset||0;i<buf.length;++i){ console.log('i',i) table[i] = [[i,0]] if(buf[i] === search[0]) { for(j = search.length-1;j>0;--j){ table[i].push([i+j,j]) console.log('j',j) if(buf[i+j] !== search[j]) { //i += j j = -1 break } } if(j === 0) { ret = i break } } } console.log(table) renderTable(table,buf,search) return ret } var chalk = require('chalk') function renderTable(table,buf,search){ var s = '' console.log('-----') console.log('search:',search) console.log('-----') console.log(buf+'') table.forEach(function(a){ if(!a) return;// console.log('') a.forEach(function(v){ if(!v) return; var pad = '' while(pad.length < v[0]){ pad += ' ' } if(search[v[1]] === buf[v[0]]) console.log(pad+chalk.green(search[v[1]])) else console.log(pad+chalk.red(search[v[1]])) }) }) console.log('-----') }