V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Themyth
V2EX  ›  Linux

TCPdump 抓包并记录,但是如何后台运行?

  •  
  •   Themyth · 2014-12-22 20:45:00 +08:00 · 13620 次点击
    这是一个创建于 3405 天前的主题,其中的信息可能已经有所发展或是发生改变。
    想用tcpdump抓包并记录日志,然后日后查看。
    但是尝试过nohup的方法 以及 直接在命令后面加&的方法
    但是关闭终端后,发现根本无法后台运行。
    who can tell me how to........

    shell: tcpdump tcp port 443 -w https.txt
    15 条回复    2016-03-05 20:08:51 +08:00
    RIcter
        1
    RIcter  
       2014-12-22 20:46:43 +08:00 via iPad
    screen
    Themyth
        2
    Themyth  
    OP
       2014-12-22 20:48:48 +08:00
    @RIcter 啥意思?你是让我用x-window么?
    RIcter
        3
    RIcter  
       2014-12-22 20:50:46 +08:00 via iPad
    @Themyth 有一个screen命令_(:з」∠)_
    xyq123
        4
    xyq123  
       2014-12-22 20:55:47 +08:00
    (tcpdump tcp port 443 -w https.txt&)
    Themyth
        5
    Themyth  
    OP
       2014-12-22 20:57:52 +08:00
    @xyq123 我说了啊 不行啊 无法记录。。。
    abcbit
        6
    abcbit  
       2014-12-22 21:31:13 +08:00
    自己用python寫一個嘛
    mengzhuo
        7
    mengzhuo  
       2014-12-22 21:36:20 +08:00
    楼主你想抓https包分析?
    放心吧,没用的
    best1a
        8
    best1a  
       2014-12-22 21:38:04 +08:00
    nohup
    Daniel65536
        9
    Daniel65536  
       2014-12-22 21:56:00 +08:00 via iPhone
    screen
    Themyth
        10
    Themyth  
    OP
       2014-12-22 22:10:25 +08:00
    @RIcter 谢谢啦,已经成功了。
    @mengzhuo 举例举例。。。
    @best1a 不行的,用screen得方法实现了 nohup不记录
    mengzhuo
        11
    mengzhuo  
       2014-12-22 22:43:22 +08:00
    @Themyth

    HTTPS本来就是防监听的……你这么做是跟自己过不去么……
    efi
        12
    efi  
       2014-12-23 01:20:50 +08:00 via Android
    disown
    xujialiang
        13
    xujialiang  
       2014-12-23 08:37:36 +08:00
    nohup tcpdump tcp port 443 -w https.txt &
    larkifly
        14
    larkifly  
       2016-03-05 17:44:08 +08:00
    @Themyth 请问是怎么解决的,我也碰到这个问题了
    Themyth
        15
    Themyth  
    OP
       2016-03-05 20:08:51 +08:00
    @larkifly screen 命令啊,好久没玩了,之前就是用 screen 解决的,你搜索一下,很简单。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5674 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:30 · PVG 10:30 · LAX 19:30 · JFK 22:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.