初探asciinema

在学习c++的时候想到so库注入到某些程序中,网上查了一些资料,发现了一些比较好玩的程序,分享一下。

主要可以对操作的进行视频回放,类似堡垒机的功能

 

 

安装:

pip3 install asciinema

 

使用:

asciinema rec /path/filename

 

保存的文件就是就是录制文件,但是不是video,flash格式,

需要使用https://github.com/asciinema/asciinema-player/releases

CSS+JS

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ASCIINEMA DEMO</title>
    <link rel="stylesheet" href="asciinema-player.css">
</head>
<body> <!-- src引入视频文件 -->
<asciinema-player src="demo.cast"></asciinema-player>        <script src="asciinema-player.js"></script>               </body> </html>

即可播放,可上传到server进行保存视频,即为成为堡垒机视频

 

demo: scan.javasec.cn/video.html

posted @ 2018-11-27 17:45  sevck  阅读(537)  评论(0编辑  收藏  举报