
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
complex-require
Advanced tools
说明
- 调用service进行axios请求,此请求不会进行本地化处理
参数
- optionData:object,设置项,参照axios文档
返回值
- ajax:Promise
说明
- 请求主函数,上传数据判断格式化,返回数据判断格式化
参数
- optionData:object,设置项,其他项参照axios文档
- optionData.url:string,请求地址
- optionData.method?:string,请求方式,默认为get
- optionData.params?:object,url(query参数)
- optionData.data?:object,body参数
- optionData.headers?:object,header参数
- optionData.token?:string | string[],token设置项,不传根据token设置自动进行所有token的获取,传递string | string[]根据string获取对应token
- optionData.responseType?:'arraybuffer', 'blob', 'document', 'json', 'text', 'stream',返回数据类型,仅返回json时对返回数据进行判断和格式化,默认值为json
- optionData.$dataType?:'json' | 'formdata',接口需要的数据类型,默认值为json
- optionData.$currentDataType?:'json' | 'formdata',当前data的数据类型,默认值为json
- optionData.responseFormat?:boolean,是否对返回数据进行分析和格式化,默认为true
- optionData.defaultOptionData?:object,默认参数重置method/$dataType/$currentDataType/responseType
返回值
- :Promise
说明
- get/require,defaultOptionData = { method: 'get' }
参数
- optionData:object,设置项
返回值
- :Promise
说明
- post/require,defaultOptionData = { method: 'post' }
参数
- optionData:object,设置项
返回值
- :Promise
说明
- post/require,defaultOptionData = { method: 'post', $dataType: 'formdata' }
参数
- optionData:object,设置项
返回值
- :Promise
说明
- post/require,defaultOptionData = { method: 'post', $dataType: 'formdata', $currentDataType: 'formdata' }
参数
- optionData:object,设置项
返回值
- :Promise
说明
- 设置token
参数
- tokenName:string,token名称
- data:any,token值
- prop:string,对应的rule.prop,默认为default
- noSave?:boolean,是否不进行保存到local操作
返回值
- :void
说明
- 获取指定token的值
参数
- tokenName:string,token名称
- prop:string,对应的rule.prop,默认为default
返回值
- tokenData:any
说明
- 删除token
参数
- tokenName:true | string,token名称
- prop:string,对应的rule.prop,默认为default
返回值
- isClear:boolean
说明
- 删除token
参数
- tokenName:true | string,token名称
- prop:string,对应的rule.prop,默认为default
返回值
- isDestroy:boolean
FAQs
a complex require
The npm package complex-require receives a total of 7 weekly downloads. As such, complex-require popularity was classified as not popular.
We found that complex-require demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.