• 初探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

  • 相关阅读:
    一次摸鱼
    scenes
    mysql日志
    十万个为什么
    ss
    mysql之explain
    mysql之索引
    mysql1
    分页
    ajax分页
  • 原文地址:https://www.cnblogs.com/sevck/p/10027900.html
Copyright © 2020-2023  润新知