• Kali下终端输入msfpayload出错


          最近,在使用Kali的时候,发现在终端中输入msfpayload时,出现错误“bash: msfpayload: command not found”。网上找了一下,原来是从2015年6月8日之后,msfpayload已经被移除了。以后只要使用msfvenom就行了,它集成了msfpayload和msfencode的功能,而且超级方便噢。

          msfvenom的大概使用说明如下:

    MsfVenom - a Metasploit standalone payload generator.
    
    Also a replacement for msfpayload and msfencode.
    
    Usage: /opt/metasploit/apps/pro/msf3/msfvenom [options] <var=val>
    
    Options:
    
        -p, --payload       <payload>    Payload to use. Specify a '-' or stdin to use custom payloads
    
            --payload-options            List the payload's standard options
    
        -l, --list          [type]       List a module type. Options are: payloads, encoders, nops, all
    
        -n, --nopsled       <length>     Prepend a nopsled of [length] size on to the payload
    
        -f, --format        <format>     Output format (use --help-formats for a list)
    
            --help-formats               List available formats
    
        -e, --encoder       <encoder>    The encoder to use
    
        -a, --arch          <arch>       The architecture to use
    
            --platform      <platform>   The platform of the payload
    
        -s, --space         <length>     The maximum size of the resulting payload
    
            --encoder-space <length>     The maximum size of the encoded payload (defaults to the -s value)
    
        -b, --bad-chars     <list>       The list of characters to avoid example: 'x00xff'
    
        -i, --iterations    <count>      The number of times to encode the payload
    
        -c, --add-code      <path>       Specify an additional win32 shellcode file to include
    
        -x, --template      <path>       Specify a custom executable file to use as a template
    
        -k, --keep                       Preserve the template behavior and inject the payload as a new thread
    
        -o, --out           <path>       Save the payload
    
        -v, --var-name      <name>       Specify a custom variable name to use for certain output formats
    
            --smallest                   Generate the smallest possible payload
    
        -h, --help                       Show this message
    
  • 相关阅读:
    毕业设计进度:3月8日
    毕业设计进度:3月7日
    毕业设计进度:3月6日
    毕业设计进度:3月5日
    深拷贝、浅拷贝
    itertools模块中的product方法
    confusion_matrix函数的使用
    sklearn中的交叉验证(Cross-Validation)
    python pandas(ix & iloc &loc)
    Python: sklearn库——数据预处理
  • 原文地址:https://www.cnblogs.com/hiccup/p/5423978.html
Copyright © 2020-2023  润新知