• ctf:kali工具ettercap,setoolkit


    root@kali:~# ettercap 

    ettercap 0.8.3.1 copyright 2001-2020 Ettercap Development Team


    Please select an User Interface

                                                                                                                                                                                                          
    root@kali:~# setoolkit  
    [-] New set.config.py file generated on: 2022-12-01 05:25:10.358874
    [-] Verifying configuration update...
    [*] Update verified, config timestamp is: 2022-12-01 05:25:10.358874
    [*] SET is using the new config, no need to restart
    Copyright 2020, The Social-Engineer Toolkit (SET) by TrustedSec, LLC
    All rights reserved.

    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

        * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
        * Neither the name of Social-Engineer Toolkit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    The above licensing was taken from the BSD licensing and is applied to Social-Engineer Toolkit as well.

    Note that the Social-Engineer Toolkit is provided as is, and is a royalty free open-source application.

    Feel free to modify, use, change, market, do whatever you want with it as long as you give the appropriate credit where credit is due (which means giving the authors the credit they deserve for writing it).

    Also note that by using this software, if you ever see the creator of SET in a bar, you should (optional) give him a hug and should (optional) buy him a beer (or bourbon - hopefully bourbon). Author has the option to refuse the hug (most likely will never happen) or the beer or bourbon (also most likely will never happen). Also by using this tool (these are all optional of course!), you should try to make this industry better, try to stay positive, try to help others, try to learn from one another, try stay out of drama, try offer free hugs when possible (and make sure recipient agrees to mutual hug), and try to do everything you can to be awesome.
    The Social-Engineer Toolkit is designed purely for good and not evil. If you are planning on using this tool for malicious purposes that are not authorized by the company you are performing assessments for, you are violating the terms of service and license of this toolset. By hitting yes (only one time), you agree to the terms of service and that you will only use this tool for lawful purposes only.


    Do you agree to the terms of service [y/n]: y

               ,..-,
             ,;;f^^"""-._
            ;;'          `-.
           ;/               `.
           ||  _______________\_______________________
           ||  |HHHHHHHHHHPo"~~\"o?HHHHHHHHHHHHHHHHHHH|
           ||  |HHHHHHHHHP-._   \,'?HHHHHHHHHHHHHHHHHH|
            |  |HP;""?HH|    """ |_.|HHP^^HHHHHHHHHHHH|
            |  |HHHb. ?H|___..--"|  |HP ,dHHHPo'|HHHHH|
            `| |HHHHHb.?Hb    .--J-dHP,dHHPo'_.rdHHHHH|
             \ |HHHi.`;;.H`-./__/-'H_,--'/;rdHHHHHHHHH|
               |HHHboo.\ `|"\"/"\" '/\ .'dHHHHHHHHHHHH|
               |HHHHHHb`-|.  \|  \ / \/ dHHHHHHHHHHHHH|
               |HHHHHHHHb| \ |\   |\ |`|HHHHHHHHHHHHHH|
               |HHHHHHHHHb  \| \  | \| |HHHHHHHHHHHHHH|
               |HHHHHHHHHHb |\  \|  |\|HHHHHHHHHHHHHHH|
               |HHHHHHHHHHHb| \  |  / dHHHHHHHHHHHHHHH|
               |HHHHHHHHHHHHb  \/ \/ .fHHHHHHHHHHHHHHH|
               |HHHHHHHHHHHHH| /\ /\ |HHHHHHHHHHHHHHHH|
               |""""""""""""""""""""""""""""""""""""""|
               |,;=====.     ,-.  =.       ,=,,=====. |
               |||     '    //"\\   \\   //  ||     ' |
               |||         ,/' `\.  `\. ,/'  ``=====. |
               |||     .   //"""\\   \\_//    .     |||
               |`;=====' =''     ``=  `-'     `=====''|
               |______________________________________|


    [---]        The Social-Engineer Toolkit (SET)         [---]
    [---]        Created by: David Kennedy (ReL1K)         [---]
                          Version: 8.0.3
                        Codename: 'Maverick'
    [---]        Follow us on Twitter: @TrustedSec         [---]
    [---]        Follow me on Twitter: @HackingDave        [---]
    [---]       Homepage: https://www.trustedsec.com       [---]
            Welcome to the Social-Engineer Toolkit (SET).
             The one stop shop for all of your SE needs.

       The Social-Engineer Toolkit is a product of TrustedSec.

               Visit: https://www.trustedsec.com

       It's easy to update using the PenTesters Framework! (PTF)
    Visit https://github.com/trustedsec/ptf to update all your tools!


    Process Process-1:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/usr/lib/python3.10/http/client.py", line 1282, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
        self.send(msg)
      File "/usr/lib/python3.10/http/client.py", line 975, in send
        self.connect()
      File "/usr/lib/python3.10/http/client.py", line 1447, in connect
        super().connect()
      File "/usr/lib/python3.10/http/client.py", line 941, in connect
        self.sock = self._create_connection(
      File "/usr/lib/python3.10/socket.py", line 845, in create_connection
        raise err
      File "/usr/lib/python3.10/socket.py", line 833, in create_connection
        sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
        self.run()
      File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/share/set/src/core/setcore.py", line 889, in pull_version
        version = urlopen(url).read().rstrip().decode('utf-8')
      File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python3.10/urllib/request.py", line 519, in open
        response = self._open(req, data)
      File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
        return self.do_open(http.client.HTTPSConnection, req,
      File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
        raise URLError(err)
    urllib.error.URLError:
     Select from the menu:

       1) Social-Engineering Attacks
       2) Penetration Testing (Fast-Track)
       3) Third Party Modules
       4) Update the Social-Engineer Toolkit
       5) Update SET configuration
       6) Help, Credits, and About

      99) Exit the Social-Engineer Toolkit

    set> 1

                     .--.  .--. .-----.
                    : .--': .--'`-. .-'
                    `. `. : `;    : :
                     _`, :: :__   : :
                    `.__.'`.__.'  :_;   

    [---]        The Social-Engineer Toolkit (SET)         [---]
    [---]        Created by: David Kennedy (ReL1K)         [---]
                          Version: 8.0.3
                        Codename: 'Maverick'
    [---]        Follow us on Twitter: @TrustedSec         [---]
    [---]        Follow me on Twitter: @HackingDave        [---]
    [---]       Homepage: https://www.trustedsec.com       [---]
            Welcome to the Social-Engineer Toolkit (SET).
             The one stop shop for all of your SE needs.

       The Social-Engineer Toolkit is a product of TrustedSec.

               Visit: https://www.trustedsec.com

       It's easy to update using the PenTesters Framework! (PTF)
    Visit https://github.com/trustedsec/ptf to update all your tools!


    Process Process-2:
    Traceback (most recent call last):
      File "/usr/share/set/./setoolkit", line 244, in
        core.module_reload(src.core.set)
    NameError: name 'src' is not defined

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/usr/lib/python3.10/http/client.py", line 1282, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
        self.send(msg)
      File "/usr/lib/python3.10/http/client.py", line 975, in send
        self.connect()
      File "/usr/lib/python3.10/http/client.py", line 1447, in connect
        super().connect()
      File "/usr/lib/python3.10/http/client.py", line 941, in connect
        self.sock = self._create_connection(
      File "/usr/lib/python3.10/socket.py", line 845, in create_connection
        raise err
      File "/usr/lib/python3.10/socket.py", line 833, in create_connection
        sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
        self.run()
      File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/share/set/src/core/setcore.py", line 889, in pull_version
        version = urlopen(url).read().rstrip().decode('utf-8')
      File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python3.10/urllib/request.py", line 519, in open
        response = self._open(req, data)
      File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
        return self.do_open(http.client.HTTPSConnection, req,
      File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
        raise URLError(err)
    urllib.error.URLError:
     Select from the menu:

       1) Spear-Phishing Attack Vectors
       2) Website Attack Vectors
       3) Infectious Media Generator
       4) Create a Payload and Listener
       5) Mass Mailer Attack
       6) Arduino-Based Attack Vector
       7) Wireless Access Point Attack Vector
       8) QRCode Generator Attack Vector
       9) Powershell Attack Vectors
      10) Third Party Modules

      99) Return back to the main menu.

    set> 2

    The Web Attack module is a unique way of utilizing multiple web-based attacks in order to compromise the intended victim.

    The Java Applet Attack method will spoof a Java Certificate and deliver a metasploit based payload. Uses a customized java applet created by Thomas Werth to deliver the payload.

    The Metasploit Browser Exploit method will utilize select Metasploit browser exploits through an iframe and deliver a Metasploit payload.

    The Credential Harvester method will utilize web cloning of a web- site that has a username and password field and harvest all the information posted to the website.

    The TabNabbing method will wait for a user to move to a different tab, then refresh the page to something different.

    The Web-Jacking Attack method was introduced by white_sheep, emgent. This method utilizes iframe replacements to make the highlighted URL link to appear legitimate however when clicked a window pops up then is replaced with the malicious link. You can edit the link replacement settings in the set_config if its too slow/fast.

    The Multi-Attack method will add a combination of attacks through the web attack menu. For example you can utilize the Java Applet, Metasploit Browser, Credential Harvester/Tabnabbing all at once to see which is successful.

    The HTA Attack method will allow you to clone a site and perform powershell injection through HTA files which can be used for Windows-based powershell exploitation through the browser.

       1) Java Applet Attack Method
       2) Metasploit Browser Exploit Method
       3) Credential Harvester Attack Method
       4) Tabnabbing Attack Method
       5) Web Jacking Attack Method
       6) Multi-Attack Web Method
       7) HTA Attack Method

      99) Return to Main Menu

    set:webattack>3

     The first method will allow SET to import a list of pre-defined web
     applications that it can utilize within the attack.

     The second method will completely clone a website of your choosing
     and allow you to utilize the attack vectors within the completely
     same web application you were attempting to clone.

     The third method allows you to import your own website, note that you
     should only have an index.html when using the import website
     functionality.
       
       1) Web Templates
       2) Site Cloner
       3) Custom Import

      99) Return to Webattack Menu

    set:webattack>1
    [-] Credential harvester will allow you to utilize the clone capabilities within SET
    [-] to harvest credentials or parameters from a website as well as place them into a report

    -------------------------------------------------------------------------------
    --- * IMPORTANT * READ THIS BEFORE ENTERING IN THE IP ADDRESS * IMPORTANT * ---

    The way that this works is by cloning a site and looking for form fields to
    rewrite. If the POST fields are not usual methods for posting forms this 
    could fail. If it does, you can always save the HTML, rewrite the forms to
    be standard forms and use the "IMPORT" feature. Additionally, really 
    important:

    If you are using an EXTERNAL IP ADDRESS, you need to place the EXTERNAL
    IP address below, not your NAT address. Additionally, if you don't know
    basic networking concepts, and you have a private IP address, you will
    need to do port forwarding to your NAT IP address from your external IP
    address. A browser doesns't know how to communicate with a private IP
    address, so if you don't specify an external IP address if you are using
    this from an external perpective, it will not work. This isn't a SET issue
    this is how networking works.

    set:webattack> IP address for the POST back in Harvester/Tabnabbing [192.168.3.52]:

    --------------------------------------------------------
                 **** Important Information ****

    For templates, when a POST is initiated to harvest
    credentials, you will need a site for it to redirect.

    You can configure this option under:

          /etc/setoolkit/set.config

    Edit this file, and change HARVESTER_REDIRECT and
    HARVESTER_URL to the sites you want to redirect to
    after it is posted. If you do not set these, then
    it will not redirect properly. This only goes for
    templates.

    --------------------------------------------------------

      1. Java Required
      2. Google
      3. Twitter

    set:webattack> Select a template:2

    [*] Cloning the website: http://www.google.com
    [*] This could take a little bit...

    The best way to use this attack is if username and password form fields are available. Regardless, this captures all POSTs on a website.
    [*] The Social-Engineer Toolkit Credential Harvester Attack
    [*] Credential Harvester is running on port 80
    [*] Information will be displayed to you as it arrives below:
    192.168.3.86 - - [01/Dec/2022 05:27:50] "GET / HTTP/1.1" 200 -
    [*] WE GOT A HIT! Printing the output:
    PARAM: GALX=SJLCkfgaqoM
    PARAM: continue=https://accounts.google.com/o/oauth2/auth?zt=ChRsWFBwd2JmV1hIcDhtUFdldzBENhIfVWsxSTdNLW9MdThibW1TMFQzVUZFc1BBaURuWmlRSQ%E2%88%99APsBz4gAAAAAUy4_qD7Hbfz38w8kxnaNouLcRiD3YTjX
    PARAM: service=lso
    PARAM: dsh=-7381887106725792428
    PARAM: _utf8=â
    PARAM: bgresponse=js_disabled
    PARAM: pstMsg=1
    PARAM: dnConn=
    PARAM: checkConnection=
    PARAM: checkedDomains=youtube
    POSSIBLE USERNAME FIELD FOUND: Email=1
    POSSIBLE PASSWORD FIELD FOUND: Passwd=1
    PARAM: signIn=Sign+in
    PARAM: PersistentCookie=yes
    [*] WHEN YOU'RE FINISHED, HIT CONTROL-C TO GENERATE A REPORT.


    192.168.3.86 - - [01/Dec/2022 05:27:59] "POST /ServiceLoginAuth HTTP/1.1" 302 -
    ^C[*] File in XML format exported to /root/.set/reports/2022-12-01 05:28:33.680789.xml for your reading pleasure...

          Press to continue


    The Web Attack module is a unique way of utilizing multiple web-based attacks in order to compromise the intended victim.

    The Java Applet Attack method will spoof a Java Certificate and deliver a metasploit based payload. Uses a customized java applet created by Thomas Werth to deliver the payload.

    The Metasploit Browser Exploit method will utilize select Metasploit browser exploits through an iframe and deliver a Metasploit payload.

    The Credential Harvester method will utilize web cloning of a web- site that has a username and password field and harvest all the information posted to the website.

    The TabNabbing method will wait for a user to move to a different tab, then refresh the page to something different.

    The Web-Jacking Attack method was introduced by white_sheep, emgent. This method utilizes iframe replacements to make the highlighted URL link to appear legitimate however when clicked a window pops up then is replaced with the malicious link. You can edit the link replacement settings in the set_config if its too slow/fast.

    The Multi-Attack method will add a combination of attacks through the web attack menu. For example you can utilize the Java Applet, Metasploit Browser, Credential Harvester/Tabnabbing all at once to see which is successful.

    The HTA Attack method will allow you to clone a site and perform powershell injection through HTA files which can be used for Windows-based powershell exploitation through the browser.

       1) Java Applet Attack Method
       2) Metasploit Browser Exploit Method
       3) Credential Harvester Attack Method
       4) Tabnabbing Attack Method
       5) Web Jacking Attack Method
       6) Multi-Attack Web Method
       7) HTA Attack Method

      99) Return to Main Menu

    set:webattack>^C

     Thank you for shopping with the Social-Engineer Toolkit.

     Hack the Gibson...and remember...hugs are worth more than handshakes.

               ..######..########.########
               .##....##.##..........##...
               .##.......##..........##...
               ..######..######......##...
               .......##.##..........##...
               .##....##.##..........##...
               ..######..########....##...  

    [---]        The Social-Engineer Toolkit (SET)         [---]
    [---]        Created by: David Kennedy (ReL1K)         [---]
                          Version: 8.0.3
                        Codename: 'Maverick'
    [---]        Follow us on Twitter: @TrustedSec         [---]
    [---]        Follow me on Twitter: @HackingDave        [---]
    [---]       Homepage: https://www.trustedsec.com       [---]
            Welcome to the Social-Engineer Toolkit (SET).
             The one stop shop for all of your SE needs.

       The Social-Engineer Toolkit is a product of TrustedSec.

               Visit: https://www.trustedsec.com

       It's easy to update using the PenTesters Framework! (PTF)
    Visit https://github.com/trustedsec/ptf to update all your tools!


    Process Process-3:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/usr/lib/python3.10/http/client.py", line 1282, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
        self.send(msg)
      File "/usr/lib/python3.10/http/client.py", line 975, in send
        self.connect()
      File "/usr/lib/python3.10/http/client.py", line 1447, in connect
        super().connect()
      File "/usr/lib/python3.10/http/client.py", line 941, in connect
        self.sock = self._create_connection(
      File "/usr/lib/python3.10/socket.py", line 845, in create_connection
        raise err
      File "/usr/lib/python3.10/socket.py", line 833, in create_connection
        sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
        self.run()
      File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/share/set/src/core/setcore.py", line 889, in pull_version
        version = urlopen(url).read().rstrip().decode('utf-8')
      File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python3.10/urllib/request.py", line 519, in open
        response = self._open(req, data)
      File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
        return self.do_open(http.client.HTTPSConnection, req,
      File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
        raise URLError(err)
    urllib.error.URLError:
     Select from the menu:

       1) Social-Engineering Attacks
       2) Penetration Testing (Fast-Track)
       3) Third Party Modules
       4) Update the Social-Engineer Toolkit
       5) Update SET configuration
       6) Help, Credits, and About

      99) Exit the Social-Engineer Toolkit

    set> ^C

    Thank you for shopping with the Social-Engineer Toolkit.

    Hack the Gibson...and remember...hugs are worth more than handshakes.


    ^CException ignored in:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/threading.py", line 1567, in _shutdown
        lock.acquire()
    KeyboardInterrupt: 

  • 相关阅读:
    测试开发该如何在团队中推广新工具、新技术(深度好文)
    Dubbo使用invoke指令来调用dubbo接口
    Linux学习系列--如何在Linux中进行文件的管理
    Leetcode—104.二叉树的最大深度【简单】
    spring接口多实现类,该依赖注入哪一个?
    15位、7位可控字符下的任意命令执行
    L1-023 输出GPLT C++解法【全网最细讲解】
    剑指Offer || 050.路径总和|||
    奥威BI系统,BI界便宜大碗国货
    jdk11新特性——JShell交互性工具
  • 原文地址:https://blog.csdn.net/viviliving/article/details/128144111