
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
simple-novnc
Advanced tools
#安装
- npm install simple-novnc
import SimpleVNC from 'simple-novnc/src/index'
import 'simple-novnc/build/vnc.css'
下载中台服务提供的vnc插件包,直接在页面中引入相对资源路径
```
<script src="./js/simplevnc.min.js"></script>
<link rel="stylesheet" href="./css/simplevnc.css">
```
eg:在服务包的/dist/index.html,是一个基本的使用demo,你可以参考它
- Hmtl文件引入dom
```
<div class="vnc" id="noVNC_main">
<!-- top_bar info dom-->
<div id="top_bar">
<div id="status">Loading</div>
<div id="sendCtrlAltDelButton" class="sendCtrlAltDelButton" onclick="sendCtrlAltDel">Send CtrlAltDel</div>
</div>
<!-- main node dom ,you must code -->
<div id="noVNC_canvas" class="vnc-canvas"> </div>
<!-- clipBoard ,You can decide if you need it -->
<div class="noVNC_vcenter">
<div id="noVNC_clipboard" class="noVNC_panel">
<textarea id="noVNC_clipboard_text" rows=5></textarea>
<input id="noVNC_clipboard_clear_button" type="button" value="清除" class="noVNC_submit_clear">
</div>
<button id="noVNC_clipboard_button" class="noVNC_button" >剪贴板</button>
</div>
</div>
```
- js调用方式
let novnc = new SimpleVNC({
nodeId: 'noVNC_canvas',
width: '800px',
height: '600px',
config: {
host: '192.168.200.15',
port: '8888',
password: 'ssssss',
path: 'websockify/?vm_uuid=532922ca-92ca-4556-b963-22f4de627469',
}
});
novnc.initVNC()
#API -SimpleVNC 提供的vnc对象 ,使用 new SimpleVNC() 即可实例化整个VNC对象,提供一个option参数传入 option 参数,实例化对象后传入可配置的参数选项 -nodeId : string类型,传入VNC_canvas 中dom的ID,必传项 - width : string类型,宽度,支持px,vw,vh,em等单位,与css一致 - height: string类型,高度,支持px,vw,vh,em等单位,与css一致 - addLoadiing :bool类型,是否在初始loading时加载 loadding动画,默认true - autoConnect :bool类型,是否加载dom,实例化后自动连接,默认自动连接为true,你也可以选择false后,执行手动连接事件 - config :Object类型,必传,连接VNC所需的配置参数,包括 host 地址,port 端口,password 密码,path (webscoket 连接信息) eg:config:{ host: '192.168.200.15', port: '8888', password: '', path: 'websockify/?vm_uuid=532922ca-92ca-4556-b963-22f4de627469', } -Event 事件
FAQs
simpleEdu vnc inatall package plugin
The npm package simple-novnc receives a total of 3 weekly downloads. As such, simple-novnc popularity was classified as not popular.
We found that simple-novnc 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.